public void Started() { #if DEBUG && !MOBILE_DEVICE Trace("Started()"); this.startStack = CallStack.AsyncTrace(1, true); AsyncTracker.Add(this); AsyncTracker.Yield(); #endif }
public void Started(bool traceEnable) { #if DEBUG && !MOBILE_DEVICE if (traceEnable) { // The trace name will be the name of the object type and method // that called this method. var stack = new CallStack(1, false); var method = stack.GetFrame(0).GetMethod(); this.traceName = method.DeclaringType.Name + "." + method.Name; this.traceID = AsyncTraceID.GetNextID(); } Trace("Started()"); this.startStack = CallStack.AsyncTrace(1, true); AsyncTracker.Add(this); AsyncTracker.Yield(); #endif }