public override void Done() { bool needToLeave = control.Enter(); try { base.Done(); } catch { if (needToLeave) { control.Leave(); } throw; } }
public bool Enter() { Trace.WriteLine("[AsyncTransmitter] Enter"); return(_controlledTermination.Enter()); }