/// <summary>Initialize a new instance of a <see cref="BasicPipe"/></summary> public BasicPipe() { PipeCount.ExecuteInLock(i => { Id = i; return(i + 1); }); }
/// <summary> /// Disposes the CustomLogger, releases resources and supresses the finalizer /// </summary> protected virtual void OnDispose() { _isDisposed.ExecuteInLock(value => { if (!value) { W.Logging.Log.LogTheMessage -= LogMessage; GC.SuppressFinalize(this); } return(true); }); }