/// <summary> /// Tear down the client and dispose of background workers. /// </summary> public void Dispose() { if (_ORM != null) { _ORM.Dispose(); _ORM = null; } }
public void Dispose() { if (_ORM != null) { _ORM.Dispose(); _ORM = null; } if (_StorageDriver != null) { _StorageDriver = null; } }
/// <summary> /// Tear down IndexEngine and dispose of resources. /// </summary> /// <param name="disposing">True if disposing of resources.</param> protected virtual void Dispose(bool disposing) { if (disposing) { Log("disposing"); _TokenSource.Cancel(); _ORM.Dispose(); lock (_Lock) { _DocumentsIndexing = null; } } }