How to create configurable reliability layer with Photon.NET

Note: this article is based on the Photon.NET codebase tag 0.0.28.0 (follow the project link to find additional info on acquiring the specific version) Reliability layer represents a simple concept: we want to retry some unreliable method call (the one that throws exceptions or returns unexpected results) till it succeeds or some other condition is met. In the regular …

How to use IoC container with nested scopes for application composition?

Well, that’s simple. The idea itself comes from the CAB. Basically you can organize your application (whether it is a desktop client, an automation engine, web UI or something else) in such a manner: This sample desktop application is logically organized into the nested scopes (or contexts or containers). The Application Scope is the top-most. It contains …

How to Use .NET 3.5 Features and C# 3.0 Syntax in .NET 2.0?

It is possible to benefit from some of the .NET 3.5 features and new syntactic sugar in C# 3.0, while still targeting customers that have only .NET 2.0 Framework. That’s because these two versions share the same .NET CLR and mainly differ in the set of libraries available and compiler being used. Features that you …