Exemplo n.º 1
0
 /// <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();
     }
 }
Exemplo n.º 2
0
        protected virtual void Dispose(bool isDisposing)
        {
            if (isDisposed)
            {
                return;
            }

            isDisposed = true;
            sentry?.Dispose();
            sentry      = null;
            sentryScope = null;
        }
Exemplo n.º 3
0
        public void Dispose()
        {
            if (_integrations?.Count > 0)
            {
                foreach (var integration in _integrations)
                {
                    integration.Unregister(this);
                }
            }

            _ownedClient?.Dispose();
            _ownedClient = null;
            (ScopeManager as IDisposable)?.Dispose();
        }
Exemplo n.º 4
0
        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();
        }
Exemplo n.º 5
0
        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();
        }
Exemplo n.º 6
0
 public void Dispose()
 {
     _sentry?.Dispose();
 }