/// <summary>
/// Invoked before passing to the method
/// </summary>
/// <param name="c"></param>
protected virtual void BeforeCallInvoke(PerformanceCounter c)
{
if (c != null)
{
lock (c)
{
string name = c.InstanceName;
c.IncrementBy(_increaseDecrease);
//also update overall insance!
c.InstanceName = OverallInstance;
c.IncrementBy(_increaseDecrease);
c.InstanceName = name;
}
}
}