public void Cancel(TftpErrorPacket reason) { if (reason == null) { throw new ArgumentNullException("reason"); } lock (this) { state.OnCancel(reason); } }
public void OnCancel(TftpErrorPacket reason) { TftpTrace.Trace(GetStateName() + " OnCancel: " + reason, transfer); decoratee.OnCancel(reason); }