Sign in
Ishtiyaq Sheikh's blog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Common Tasks
Blog Home
OK
RSS for comments
RSS for posts
Atom
Search
Tags
.net
activity id
c#
DateTime
etw
extension method
get-winevent
performance
powershell
static constructor
testing exception
unit testing
vsts
Monthly Archives
Archives
August 2011
(2)
July 2011
(1)
May 2011
(3)
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Ishtiyaq Sheikh's blog
Initialization in static constructor
Posted
over 2 years ago
by
Ishtiyaq Sheikh
1
Comments
I am implementing initialization of some static data properties of a class. The static data properties should be initialized only once. It can be used in multi threaded read scenarios. So the initialization should be thread safe. It looks like...
Ishtiyaq Sheikh's blog
Adding time to DateTime instance
Posted
over 2 years ago
by
Ishtiyaq Sheikh
0
Comments
Recently, I wrote code for adding seconds to a DateTime instance something like this: DateTime time = DateTime.Now; time.AddSeconds(100); In the first round of unit test, I realize that it is not working correctly. A quick reference...
Ishtiyaq Sheikh's blog
Null parameter validation
Posted
over 2 years ago
by
Ishtiyaq Sheikh
1
Comments
Most of the functions take some input parameters and it is mostly wise not to trust the caller and do verification of input parameters. Input parameter validation involves checking some constraint for the parameter (like parameter is null or not, parameter...
Ishtiyaq Sheikh's blog
Correlating ETW events using Activity Id in .Net
Posted
over 2 years ago
by
Ishtiyaq Sheikh
0
Comments
In my previous post , I described using PowerShell script to correlate ETW events. For large event logs, the overall performance of the script is not very fast. Here is a .Net version of doing ETW event correlation: class ActivityData...
Ishtiyaq Sheikh's blog
Unit testing of scenarios throwing exception
Posted
over 2 years ago
by
Ishtiyaq Sheikh
1
Comments
While writing unit tests, we frequently come across the cases where the scenario generates some exception. And we need to test them. Suppose have one SourceClass. It has a method ThrowExceptionIf () which throws ArgumentException exception when the...
Ishtiyaq Sheikh's blog
Correlating ETW events using Activity Id in PowerShell
Posted
over 2 years ago
by
Ishtiyaq Sheikh
0
Comments
Recently, a problem was reported where time taken in each user request was getting increased continuously. It was suspected that this increase is caused by one of our components. The component is instrumented using ETW traces. We had two ETW events...
Page 1 of 1 (6 items)