public void Dispose() { if (_disposed) { return; } _disposed = true; if (!_token.IsCancellationRequested) { _token.Cancel(); } try { _task.Wait(); } catch (Exception) { // } _severTempFolder.DisposeAsync().AsTask().Wait(); }