示例#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();
     }
 }
示例#2
0
        protected virtual void Dispose(bool isDisposing)
        {
            if (isDisposed)
            {
                return;
            }

            isDisposed = true;
            sentry?.Dispose();
            sentry      = null;
            sentryScope = null;
        }
示例#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();
        }
示例#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();
        }
示例#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();
        }
示例#6
0
 public void Dispose()
 {
     _sentry?.Dispose();
 }