Author Archives: leerey

Essential C# language features

Some interesting features of C# 6 Automatically implemented properties Object initializer Caller information (CallerFilePathAttribute, CallerLineNumberAttribute, CallerMemberNameAttribute) Collection initializer Extension Methods Lambda Expressions Var keyword Anonymous types LINQ Async and Await Expression bodied methods like CalcMonthlyWage(int dailyWage) => dailyWage * 30 … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Critical elements of DI container

Dependency chain resolution – if requested component has its own dependencies, those too will get resolved. Object lifecycle management – selecting whether the DI contain should return a singleton, transient (new instance each time), instance-per-thread, instance-per-HTTP-request, instance-from-pool, etc Configuration of … Continue reading

Posted in Dependency Injection, Uncategorized | Tagged , , , | Leave a comment