/// <summary> /// Logs the end of the current scope. /// </summary> public void Dispose() { if (!isDisposed) { isDisposed = true; FL.LogScope(FieldLogScopeType.ThreadEnd, name); GC.SuppressFinalize(this); } }
/// <summary> /// Initialises a new instance of the FieldLogThreadScope class and logs the thread scope /// beginning. /// </summary> /// <param name="name">The thread scope name.</param> public FieldLogThreadScope(string name) { this.name = name; FL.LogScope(FieldLogScopeType.ThreadStart, name); }