/// <summary> /// Mandatory dispose pattern by CA1063. /// </summary> /// <param name="disposing">Whether to dispose unmanaged resources.</param> protected virtual void Dispose(bool disposing) { if (disposing) { _sentryClient?.Dispose(); } }
protected virtual void Dispose(bool isDisposing) { if (isDisposed) { return; } isDisposed = true; sentry?.Dispose(); sentry = null; sentryScope = null; }
public void Dispose() { if (_integrations?.Count > 0) { foreach (var integration in _integrations) { integration.Unregister(this); } } _ownedClient?.Dispose(); _ownedClient = null; (ScopeManager as IDisposable)?.Dispose(); }
public void Dispose() { _options.DiagnosticLogger?.LogInfo("Disposing the Hub."); if (_integrations?.Count > 0) { foreach (var integration in _integrations) { integration.Unregister(this); } } _ownedClient?.Dispose(); _ownedClient = null; (ScopeManager as IDisposable)?.Dispose(); }
public void Dispose() { _options.DiagnosticLogger?.LogInfo("Disposing the Hub."); if (_integrations?.Length > 0) { foreach (var integration in _integrations) { if (integration is IInternalSdkIntegration internalIntegration) { internalIntegration.Unregister(this); } } } _ownedClient?.Dispose(); _rootScope.Dispose(); ScopeManager?.Dispose(); }
public void Dispose() { _sentry?.Dispose(); }