public void Start(Stream data) { if (data == null) { throw new ArgumentNullException("data"); } if (WasStarted) { throw new InvalidOperationException("This transfer has already been started."); } this.WasStarted = true; this.InputOutputStream = data; lock (this) { state.OnStart(); } }
public void OnStart() { TftpTrace.Trace(GetStateName() + " OnStart", transfer); decoratee.OnStart(); }