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