/// <summary> /// Marks the context as done. /// </summary> /// <remarks> /// <para> /// Call this method if the work within a context has been processed successfully (i.e., no uncaught exception has been /// raised). /// <para></para> /// For C# users, it is recommended to call this method at the end of the <c>using</c> block that contains the context. /// </para> /// </remarks> public void Done() { if (_entered) { if (EnableTracing) { Trace.WriteLine("Work done in Context: " + _text); } Stack.PopIncluding(this); } }