Category Archives: .NET

C# – EF lifetime of DBContext

The following article has a useful information on handling the lifetime of DBContext in EF. http://mehdi.me/ambient-dbcontext-in-ef6/ Advertisements

Posted in .NET, Programming | Leave a comment

C# – Simple example implementing concurrent queue

Posted in .NET, Programming | Tagged | 1 Comment

C# – Log4Net configuration example

Posted in .NET, Programming | Tagged | Leave a comment

C# WCF – Ninject Ioc

In order to use Ioc to instantiate a WCF service class, Ioc should provide implementation of following two interfaces. IInstanceProvider IServiceBehavior Implement IServiceBehavior Implement IInstanceProvider Example class

Posted in .NET, Programming | Tagged | Leave a comment

C# – Changing log4Net logging path at runtime

Posted in .NET, Programming | Tagged | Leave a comment

C# – Windows 8 App, using canvas to draw outside of Grid control

Canvas size is always child driven so it will give infinite size for children. Also HorizontalAlignment and VerticalAlignment settings have no effect on a child of a Canvas. However even Canvas size is to zero, it does not affect to … Continue reading

Posted in .NET, Programming | Tagged | Leave a comment

C# – Windows 8 App, creating custom control with Xaml

The following URL shows how to create custom control with Xaml. http://blogs.msdn.com/b/mim/archive/2013/03/19/create-a-custom-user-control-using-xaml-and-c-for-windows-8.aspx Another http://blogs.msdn.com/b/windowsappdev/archive/2012/10/15/building-a-custom-control-using-xaml-and-c.aspx

Posted in .NET, Programming | Tagged , | Leave a comment