public void Dispose()
        {
            var disposalSource = Interlocked.Exchange(ref _disposalSource, null);

            if (disposalSource != null)
            {
                disposalSource.Cancel();
                _garbageCollectionProcess.Terminate();
                disposalSource.Dispose();
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Terminates the dynamic process operation.
 /// </summary>
 public void Terminate()
 {
     _dynamicProcess.Terminate();
 }
 public void Dispose()
 {
     _receiveProcess.Terminate();
     _physicalEndPoint.Dispose();
 }