public TransportFilter(ITransport next)
{
this.next = next;
this.next.Command = new CommandHandler(OnCommand);
this.next.Exception = new ExceptionHandler(OnException);
this.next.Interrupted = new InterruptedHandler(OnInterrupted);
this.next.Resumed = new ResumedHandler(OnResumed);
}