public Channel(DelegateEnvironment root, ChannelProviderBase parent, string shortName,
                Action <IMessageSource, ChannelMessage> dispatch)
     : base(root, parent, shortName, dispatch)
 {
     Watch = Stopwatch.StartNew();
     Root._outErrWriter.ChannelStarted(this);
 }
 public OutErrLogWriter(DelegateEnvironment parent, ILogWriter outWriter, ILogWriter errWriter, int verbose)
 {
     Contracts.AssertValue(parent);
     Contracts.AssertValue(outWriter);
     Contracts.AssertValue(errWriter);
     _lock    = new object();
     _parent  = parent;
     _out     = outWriter;
     _err     = errWriter;
     _verbose = verbose;
 }