Exemplo n.º 1
0
 /// <summary>
 /// Logs the end of the current scope.
 /// </summary>
 public void Dispose()
 {
     if (!isDisposed)
     {
         isDisposed = true;
         FL.LogScope(FieldLogScopeType.ThreadEnd, name);
         GC.SuppressFinalize(this);
     }
 }
Exemplo n.º 2
0
 /// <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);
 }