public void Dispose() { var disposalSource = Interlocked.Exchange(ref _disposalSource, null); if (disposalSource != null) { disposalSource.Cancel(); _garbageCollectionProcess.Terminate(); disposalSource.Dispose(); } }
/// <summary> /// Terminates the dynamic process operation. /// </summary> public void Terminate() { _dynamicProcess.Terminate(); }
public void Dispose() { _receiveProcess.Terminate(); _physicalEndPoint.Dispose(); }