" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

3 Tips for boosting your .net Business/Server Products

Posted on November 23rd, 2015 by Amit Ranjan

1. Write windows Event Log Use Windows Event log to ensure that your app is working as expected. Useful in notifying the System Administrator, in case some failures or important events occur? Sample Code: using System.Diagnostics; public void WriteEventLog(string strCallerName, string strLogLine) { if (!System.Diagnostics.EventLog.SourceExists(strCallerName)) { System.Diagnostics.EventLog.CreateEventSource(strCallerName, “Application”); } EventLog EventLog1 = new EventLog(); EventLog1.Source […]