511 references to ObjectDisposedException
csc (2)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (2)
890throw new ObjectDisposedException("Mutex"); 1002throw new ObjectDisposedException("Mutex");
dotnet (2)
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26422.113\contentFiles\cs\net11.0\BuildServerConnection.cs (2)
890throw new ObjectDisposedException("Mutex"); 1002throw new ObjectDisposedException("Mutex");
dotnet-Microsoft.XmlSerializer.Generator (2)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (2)
125throw new ObjectDisposedException(instance?.GetType().FullName); 131throw new ObjectDisposedException(type?.FullName);
dotnet-svcutil-lib (23)
CodeDomFixup\CodeDomVisitors\CodeTypeNameScope.cs (1)
25throw new ObjectDisposedException(GetType().Name);
CodeDomFixup\CodeDomVisitors\PropertyFieldNameScope.cs (1)
30throw new ObjectDisposedException(GetType().Name);
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (2)
352throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName)); 583throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\UnconditionalPolicy.cs (1)
206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\X509SecurityToken.cs (1)
128throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferedWriteStream.cs (1)
59throw new ObjectDisposedException("BufferedWriteStream");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelBindingMessageProperty.cs (1)
132throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CommunicationObject.cs (1)
242return new ObjectDisposedException(this.GetCommunicationObjectType().ToString());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CommunicationObjectManager.cs (1)
41throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LifetimeManager.cs (4)
65throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 203throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 232throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 356this.Complete(false, new ObjectDisposedException(this.GetType().ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ProducerConsumerStream.cs (1)
127throw new ObjectDisposedException("ProducerConsumerStream");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestContextBase.cs (1)
197throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
295throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityMessageProperty.cs (1)
315throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
324throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceChannelManager.cs (3)
121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 195throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 274throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString()));
Shared\MSBuildProj.cs (1)
1032throw new ObjectDisposedException(nameof(MSBuildProj));
EventSourceGenerator (2)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (2)
125throw new ObjectDisposedException(instance?.GetType().FullName); 131throw new ObjectDisposedException(type?.FullName);
GenerateDocumentationAndConfigFiles (5)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
59throw new ObjectDisposedException($"Somehow a {nameof(SemaphoreDisposer)} is being disposed twice.");
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
99throw new ObjectDisposedException(nameof(CancellationSeries));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
70throw new ObjectDisposedException(nameof(EditDistance)); 87throw new ObjectDisposedException(nameof(EditDistance));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
120public T Target => _instance ?? throw new ObjectDisposedException(nameof(ReferenceCountedDisposable<>));
Microsoft.AspNetCore.Components (1)
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
123throw new ObjectDisposedException(nameof(ArrayBufferWriter<T>));
Microsoft.AspNetCore.Components.Server (2)
Circuits\CircuitHost.cs (1)
698throw new ObjectDisposedException(objectName: null);
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
123throw new ObjectDisposedException(nameof(ArrayBufferWriter<T>));
Microsoft.AspNetCore.Components.WebView.Wpf (1)
BlazorWebView.cs (1)
376 throw new ObjectDisposedException(GetType().Name);
Microsoft.AspNetCore.DataProtection (1)
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
123throw new ObjectDisposedException(nameof(ArrayBufferWriter<T>));
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (1)
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
123throw new ObjectDisposedException(nameof(ArrayBufferWriter<T>));
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Logging\RequestHeadersEnricherTests.cs (2)
256httpContextMock.SetupGet(c => c.Request.Headers).Throws(new ObjectDisposedException("")); 258httpContextMock.SetupGet(c => c.Features).Throws(new ObjectDisposedException(""));
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
123throw new ObjectDisposedException(nameof(ArrayBufferWriter<T>));
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
PooledArrayBufferWriter`1.cs (1)
118throw new ObjectDisposedException(nameof(ArrayBufferWriter<T>));
Microsoft.AspNetCore.Server.HttpSys (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
106return new ObjectDisposedException(GetArgumentName(argument));
Microsoft.AspNetCore.Server.IIS (3)
Core\EmptyStream.cs (1)
77throw new ObjectDisposedException(nameof(HttpRequestStream));
Core\HttpRequestStream.cs (1)
125throw new ObjectDisposedException(nameof(HttpRequestStream));
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
106return new ObjectDisposedException(GetArgumentName(argument));
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\HttpRequestPipeReader.cs (1)
130static void ThrowObjectDisposedException() => throw new ObjectDisposedException(nameof(HttpRequestStream));
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
106return new ObjectDisposedException(GetArgumentName(argument));
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
106return new ObjectDisposedException(GetArgumentName(argument));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
106return new ObjectDisposedException(GetArgumentName(argument));
Microsoft.AspNetCore.TestHost (2)
TestWebSocket.cs (2)
286throw new IOException("The remote end closed the connection.", new ObjectDisposedException(typeof(TestWebSocket).FullName)); 336throw new IOException("The remote end closed the connection.", new ObjectDisposedException(typeof(TestWebSocket).FullName));
Microsoft.AspNetCore.WebUtilities (1)
HttpResponseStreamWriter.cs (1)
674return Task.FromException(new ObjectDisposedException(nameof(HttpResponseStreamWriter)));
Microsoft.Bcl.AsyncInterfaces (2)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (2)
125throw new ObjectDisposedException(instance?.GetType().FullName); 131throw new ObjectDisposedException(type?.FullName);
Microsoft.Bcl.Numerics (2)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (2)
125throw new ObjectDisposedException(instance?.GetType().FullName); 131throw new ObjectDisposedException(type?.FullName);
Microsoft.Build (1)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
1029throw new ObjectDisposedException(nameof(ProjectCacheService));
Microsoft.Build.Tasks.CodeAnalysis (3)
src\roslyn\src\Compilers\Core\MSBuildTask\RCWForCurrentContext.cs (1)
87throw new ObjectDisposedException("RCWForCurrentCtx");
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (2)
890throw new ObjectDisposedException("Mutex"); 1002throw new ObjectDisposedException("Mutex");
Microsoft.CodeAnalysis (6)
DiaSymReader\Writer\SymUnmanagedWriterImpl.cs (1)
45=> _symWriter ?? throw (_disposed ? new ObjectDisposedException(nameof(SymUnmanagedWriterImpl)) : new InvalidOperationException());
InternalUtilities\SemaphoreSlimExtensions.cs (1)
59throw new ObjectDisposedException($"Somehow a {nameof(SemaphoreDisposer)} is being disposed twice.");
MetadataReader\PEModule.cs (1)
274throw new ObjectDisposedException(nameof(ModuleMetadata));
MetadataReference\AssemblyMetadata.cs (2)
298throw new ObjectDisposedException(nameof(AssemblyMetadata)); 364throw new ObjectDisposedException(nameof(AssemblyMetadata));
MetadataReference\ModuleMetadata.cs (1)
315throw new ObjectDisposedException(nameof(ModuleMetadata));
Microsoft.CodeAnalysis.Analyzers (5)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
59throw new ObjectDisposedException($"Somehow a {nameof(SemaphoreDisposer)} is being disposed twice.");
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
99throw new ObjectDisposedException(nameof(CancellationSeries));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
70throw new ObjectDisposedException(nameof(EditDistance)); 87throw new ObjectDisposedException(nameof(EditDistance));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
120public T Target => _instance ?? throw new ObjectDisposedException(nameof(ReferenceCountedDisposable<>));
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
59throw new ObjectDisposedException($"Somehow a {nameof(SemaphoreDisposer)} is being disposed twice.");
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
99throw new ObjectDisposedException(nameof(CancellationSeries));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
70throw new ObjectDisposedException(nameof(EditDistance)); 87throw new ObjectDisposedException(nameof(EditDistance));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
120public T Target => _instance ?? throw new ObjectDisposedException(nameof(ReferenceCountedDisposable<>));
Microsoft.CodeAnalysis.CodeStyle (5)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
59throw new ObjectDisposedException($"Somehow a {nameof(SemaphoreDisposer)} is being disposed twice.");
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
99throw new ObjectDisposedException(nameof(CancellationSeries));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
70throw new ObjectDisposedException(nameof(EditDistance)); 87throw new ObjectDisposedException(nameof(EditDistance));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
120public T Target => _instance ?? throw new ObjectDisposedException(nameof(ReferenceCountedDisposable<>));
Microsoft.CodeAnalysis.Features (2)
Debugging\DebugInformationReaderProvider.cs (1)
69=> EditAndContinueDebugInfoReader.Create(_symReader ?? throw new ObjectDisposedException(GetType().FullName), _version);
EditAndContinue\DebuggingSession.cs (1)
197throw new ObjectDisposedException(nameof(DebuggingSession));
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
59throw new ObjectDisposedException($"Somehow a {nameof(SemaphoreDisposer)} is being disposed twice.");
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
99throw new ObjectDisposedException(nameof(CancellationSeries));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
70throw new ObjectDisposedException(nameof(EditDistance)); 87throw new ObjectDisposedException(nameof(EditDistance));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
120public T Target => _instance ?? throw new ObjectDisposedException(nameof(ReferenceCountedDisposable<>));
Microsoft.CodeAnalysis.Workspaces (5)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
59throw new ObjectDisposedException($"Somehow a {nameof(SemaphoreDisposer)} is being disposed twice.");
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
99throw new ObjectDisposedException(nameof(CancellationSeries));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
70throw new ObjectDisposedException(nameof(EditDistance)); 87throw new ObjectDisposedException(nameof(EditDistance));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
120public T Target => _instance ?? throw new ObjectDisposedException(nameof(ReferenceCountedDisposable<>));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
59throw new ObjectDisposedException($"Somehow a {nameof(SemaphoreDisposer)} is being disposed twice.");
Microsoft.Diagnostics.NETCore.Client (5)
DiagnosticsIpc\IpcServerTransport.cs (1)
77throw new ObjectDisposedException(GetType().Name);
DiagnosticsServerRouter\DiagnosticsServerRouterFactory.cs (1)
1488throw new ObjectDisposedException(nameof(Router));
HandleableCollection.cs (2)
86tuple.Item1.TrySetException(new ObjectDisposedException(nameof(HandleableCollection<T>))); 272throw new ObjectDisposedException(nameof(HandleableCollection<T>));
ReversedServer\ReversedDiagnosticsServer.cs (1)
231throw new ObjectDisposedException(nameof(ReversedDiagnosticsServer));
Microsoft.DiaSymReader (1)
Writer\SymUnmanagedWriterImpl.cs (1)
42=> _symWriter ?? throw (_disposed ? new ObjectDisposedException(nameof(SymUnmanagedWriterImpl)) : new InvalidOperationException());
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionFactory.cs (1)
1474static void Throw() => throw new ObjectDisposedException(nameof(PooledMemoryStream));
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.CacheItem.cs (1)
133static void Throw() => throw new ObjectDisposedException("The cache item has been recycled before the value was obtained");
Microsoft.Extensions.Caching.Memory (1)
MemoryCache.cs (1)
764static void Throw() => throw new ObjectDisposedException(typeof(MemoryCache).FullName);
Microsoft.Extensions.Configuration (2)
ReferenceCountedProvidersManager.cs (2)
49throw new ObjectDisposedException(nameof(ConfigurationManager)); 67throw new ObjectDisposedException(nameof(ConfigurationManager));
Microsoft.Extensions.Configuration.Binder.SourceGeneration (2)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (2)
125throw new ObjectDisposedException(instance?.GetType().FullName); 131throw new ObjectDisposedException(type?.FullName);
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\ThrowHelper.cs (1)
16throw new ObjectDisposedException(nameof(IServiceProvider));
Microsoft.Extensions.Diagnostics (3)
Metrics\DefaultMeterFactory.cs (1)
34throw new ObjectDisposedException(nameof(DefaultMeterFactory));
Tracing\DefaultActivitySourceFactory.cs (2)
58throw new ObjectDisposedException(nameof(DefaultActivitySourceFactory)); 77throw new ObjectDisposedException(nameof(DefaultActivitySourceFactory));
Microsoft.Extensions.Diagnostics.Testing (2)
Logging\FakeLogCollector.LogEnumeration.cs (1)
207throw new ObjectDisposedException(nameof(StreamEnumerator));
Metrics\MetricCollector.cs (1)
341: new(nameof(MetricCollector<T>));
Microsoft.Extensions.Logging (2)
LoggerFactory.cs (2)
144throw new ObjectDisposedException(nameof(LoggerFactory)); 173throw new ObjectDisposedException(nameof(LoggerFactory));
Microsoft.Extensions.Logging.Generators (2)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (2)
125throw new ObjectDisposedException(instance?.GetType().FullName); 131throw new ObjectDisposedException(type?.FullName);
Microsoft.Extensions.ML (2)
PoolLoader.cs (1)
65throw new ObjectDisposedException(nameof(PoolLoader<TData, TPrediction>));
PredictionEnginePool.cs (1)
92throw new ObjectDisposedException(nameof(PredictionEnginePool<TData, TPrediction>));
Microsoft.Extensions.ObjectPool (1)
DisposableObjectPool.cs (1)
34throw new ObjectDisposedException(GetType().Name);
Microsoft.Extensions.Options.Contextual.Tests (1)
ContextualOptionsFactoryTests.cs (1)
234disposeMock.Setup(conf => conf.Dispose()).Throws(new ObjectDisposedException("foo"));
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
parent\parent\Shared\FxPolyfills\ObjectDisposedException.cs (1)
16throw new ObjectDisposedException(instance?.GetType().FullName);
Microsoft.Extensions.Telemetry (2)
Logging\ExtendedLoggerFactory.cs (2)
145throw new ObjectDisposedException(nameof(LoggerFactory)); 169throw new ObjectDisposedException(nameof(LoggerFactory));
Microsoft.Interop.ComInterfaceGenerator (2)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (2)
125throw new ObjectDisposedException(instance?.GetType().FullName); 131throw new ObjectDisposedException(type?.FullName);
Microsoft.Interop.JavaScript.JSImportGenerator (2)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (2)
125throw new ObjectDisposedException(instance?.GetType().FullName); 131throw new ObjectDisposedException(type?.FullName);
Microsoft.Interop.LibraryImportGenerator (2)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (2)
125throw new ObjectDisposedException(instance?.GetType().FullName); 131throw new ObjectDisposedException(type?.FullName);
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (2)
125throw new ObjectDisposedException(instance?.GetType().FullName); 131throw new ObjectDisposedException(type?.FullName);
Microsoft.Interop.SourceGeneration (2)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (2)
125throw new ObjectDisposedException(instance?.GetType().FullName); 131throw new ObjectDisposedException(type?.FullName);
Microsoft.ML.TensorFlow (2)
TensorflowTransform.cs (1)
365throw new ObjectDisposedException(nameof(graph));
TensorflowUtils.cs (1)
592throw new ObjectDisposedException(nameof(_session));
Microsoft.ML.Vision (1)
DnnRetrainTransform.cs (1)
607throw new ObjectDisposedException(nameof(graph));
Microsoft.TemplateEngine.Edge (3)
BuiltInManagedProvider\GlobalSettings.cs (3)
40throw new ObjectDisposedException(nameof(GlobalSettings)); 69throw new ObjectDisposedException(nameof(GlobalSettings)); 118throw new ObjectDisposedException(nameof(GlobalSettings));
Microsoft.TestPlatform.CommunicationUtilities (1)
SocketServer.cs (1)
79throw new ObjectDisposedException(nameof(SocketServer));
Microsoft.TestPlatform.CoreUtilities (1)
Utilities\JobQueue.cs (1)
281throw new ObjectDisposedException(
Microsoft.TestPlatform.CrossPlatEngine (2)
Adapter\FrameworkHandle.cs (1)
79throw new ObjectDisposedException("IFrameworkHandle");
Client\TestLoggerManager.cs (1)
706throw new ObjectDisposedException(typeof(TestLoggerManager).FullName);
Microsoft.VisualStudio.TestPlatform.Client (5)
Discovery\DiscoveryRequest.cs (3)
75throw new ObjectDisposedException(nameof(DiscoveryRequest)); 117throw new ObjectDisposedException(nameof(DiscoveryRequest)); 156throw new ObjectDisposedException("DiscoveryRequest");
Execution\TestRunRequest.cs (2)
113throw new ObjectDisposedException("testRunRequest"); 191throw new ObjectDisposedException("testRunRequest");
Microsoft.VisualStudio.TestPlatform.Common (1)
Logging\InternalTestLoggerEvents.cs (1)
360throw new ObjectDisposedException(typeof(TestLoggerEvents).FullName);
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Navigation\PortablePdbReader.cs (1)
147throw new ObjectDisposedException(nameof(PortablePdbReader));
Mono.Cecil (1)
Mono.Collections.Generic\Collection.cs (1)
406 throw new ObjectDisposedException (GetType ().FullName);
NuGet.Configuration (1)
Settings\SettingsLoadingContext.cs (1)
52throw new ObjectDisposedException(nameof(SettingsLoadingContext));
NuGet.Packaging (4)
RuntimeModel\JsonObjectWriter.cs (1)
189throw new ObjectDisposedException(nameof(JsonObjectWriter));
Signing\Archive\ReadOnlyBufferedStream.cs (1)
368throw new ObjectDisposedException(nameof(ReadOnlyBufferedStream));
Signing\Authoring\SigningOptions.cs (2)
26throw new ObjectDisposedException(nameof(SigningOptions)); 42throw new ObjectDisposedException(nameof(SigningOptions));
NuGet.ProjectModel (2)
HashObjectWriter.cs (1)
281throw new ObjectDisposedException(nameof(HashObjectWriter));
src\nuget-client\build\Shared\Utf8JsonStreamReader.cs (1)
395throw new ObjectDisposedException(nameof(Utf8JsonStreamReader));
NuGet.Protocol (9)
HttpSource\HttpSourceAuthenticationHandler.cs (1)
72throw new ObjectDisposedException(objectName: null); // we don't know the caller name
LocalPackageArchiveDownloader.cs (1)
303throw new ObjectDisposedException(nameof(LocalPackageArchiveDownloader));
Plugins\InboundRequestProcessingHandler.cs (1)
82throw new ObjectDisposedException(GetType().Name);
Plugins\PluginFactory.cs (1)
131throw new ObjectDisposedException(nameof(PluginFactory));
Plugins\PluginPackageDownloader.cs (1)
246throw new ObjectDisposedException(nameof(PluginPackageDownloader));
Plugins\Receiver.cs (1)
87throw new ObjectDisposedException(GetType().Name);
Plugins\Sender.cs (1)
174throw new ObjectDisposedException(nameof(Sender));
RemotePackageArchiveDownloader.cs (1)
300throw new ObjectDisposedException(nameof(RemotePackageArchiveDownloader));
Utility\DedicatedAsynchronousProcessingThread.cs (1)
111throw new ObjectDisposedException(GetType().Name);
PresentationCore (16)
MS\Internal\TextFormatting\FullTextBreakpoint.cs (2)
217throw new ObjectDisposedException(SR.TextBreakpointHasBeenDisposed); 235throw new ObjectDisposedException(SR.TextBreakpointHasBeenDisposed);
MS\Internal\TextFormatting\FullTextLine.cs (11)
539throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 700throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 814throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 838throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 971throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 1131throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 1224throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 1484throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 2053throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 2113throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 2177throw new ObjectDisposedException(SR.TextLineHasBeenDisposed);
MS\Internal\TextFormatting\TextPenaltyModule.cs (1)
76throw new ObjectDisposedException(SR.TextPenaltyModuleHasBeenDisposed);
System\Windows\Input\InputProviderSite.cs (1)
80throw new ObjectDisposedException(SR.InputProviderSiteDisposed);
System\Windows\Media\StreamAsIStream.cs (1)
501throw new System.ObjectDisposedException(SR.Media_StreamClosed);
PresentationFramework (6)
System\Windows\Documents\NaturalLanguageHyphenator.cs (1)
121throw new ObjectDisposedException(SR.HyphenatorDisposed);
System\Windows\Documents\NLGSpellerInterop.cs (3)
116throw new ObjectDisposedException(SR.TextEditorSpellerInteropHasBeenDisposed); 743throw new ObjectDisposedException("NLGSpellerInterop.SpellerSegment"); 898throw new ObjectDisposedException("NLGSpellerInterop.SpellerSentence");
System\Windows\Documents\WinRTSpellerInterop.cs (1)
110throw new ObjectDisposedException(SR.TextEditorSpellerInteropHasBeenDisposed);
System\Windows\Markup\Baml2006\SharedStream.cs (1)
282throw new ObjectDisposedException("BaseStream");
ReachFramework (7)
Packaging\XpsFixedPageReaderWriter.cs (7)
781throw new ObjectDisposedException("FixedPageReader"); 963throw new ObjectDisposedException("FixedPageReader"); 1032throw new ObjectDisposedException("FixedPageReader"); 1058throw new ObjectDisposedException("FixedPageReader"); 1086throw new ObjectDisposedException("FixedPageReader"); 1220throw new ObjectDisposedException("FixedPageReader"); 1240throw new ObjectDisposedException("FixedPageReader");
Roslyn.Diagnostics.Analyzers (5)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
59throw new ObjectDisposedException($"Somehow a {nameof(SemaphoreDisposer)} is being disposed twice.");
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
99throw new ObjectDisposedException(nameof(CancellationSeries));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
70throw new ObjectDisposedException(nameof(EditDistance)); 87throw new ObjectDisposedException(nameof(EditDistance));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
120public T Target => _instance ?? throw new ObjectDisposedException(nameof(ReferenceCountedDisposable<>));
System.Collections.Immutable (1)
Validation\Requires.cs (1)
145throw new ObjectDisposedException(disposed!.GetType().FullName);
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\ExceptionBuilder.cs (1)
32return new ObjectDisposedException(instance.GetType().ToString());
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (1)
398throw new ObjectDisposedException(GetType().Name);
System.Composition.Hosting (1)
System\Composition\Hosting\Core\LifetimeContext.cs (1)
133throw new ObjectDisposedException(ToString());
System.Data.Common (1)
System\Data\TypeLimiter.cs (1)
214throw new ObjectDisposedException(GetType().FullName);
System.Data.Odbc (1)
System\Data\Odbc\OdbcDataReader.cs (1)
76throw new ObjectDisposedException(GetType().Name);
System.Data.OleDb (2)
OleDbDataReader.cs (2)
241throw new ObjectDisposedException(GetType().Name); 252throw new ObjectDisposedException(GetType().Name);
System.Diagnostics.EventLog (2)
System\Diagnostics\EventLogInternal.cs (2)
1056throw new ObjectDisposedException(GetType().Name); 1094throw new ObjectDisposedException(GetType().Name);
System.DirectoryServices (124)
System\DirectoryServices\ActiveDirectory\ActiveDirectoryInterSiteTransport.cs (10)
104throw new ObjectDisposedException(GetType().Name); 115throw new ObjectDisposedException(GetType().Name); 137throw new ObjectDisposedException(GetType().Name); 165throw new ObjectDisposedException(GetType().Name); 188throw new ObjectDisposedException(GetType().Name); 218throw new ObjectDisposedException(GetType().Name); 266throw new ObjectDisposedException(GetType().Name); 316throw new ObjectDisposedException(GetType().Name); 331throw new ObjectDisposedException(GetType().Name); 345throw new ObjectDisposedException(GetType().Name);
System\DirectoryServices\ActiveDirectory\ActiveDirectoryPartition.cs (1)
77throw new ObjectDisposedException(GetType().Name);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaClass.cs (1)
1042throw new ObjectDisposedException(GetType().Name);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaProperty.cs (1)
1090throw new ObjectDisposedException(GetType().Name);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySite.cs (21)
234throw new ObjectDisposedException(GetType().Name); 245throw new ObjectDisposedException(GetType().Name); 267throw new ObjectDisposedException(GetType().Name); 291throw new ObjectDisposedException(GetType().Name); 312throw new ObjectDisposedException(GetType().Name); 332throw new ObjectDisposedException(GetType().Name); 353throw new ObjectDisposedException(GetType().Name); 411throw new ObjectDisposedException(GetType().Name); 432throw new ObjectDisposedException(GetType().Name); 456throw new ObjectDisposedException(GetType().Name); 479throw new ObjectDisposedException(GetType().Name); 498throw new ObjectDisposedException(GetType().Name); 524throw new ObjectDisposedException(GetType().Name); 541throw new ObjectDisposedException(GetType().Name); 565throw new ObjectDisposedException(GetType().Name); 588throw new ObjectDisposedException(GetType().Name); 625throw new ObjectDisposedException(GetType().Name); 721throw new ObjectDisposedException(GetType().Name); 855throw new ObjectDisposedException(GetType().Name); 877throw new ObjectDisposedException(GetType().Name); 1075throw new ObjectDisposedException(GetType().Name);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLink.cs (19)
202throw new ObjectDisposedException(GetType().Name); 213throw new ObjectDisposedException(GetType().Name); 224throw new ObjectDisposedException(GetType().Name); 249throw new ObjectDisposedException(GetType().Name); 267throw new ObjectDisposedException(GetType().Name); 288throw new ObjectDisposedException(GetType().Name); 308throw new ObjectDisposedException(GetType().Name); 337throw new ObjectDisposedException(GetType().Name); 364throw new ObjectDisposedException(GetType().Name); 401throw new ObjectDisposedException(GetType().Name); 428throw new ObjectDisposedException(GetType().Name); 465throw new ObjectDisposedException(GetType().Name); 495throw new ObjectDisposedException(GetType().Name); 533throw new ObjectDisposedException(GetType().Name); 556throw new ObjectDisposedException(GetType().Name); 580throw new ObjectDisposedException(GetType().Name); 604throw new ObjectDisposedException(GetType().Name); 626throw new ObjectDisposedException(GetType().Name); 634throw new ObjectDisposedException(GetType().Name);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLinkBridge.cs (7)
190throw new ObjectDisposedException(GetType().Name); 201throw new ObjectDisposedException(GetType().Name); 226throw new ObjectDisposedException(GetType().Name); 235throw new ObjectDisposedException(GetType().Name); 260throw new ObjectDisposedException(GetType().Name); 282throw new ObjectDisposedException(GetType().Name); 290throw new ObjectDisposedException(GetType().Name);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySubnet.cs (9)
195throw new ObjectDisposedException(GetType().Name); 206throw new ObjectDisposedException(GetType().Name); 213throw new ObjectDisposedException(GetType().Name); 231throw new ObjectDisposedException(GetType().Name); 248throw new ObjectDisposedException(GetType().Name); 273throw new ObjectDisposedException(GetType().Name); 313throw new ObjectDisposedException(GetType().Name); 335throw new ObjectDisposedException(GetType().Name); 343throw new ObjectDisposedException(GetType().Name);
System\DirectoryServices\ActiveDirectory\ADAMInstance.cs (12)
298throw new ObjectDisposedException(GetType().Name); 314throw new ObjectDisposedException(GetType().Name); 334throw new ObjectDisposedException(GetType().Name); 348throw new ObjectDisposedException(GetType().Name); 368throw new ObjectDisposedException(GetType().Name); 387throw new ObjectDisposedException(GetType().Name); 404throw new ObjectDisposedException(GetType().Name); 426throw new ObjectDisposedException(GetType().Name); 442throw new ObjectDisposedException(GetType().Name); 782throw new ObjectDisposedException(GetType().Name); 790throw new ObjectDisposedException(GetType().Name); 810throw new ObjectDisposedException(GetType().Name);
System\DirectoryServices\ActiveDirectory\ConfigSet.cs (1)
734throw new ObjectDisposedException(GetType().Name);
System\DirectoryServices\ActiveDirectory\DirectoryServer.cs (1)
272throw new ObjectDisposedException(GetType().Name);
System\DirectoryServices\ActiveDirectory\DomainController.cs (13)
422throw new ObjectDisposedException(GetType().Name); 438throw new ObjectDisposedException(GetType().Name); 458throw new ObjectDisposedException(GetType().Name); 472throw new ObjectDisposedException(GetType().Name); 492throw new ObjectDisposedException(GetType().Name); 511throw new ObjectDisposedException(GetType().Name); 528throw new ObjectDisposedException(GetType().Name); 550throw new ObjectDisposedException(GetType().Name); 566throw new ObjectDisposedException(GetType().Name); 842throw new ObjectDisposedException(GetType().Name); 850throw new ObjectDisposedException(GetType().Name); 1174throw new ObjectDisposedException(GetType().Name); 1211throw new ObjectDisposedException(GetType().Name);
System\DirectoryServices\ActiveDirectory\Forest.cs (1)
1061throw new ObjectDisposedException(GetType().Name);
System\DirectoryServices\ActiveDirectory\ReplicationConnection.cs (23)
230throw new ObjectDisposedException(GetType().Name); 241throw new ObjectDisposedException(GetType().Name); 271throw new ObjectDisposedException(GetType().Name); 310throw new ObjectDisposedException(GetType().Name); 328throw new ObjectDisposedException(GetType().Name); 346throw new ObjectDisposedException(GetType().Name); 382throw new ObjectDisposedException(GetType().Name); 413throw new ObjectDisposedException(GetType().Name); 452throw new ObjectDisposedException(GetType().Name); 483throw new ObjectDisposedException(GetType().Name); 522throw new ObjectDisposedException(GetType().Name); 556throw new ObjectDisposedException(GetType().Name); 604throw new ObjectDisposedException(GetType().Name); 637throw new ObjectDisposedException(GetType().Name); 678throw new ObjectDisposedException(GetType().Name); 709throw new ObjectDisposedException(GetType().Name); 748throw new ObjectDisposedException(GetType().Name); 774throw new ObjectDisposedException(GetType().Name); 800throw new ObjectDisposedException(GetType().Name); 846throw new ObjectDisposedException(GetType().Name); 868throw new ObjectDisposedException(GetType().Name); 888throw new ObjectDisposedException(GetType().Name); 896throw new ObjectDisposedException(GetType().Name);
System\DirectoryServices\DirectoryEntry.cs (1)
504throw new ObjectDisposedException(GetType().Name);
System\DirectoryServices\SearchResultCollection.cs (3)
80throw new ObjectDisposedException(GetType().Name); 99throw new ObjectDisposedException(GetType().Name); 127throw new ObjectDisposedException(GetType().Name);
System.DirectoryServices.AccountManagement (8)
System\DirectoryServices\AccountManagement\Context.cs (1)
1203throw new ObjectDisposedException("PrincipalContext");
System\DirectoryServices\AccountManagement\FindResult.cs (1)
85throw new ObjectDisposedException("PrincipalSearchResult");
System\DirectoryServices\AccountManagement\FindResultEnumerator.cs (1)
195throw new ObjectDisposedException("FindResultEnumerator");
System\DirectoryServices\AccountManagement\Principal.cs (1)
889throw new ObjectDisposedException(this.GetType().ToString());
System\DirectoryServices\AccountManagement\PrincipalCollection.cs (1)
699throw new ObjectDisposedException("PrincipalCollection");
System\DirectoryServices\AccountManagement\PrincipalCollectionEnumerator.cs (1)
301throw new ObjectDisposedException("PrincipalCollectionEnumerator");
System\DirectoryServices\AccountManagement\PrincipalSearcher.cs (1)
336throw new ObjectDisposedException(this.GetType().ToString());
System\DirectoryServices\AccountManagement\TrackedCollectionEnumerator.cs (1)
170throw new ObjectDisposedException(_outerClassName);
System.DirectoryServices.Protocols (28)
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (6)
197throw new ObjectDisposedException(GetType().Name); 267throw new ObjectDisposedException(GetType().Name); 384throw new ObjectDisposedException(GetType().Name); 426throw new ObjectDisposedException(GetType().Name); 448throw new ObjectDisposedException(GetType().Name); 992throw new ObjectDisposedException(GetType().Name);
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.cs (17)
301throw new ObjectDisposedException(GetType().Name); 318throw new ObjectDisposedException(GetType().Name); 423throw new ObjectDisposedException(GetType().Name); 432throw new ObjectDisposedException(GetType().Name); 461throw new ObjectDisposedException(GetType().Name); 470throw new ObjectDisposedException(GetType().Name); 503throw new ObjectDisposedException(GetType().Name); 512throw new ObjectDisposedException(GetType().Name); 540throw new ObjectDisposedException(GetType().Name); 567throw new ObjectDisposedException(GetType().Name); 747throw new ObjectDisposedException(GetType().Name); 767throw new ObjectDisposedException(GetType().Name); 781throw new ObjectDisposedException(GetType().Name); 794throw new ObjectDisposedException(GetType().Name); 808throw new ObjectDisposedException(GetType().Name); 821throw new ObjectDisposedException(GetType().Name); 846throw new ObjectDisposedException(GetType().Name);
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.Linux.cs (5)
52if (_connection._disposed) throw new ObjectDisposedException(GetType().Name); 57if (_connection._disposed) throw new ObjectDisposedException(GetType().Name); 98if (_connection._disposed) throw new ObjectDisposedException(GetType().Name); 109if (_connection._disposed) throw new ObjectDisposedException(GetType().Name); 118if (_connection._disposed) throw new ObjectDisposedException(GetType().Name);
System.Drawing.Common (1)
System\Drawing\Icon.cs (1)
185public IntPtr Handle => _handle.IsNull ? throw new ObjectDisposedException(GetType().Name) : (nint)_handle;
System.Management (39)
System\Management\InteropClasses\WMIInterop.cs (31)
76throw new ObjectDisposedException(name); 89throw new ObjectDisposedException(name); 111throw new ObjectDisposedException(name); 119throw new ObjectDisposedException(name); 127throw new ObjectDisposedException(name); 136throw new ObjectDisposedException(name); 144throw new ObjectDisposedException(name); 154throw new ObjectDisposedException(name); 162throw new ObjectDisposedException(name); 176throw new ObjectDisposedException(name); 190throw new ObjectDisposedException(name); 198throw new ObjectDisposedException(name); 212throw new ObjectDisposedException(name); 226throw new ObjectDisposedException(name); 235throw new ObjectDisposedException(name); 243throw new ObjectDisposedException(name); 251throw new ObjectDisposedException(name); 272throw new ObjectDisposedException(name); 282throw new ObjectDisposedException(name); 290throw new ObjectDisposedException(name); 298throw new ObjectDisposedException(name); 319throw new ObjectDisposedException(name); 327throw new ObjectDisposedException(name); 340throw new ObjectDisposedException(name); 409throw new ObjectDisposedException(name); 418throw new ObjectDisposedException(name); 426throw new ObjectDisposedException(name); 434throw new ObjectDisposedException(name); 442throw new ObjectDisposedException(name); 450throw new ObjectDisposedException(name); 458throw new ObjectDisposedException(name);
System\Management\ManagementObjectCollection.cs (8)
138throw new ObjectDisposedException(name); 168throw new ObjectDisposedException(name); 185throw new ObjectDisposedException(name); 202throw new ObjectDisposedException(name); 270throw new ObjectDisposedException(name); 476throw new ObjectDisposedException(name); 516throw new ObjectDisposedException(name); 601throw new ObjectDisposedException(name);
System.Net.Http (8)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
1221return Task.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(nameof(Http2Connection))));
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (4)
1611return ValueTask.FromException<int>(ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(nameof(Http2ReadStream)))); 1625Http2Stream http2Stream = _http2Stream ?? throw ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(nameof(Http2ReadStream))); 1634http2Stream is null ? Task.FromException<int>(ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(nameof(Http2ReadStream)))) : 1646return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(nameof(Http2WriteStream))));
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (3)
1520return ValueTask.FromException<int>(ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(nameof(Http3RequestStream)))); 1573return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(nameof(Http3WriteStream)))); 1585return Task.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(nameof(Http3WriteStream))));
System.Net.Http.WinHttpHandler (3)
System\Net\Http\WinHttpHandler.cs (1)
1591throw new ObjectDisposedException(GetType().FullName);
System\Net\Http\WinHttpRequestStream.cs (1)
188throw new ObjectDisposedException(this.GetType().FullName);
System\Net\Http\WinHttpResponseStream.cs (1)
336throw new ObjectDisposedException(this.GetType().FullName);
System.Net.HttpListener (1)
System\Net\Managed\HttpListener.Managed.cs (1)
247Exception exc = new ObjectDisposedException("listener");
System.Net.Mail (1)
System\Net\Mail\SmtpClient.cs (1)
415return (ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(typeof(SmtpClient).FullName)), true);
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.cs (1)
102throw new ObjectDisposedException(GetType().FullName);
System.Net.Quic (4)
System\Net\Quic\QuicConnection.cs (2)
680Exception exception = ExceptionDispatchInfo.SetCurrentStackTrace(_disposed ? new ObjectDisposedException(GetType().FullName) : ThrowHelper.GetOperationAbortedException()); 863_acceptQueue.Writer.TryComplete(ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(GetType().FullName)));
System\Net\Quic\QuicListener.cs (1)
432_acceptQueue.Writer.TryComplete(ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(GetType().FullName)));
System\Net\Quic\QuicStream.cs (1)
395return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(nameof(QuicStream))));
System.Net.Security (1)
System\Net\Security\TlsContext.cs (1)
70internal SslAuthenticationOptions Options => _options ?? throw new ObjectDisposedException(nameof(TlsContext));
System.Net.Sockets (2)
System\Net\Sockets\Socket.Unix.cs (1)
171throw new ObjectDisposedException(GetType().FullName);
System\Net\Sockets\TCPListener.cs (1)
300throw new ObjectDisposedException(typeof(Socket).FullName);
System.Net.WebSockets (2)
System\Net\WebSockets\WebSocketStream.cs (2)
199return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(GetType().FullName))); 301return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(GetType().FullName)));
System.Net.WebSockets.Client (2)
System\Net\WebSockets\ClientWebSocket.cs (2)
107throw new ObjectDisposedException(GetType().FullName); 137throw new ObjectDisposedException(GetType().FullName);
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
887return new System.ObjectDisposedException(null);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (2)
446throw new ObjectDisposedException(instance?.GetType().FullName); 452throw new ObjectDisposedException(type?.FullName);
System.Private.CoreLib.Generators (2)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (2)
125throw new ObjectDisposedException(instance?.GetType().FullName); 131throw new ObjectDisposedException(type?.FullName);
System.Reflection.Metadata (3)
System\Reflection\Metadata\Internal\VirtualHeap.cs (1)
73throw new ObjectDisposedException(nameof(VirtualHeap));
System\Reflection\Metadata\MetadataReaderProvider.cs (1)
285throw new ObjectDisposedException(nameof(MetadataReaderProvider));
System\Reflection\Throw.cs (1)
251throw new ObjectDisposedException(nameof(PortableExecutable.PEReader));
System.Reflection.MetadataLoadContext (7)
System\Reflection\MetadataLoadContext.Apis.cs (7)
127throw new ObjectDisposedException(nameof(MetadataLoadContext)); 141throw new ObjectDisposedException(nameof(MetadataLoadContext)); 158throw new ObjectDisposedException(nameof(MetadataLoadContext)); 175throw new ObjectDisposedException(nameof(MetadataLoadContext)); 193throw new ObjectDisposedException(nameof(MetadataLoadContext)); 224throw new ObjectDisposedException(nameof(MetadataLoadContext)); 236throw new ObjectDisposedException(nameof(MetadataLoadContext));
System.Runtime.Caching (1)
System\Runtime\Caching\MemoryCache.cs (1)
823throw new ObjectDisposedException(cacheName);
System.ServiceModel.Federation (1)
System\IdentityModel\Security\WrapperSecurityCommunicationObject.cs (1)
154return new ObjectDisposedException(GetCommunicationObjectType().ToString());
System.ServiceModel.Primitives (24)
Internals\System\Runtime\AsyncLock.cs (2)
27throw new ObjectDisposedException(nameof(AsyncLock)); 46throw new ObjectDisposedException(nameof(AsyncLock));
Internals\System\Runtime\MruCache.cs (1)
252throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().FullName));
System\IdentityModel\Claims\X509CertificateClaimSet.cs (2)
372throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().FullName)); 629throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().FullName));
System\IdentityModel\Policy\UnconditionalPolicy.cs (1)
188throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().FullName));
System\IdentityModel\Tokens\X509SecurityToken.cs (1)
195throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().FullName));
System\ServiceModel\Channels\BufferedReadStream.cs (1)
71throw new ObjectDisposedException(nameof(BufferedReadStream));
System\ServiceModel\Channels\BufferedWriteStream.cs (1)
64throw new ObjectDisposedException(nameof(BufferedWriteStream));
System\ServiceModel\Channels\ChannelBindingMessageProperty.cs (1)
128throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().FullName));
System\ServiceModel\Channels\CommunicationObject.cs (1)
355return new ObjectDisposedException(GetCommunicationObjectType().ToString());
System\ServiceModel\Channels\CommunicationObjectManager.cs (1)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString()));
System\ServiceModel\Channels\LifetimeManager.cs (3)
62throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString())); 241throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString())); 252throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString()));
System\ServiceModel\Channels\ProducerConsumerStream.cs (1)
126throw new ObjectDisposedException("ProducerConsumerStream");
System\ServiceModel\Channels\ReliableChannelBinder.cs (1)
362return new ObjectDisposedException(GetType().ToString());
System\ServiceModel\Channels\RequestContextBase.cs (1)
190throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().FullName));
System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
402throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(SRP.Format(
System\ServiceModel\Security\SecurityMessageProperty.cs (1)
309throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().FullName));
System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
185throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().FullName));
System\ServiceModel\ServiceChannelManager.cs (3)
97throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString())); 131throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString())); 197throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString()));
System.ServiceProcess.ServiceController (2)
System\ServiceProcess\ServiceBase.cs (1)
670throw new ObjectDisposedException(GetType().Name);
System\ServiceProcess\ServiceController.cs (1)
650throw new ObjectDisposedException(GetType().Name);
System.Speech (6)
Internal\Synthesis\VoiceSynthesis.cs (1)
1662throw new ObjectDisposedException("VoiceSynthesis");
Recognition\RecognizerBase.cs (2)
1389get { if (_disposed) { throw new ObjectDisposedException("RecognizerBase"); } return _sapiContext; } 1396get { if (_disposed) { throw new ObjectDisposedException("RecognizerBase"); } return _sapiRecognizer; }
Recognition\SpeechRecognitionEngine.cs (1)
613throw new ObjectDisposedException("SpeechRecognitionEngine");
Recognition\SpeechRecognizer.cs (1)
398throw new ObjectDisposedException("SpeechRecognitionEngine");
Synthesis\SpeechSynthesizer.cs (1)
508throw new ObjectDisposedException("SpeechSynthesizer");
System.Text.Json (2)
System\Text\Json\ThrowHelper.cs (2)
700throw new ObjectDisposedException(nameof(Utf8JsonWriter)); 706throw new ObjectDisposedException(nameof(JsonDocument));
System.Text.RegularExpressions.Generator (2)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (2)
125throw new ObjectDisposedException(instance?.GetType().FullName); 131throw new ObjectDisposedException(type?.FullName);
System.Threading.RateLimiting (10)
System\Threading\RateLimiting\ChainedPartitionedRateLimiter.cs (1)
130throw new ObjectDisposedException(nameof(ChainedPartitionedRateLimiter<TResource>));
System\Threading\RateLimiting\ChainedRateLimiter.cs (1)
58throw new ObjectDisposedException(nameof(ChainedRateLimiter));
System\Threading\RateLimiting\ChainedReplenishingRateLimiter.cs (1)
123throw new ObjectDisposedException(nameof(ChainedReplenishingRateLimiter));
System\Threading\RateLimiting\ConcurrencyLimiter.cs (1)
358throw new ObjectDisposedException(nameof(ConcurrencyLimiter));
System\Threading\RateLimiting\DefaultPartitionedRateLimiter.cs (1)
219throw new ObjectDisposedException(nameof(PartitionedRateLimiter));
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
429throw new ObjectDisposedException(nameof(FixedWindowRateLimiter));
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (1)
491throw new ObjectDisposedException(nameof(SlidingWindowRateLimiter));
System\Threading\RateLimiting\TimerAwaitable.cs (1)
114throw new ObjectDisposedException(GetType().FullName);
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
429throw new ObjectDisposedException(nameof(TokenBucketRateLimiter));
System\Threading\RateLimiting\TranslatingLimiter.cs (1)
71throw new ObjectDisposedException(nameof(PartitionedRateLimiter<TResource>));
System.Windows.Forms (2)
System\Windows\Forms\Control.cs (2)
3774Exception ex = new ObjectDisposedException(GetType().Name); 4958Exception ex = new ObjectDisposedException(GetType().Name);
vbc (2)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (2)
890throw new ObjectDisposedException("Mutex"); 1002throw new ObjectDisposedException("Mutex");
VBCSCompiler (2)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (2)
890throw new ObjectDisposedException("Mutex"); 1002throw new ObjectDisposedException("Mutex");