Monthly Archives: July 2013

Performance Analysis for Windows – channel9

The following URL contains the useful information about using xperf for analysis of Windows application and OS. http://channel9.msdn.com/Shows/Defrag-Tools/RSS 1. For example the following script shows how to get sampling CPU usage

Posted in Performance, Programming | Leave a comment

C# example of optimistic concurrency with Entity Framework code first

The following article shows the good example how to use optimistic concurrency control in Entity Framework code first. http://msdn.microsoft.com/en-us/data/jj592904.aspx Just in case I would like to copy the code examples from the above page. Resolving optimistic concurrency exceptions as client … Continue reading

Posted in .NET, Programming | Leave a comment

C# – Entity Framework : explicitly loading a reference object

Posted in .NET, Programming | Leave a comment

C# configuration to log .NET library such socket connection

If you create a file named [application].exe.config with the following contents in directory having your application, it can make logs on any socket connection and mail operations.

Posted in .NET, Programming | Leave a comment

C# SMTP client using CDO

The following code utilize the CDO service of Windows OS to send an email. In my research CDO SMTP client can only support SSL/TLS connection type for using SSL. If you want to use START TLS connection type, C# SmtpClient … Continue reading

Posted in .NET, Programming | Leave a comment

C# WPF extended toolkit

Extended WPF toolkit provide the various UI for building WPF based application. You can find the details from the following link. http://wpftoolkit.codeplex.com/

Posted in .NET, Programming | Leave a comment

C# WCF instance configuration

WCF has the confusing mechanism for management of instance on RPC call. The following separating shows an example of this situation. If you are more interested in this, you can find details from the book called Programming WCF Services 3rd … Continue reading

Posted in .NET, Programming | Leave a comment