Example #1
0
 public void Dispose()
 {
     if (_outputPin != null)
     {
         RemovePin(_outputPin);
         _outputPin.Dispose();
         _outputPin = null;
     }
     // Only dispose the underlying stream if we created it.
     if (_streamCreated && _sourceStream != null)
     {
         _sourceStream.Close();
         _sourceStream.Dispose();
         _sourceStream = null;
     }
 }
Example #2
0
 protected override int OnInitializePins()
 {
     _outputPin = new DotNetStreamOutputPin("Output", this, _sourceStream);
     AddPin(_outputPin);
     return(NOERROR);
 }
 protected override int OnInitializePins()
 {
   _outputPin = new DotNetStreamOutputPin("Output", this, _sourceStream);
   AddPin(_outputPin);
   return NOERROR;
 }