コード例 #1
0
            public void Dispose()
            {
                var disposeShellContext = ScopeReleased();

                _httpContext.RequestServices = _existingServices;
                _serviceScope.Dispose();

                GC.SuppressFinalize(this);

                if (disposeShellContext)
                {
                    _shellContext.Dispose();
                }
            }
コード例 #2
0
            public void Dispose()
            {
                var disposeShellContext = ScopeReleased();

                _httpContext.RequestServices = _existingServices;
                _serviceScope.Dispose();

                if (disposeShellContext)
                {
                    _shellContext.Dispose();
                }

                // Decrement the counter at the very end of the scope
                Interlocked.Decrement(ref _shellContext._refCount);
            }