(Tomasz Pêczek) In one of small projects I’m involved in there was a need for supporting Range Requests. That wouldn’t be an issue if the files were static resources (IIS, as any decent server, has built in support for Range Requests) but in this case the files were returned from Action. To solve th
Tag: Development
Mocking Property Expectations with Moq
Moq provides similar capabilities when mocking properties of classes or interfaces as when mocking methods. Although the same verification and expectation set up methods can be used in some circumstances, there are additional options for properties.
Creating Window Form Application in FSharp
(Alok Pandey) For creating a Windows Form in F#, we add the System.Windows.Form namespace to our application. All the sets of classes are found in System.Windows.Form.dll. These classes are used to create window forms and controls. Now we create a window form by following several steps which are giv
WebSockets for Faster, More Scalable Ajax Applications
(Peter Vogel) The idea behind WebSockets is simple: the client requests a TCP socket to communicate with the service. Once the socket’s created, the client and the server can use it to send messages to each other. WebSockets’ impact should be tremendous, both in improving the performance of Ajax ap
Inside ASP.NET MVC: IDependencyResolver – Service locator in MVC
(Alexander Beletsky) All types inside ASP.NET MVC3 framework are being resolved by IDependencyResolver. The design goal of this interface is to provide flexibility and decrease coupling between components.
Globalization And Localization With Razor Web Pages
(Mike Brind) Globalization is the process of preparing your site so that it is accessible to as wide an audience as possible. This is largely achieved by presenting content in the native language of the visitor. This article explores how you can approach this task within the ASP.NET Web Pages framew
How to Serialize and Deserialize ListView data
(Ged Mead) Although you’ll most often use serialization to store objects in a file, you can use it to store the data from a ListView. Here’s how.
ASP.NET MVC Unit Tests with UnityAutoMoq Container
(Raj Aththanayake) In this article, we will look at the usage of UnityAutoMoq container, and how we can use this container to write maintainable ASP.NET MVC Unit Tests. UnityAutoMoq container is an Open Source library, created by Thomas Pedersen. If you are new to Auto Mocking, please refer to this
The Dangers of Implementing Recurring Background Tasks In ASP.NET
(Phil Haack) I like to live life on the wild side. No, I don’t base jump off of buildings or invest in speculative tranches made up of junk stock derivatives. What I do is attempt to run recurring background tasks within an ASP.NET application.
Obtaining Results from Parallel Tasks
The tenth part of the Parallel Programming in .NET tutorial examines the generic Task class. This is a subclass of the Task class seen previously that permits a result to be generated and accessed from the calling thread.
