/// <summary> /// Releases the managed and unmanaged resources used by the <see cref="SearchInternal"/>. /// </summary> /// <param name="disposing">A value indicating whether the object is in the process of disposing.</param> public void Dispose(bool disposing) { if (!Disposed) { if (disposing) { SearchTimeoutTimer.Dispose(); } Disposed = true; } }
/// <summary> /// Releases the managed and unmanaged resources used by the <see cref="SearchInternal"/>. /// </summary> /// <param name="disposing">A value indicating whether the object is in the process of disposing.</param> protected virtual void Dispose(bool disposing) { if (!Disposed) { if (disposing) { SearchTimeoutTimer.Dispose(); } Disposed = true; } }
private void Dispose(bool disposing) { if (!Disposed) { if (disposing) { SearchTimeoutTimer.Dispose(); ResponseBag = default; } Disposed = true; } }
private void Dispose(bool disposing) { if (!Disposed) { if (disposing) { SearchTimeoutTimer.Dispose(); ResponseBag = default(ConcurrentBag <SearchResponse>); } Disposed = true; } }