A good knowledge of exception handling is needed to build applications that are capable of handling runtime errors efficiently. Start with these simple guidelines.
The ASP.Net Core MVC framework enables you to build applications that are loosely-coupled, responsive, fast and easier to test and maintain
Range requests enable you to retrieve partial content in lieu of the entire content for improved performance when working with WebAPI over HTTP.
This article presents a discussion on enums, what they are and why they are useful and the design constraints when using enums in applications and how to implement a type-safe enum pattern with code examples wherever appropriate.
StructureMap can inject the necessary dependencies seamlessly in your WebAPI controllers
This article provides a discussion on how we can send back responses in WebAPI using the IHttpActionResult interface and how things have changed from the way we used the HttpResponseMessage class in the earlier versions of WebAPI.
NInject is a popular IOC container that can be used to inject dependencies in your WebAPI controllers easily
Cache your Task objects to improve performance by preventing the unnecessary expensive operations from being executed
The FileSystemWatcher class can be used to monitor changes to file system and trigger events when such changes occur
The DotMemory Unit framework from JetBrains can be used to analyze memory usage, write unit tests, and detect memory issues in .Net apps
PostSharp's AOP capabilities help you profile methods and identify the slow running methods in your application
Local functions enable you to define a function within the scope of another method to help in promoting encapsulation and bring local variables into scope
The Visitor design pattern provides flexibility in your designs by enabling you to define a new operation without needing to change the types of the elements on which it would operate
The abundance and easy availability of CPU at the expense of network bandwidth can be a good reason to use content compression in Web API for faster responses and improved performance
This pattern represents part-whole hierarchies of objects such that the consumers or the clients can treat the objects and also the compositions of objects in a uniform manner
Create continuations using the Task Parallel Library that can run immediately after the execution of the antecedent is complete or to chain tasks as continuations
xUnit.Net is an open source unit testing tool for the .Net Framework that provides an easy way to work with data driven unit tests
The ConcurrentDictionary and ConcurrentBag classes provide lock-free, thread-safe implementations to work with collections in .Net
The observer design pattern defines one-to-many relationship between objects so that changes to one object can be notified to the other dependent objects
Understand how asynchrony works in .Net and adhere to the recommended practices when writing unit tests to test asynchronous code