src/Foundation/Infrastructure/Gimela.Infrastructure.AsyncModel/AsyncWorker/AsyncWorker.cs
/// <summary>
/// Releases unmanaged and - optionally - managed resources
/// </summary>
/// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
Releases unmanaged and - optionally - managed resources
Releases unmanaged and - optionally - managed resources
protected virtual void Dispose(bool disposing)
    {
      if (disposing)
      {
        lock (locker)
        {
          if (workerTimeoutTimer != null)
          {
            workerTimeoutTimer.Dispose();
            workerTimeoutTimer = null;
          }
          if (worker != null)
          {
            worker.Dispose();
            worker = null;
          }
        }
      }
    }
protected virtual void Dispose ( bool disposing ) { if ( disposing ) { lock ( locker ) { if ( workerTimeoutTimer != null ) { workerTimeoutTimer . Dispose ( ) ; workerTimeoutTimer = null ; } if ( worker != null ) { worker . Dispose ( ) ; worker = null ; } } } }
Releases unmanaged and - optionally - managed resources
Releases unmanaged and - optionally - managed resources
disposing
bool
None