Exemplo n.º 1
0
 public void Dispose()
 {
     if (this.owner != null)
     {
         this.owner.AfterResponse();
         this.owner = null;
     }
 }
Exemplo n.º 2
0
 public static bool IsActive(this TransactedToolToken token) =>
 (((token != null) && !token.HasResponded) && !token.IsDisposed);
Exemplo n.º 3
0
 public RespondingScope(TransactedToolToken owner)
 {
     Validate.IsNotNull <TransactedToolToken>(owner, "owner");
     this.owner = owner;
     this.owner.BeforeResponse();
 }