173 interfaces inheriting from IDisposable
aspire (2)
Backchannel\IAppHostAuxiliaryBackchannel.cs (1)
12internal interface IAppHostAuxiliaryBackchannel : IDisposable
Diagnostics\StartupErrorWriter.cs (1)
16internal interface IStartupErrorWriter : IDisposable
Aspire.Dashboard (1)
Otlp\Storage\ITelemetryRepository.cs (1)
12public interface ITelemetryRepository : IDisposable
Aspire.Hosting (1)
Dcp\AppResource.cs (1)
10internal interface IAppResource : IDisposable
Aspire.Hosting.Browsers (1)
BrowserLogsCdpConnection.cs (1)
389internal interface IClientWebSocketConnector : IDisposable
Aspire.Hosting.Browsers.Tests (1)
src\Aspire.Hosting.Browsers\BrowserLogsCdpConnection.cs (1)
389internal interface IClientWebSocketConnector : IDisposable
Aspire.Hosting.Testing (1)
DistributedApplicationTestingBuilder.cs (1)
760public interface IDistributedApplicationTestingBuilder : IDistributedApplicationBuilder, IAsyncDisposable, IDisposable
csc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
757internal interface IServerMutex : IDisposable
dotnet (1)
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.12.0-1.26426.103\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
757internal interface IServerMutex : IDisposable
dotnet-openapi (2)
IHttpClientWrapper.cs (1)
10internal interface IHttpClientWrapper : IDisposable
IHttpResponseMessageWrapper.cs (1)
12public interface IHttpResponseMessageWrapper : IDisposable
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LifetimeManager.cs (1)
264internal interface ICommunicationWaiter : IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\IClientChannel.cs (1)
15public interface IClientChannel : IContextChannel, IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ISspiNegotiation.cs (1)
12internal interface ISspiNegotiation : IDisposable
GenerateDocumentationAndConfigFiles (3)
src\roslyn\src\Dependencies\Threading\TestHooks\IAsyncToken.cs (1)
11internal interface IAsyncToken : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReferenceCountedDisposable.cs (1)
15internal interface IReferenceCountedDisposable<out T> : IDisposable, IAsyncDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractReducer.IExpressionRewriter.cs (1)
12internal interface IReductionRewriter : IDisposable
Microsoft.AspNetCore.Authentication.Negotiate (1)
Internal\INegotiateState.cs (1)
9internal interface INegotiateState : IDisposable
Microsoft.AspNetCore.Components.Endpoints (1)
CacheView\CacheViewStore.cs (1)
6internal interface ICacheViewStore : IDisposable
Microsoft.AspNetCore.DataProtection (2)
ISecret.cs (1)
11public interface ISecret : IDisposable
SP800_108\ISP800_108_CTR_HMACSHA512Provider.cs (1)
8internal unsafe interface ISP800_108_CTR_HMACSHA512Provider : IDisposable
Microsoft.AspNetCore.Hosting.Abstractions (1)
IWebHost.cs (1)
13public interface IWebHost : IDisposable
Microsoft.AspNetCore.Hosting.Server.Abstractions (1)
IServer.cs (1)
11public interface IServer : IDisposable
Microsoft.AspNetCore.Server.IIS (1)
Core\IO\IAsyncIOEngine.cs (1)
8internal interface IAsyncIOEngine : IDisposable
Microsoft.Build (1)
Logging\TerminalLogger\ITerminal.cs (1)
12internal interface ITerminal : IDisposable
Microsoft.Build.Framework (3)
ITaskEnvironmentDriver.cs (1)
16internal interface ITaskEnvironmentDriver : IDisposable
ITranslator.cs (1)
75internal interface ITranslator : IDisposable
Telemetry\IActivity.cs (1)
11internal interface IActivity : IDisposable
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
757internal interface IServerMutex : IDisposable
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
19internal interface IAnalyzerAssemblyLoaderInternal : IAnalyzerAssemblyLoader, IDisposable
Microsoft.CodeAnalysis.Analyzers (3)
src\roslyn\src\Dependencies\Threading\TestHooks\IAsyncToken.cs (1)
11internal interface IAsyncToken : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReferenceCountedDisposable.cs (1)
15internal interface IReferenceCountedDisposable<out T> : IDisposable, IAsyncDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractReducer.IExpressionRewriter.cs (1)
12internal interface IReductionRewriter : IDisposable
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\roslyn\src\Dependencies\Threading\TestHooks\IAsyncToken.cs (1)
11internal interface IAsyncToken : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReferenceCountedDisposable.cs (1)
15internal interface IReferenceCountedDisposable<out T> : IDisposable, IAsyncDisposable
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Dependencies\Threading\TestHooks\IAsyncToken.cs (1)
11internal interface IAsyncToken : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReferenceCountedDisposable.cs (1)
15internal interface IReferenceCountedDisposable<out T> : IDisposable, IAsyncDisposable
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractReducer.IExpressionRewriter.cs (1)
12internal interface IReductionRewriter : IDisposable
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\roslyn\src\Dependencies\Threading\TestHooks\IAsyncToken.cs (1)
11internal interface IAsyncToken : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReferenceCountedDisposable.cs (1)
15internal interface IReferenceCountedDisposable<out T> : IDisposable, IAsyncDisposable
Microsoft.CodeAnalysis.Workspaces (9)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
19internal interface IAnalyzerAssemblyLoaderInternal : IAnalyzerAssemblyLoader, IDisposable
src\roslyn\src\Dependencies\Threading\TestHooks\IAsyncToken.cs (1)
11internal interface IAsyncToken : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReferenceCountedDisposable.cs (1)
15internal interface IReferenceCountedDisposable<out T> : IDisposable, IAsyncDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractReducer.IExpressionRewriter.cs (1)
12internal interface IReductionRewriter : IDisposable
SymbolSearch\ISymbolSearchUpdateEngine.cs (1)
16internal interface ISymbolSearchUpdateEngine : IDisposable
Workspace\Host\TemporaryStorage\ITemporaryStorage.cs (2)
14public interface ITemporaryTextStorage : IDisposable 23public interface ITemporaryStreamStorage : IDisposable
Workspace\ProjectSystem\IFileChangeWatcher.cs (2)
78internal interface IFileChangeContext : IDisposable 93internal interface IWatchedFile : IDisposable
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (2)
IProjectFile.cs (1)
14internal interface IProjectFile : IDisposable
IProjectInstance.cs (1)
12internal interface IProjectInstance : IDisposable
Microsoft.DotNet.Configurer (1)
IFirstTimeUseNoticeSentinel.cs (1)
6public interface IFirstTimeUseNoticeSentinel : IDisposable
Microsoft.DotNet.HotReload.WebAssembly.Browser (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent\IHotReloadAgent.cs (1)
14internal interface IHotReloadAgent : IDisposable
Microsoft.DotNet.InternalAbstractions (1)
ITemporaryDirectory.cs (1)
6internal interface ITemporaryDirectory : IDisposable
Microsoft.Extensions.AI.Abstractions (7)
ChatCompletion\IChatClient.cs (1)
33public interface IChatClient : IDisposable
Embeddings\IEmbeddingGenerator.cs (1)
14public interface IEmbeddingGenerator : IDisposable
Files\IHostedFileClient.cs (1)
31public interface IHostedFileClient : IDisposable
Image\IImageGenerator.cs (1)
16public interface IImageGenerator : IDisposable
Realtime\IRealtimeClient.cs (1)
15public interface IRealtimeClient : IDisposable
SpeechToText\ISpeechToTextClient.cs (1)
30public interface ISpeechToTextClient : IDisposable
TextToSpeech\ITextToSpeechClient.cs (1)
28public interface ITextToSpeechClient : IDisposable
Microsoft.Extensions.Caching.Abstractions (2)
ICacheEntry.cs (1)
14public interface ICacheEntry : IDisposable
IMemoryCache.cs (1)
11public interface IMemoryCache : IDisposable
Microsoft.Extensions.DependencyInjection.Abstractions (1)
IServiceScope.cs (1)
17public interface IServiceScope : IDisposable
Microsoft.Extensions.DependencyModel (1)
IDependencyContextReader.cs (1)
9public interface IDependencyContextReader : IDisposable
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
IManualHealthCheck.cs (1)
11public interface IManualHealthCheck : IDisposable
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Windows\Interop\IJobHandle.cs (1)
12internal interface IJobHandle : IDisposable
Microsoft.Extensions.DotNetDeltaApplier (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent\IHotReloadAgent.cs (1)
14internal interface IHotReloadAgent : IDisposable
Microsoft.Extensions.Hosting.Abstractions (1)
IHost.cs (1)
13public interface IHost : IDisposable
Microsoft.Extensions.Identity.Core (2)
IRoleStore.cs (1)
14public interface IRoleStore<TRole> : IDisposable where TRole : class
IUserStore.cs (1)
14public interface IUserStore<TUser> : IDisposable where TUser : class
Microsoft.Extensions.Logging.Abstractions (2)
ILoggerFactory.cs (1)
12public interface ILoggerFactory : IDisposable
ILoggerProvider.cs (1)
11public interface ILoggerProvider : IDisposable
Microsoft.Extensions.Options.Contextual (1)
Provider\IConfigureContextualOptions.cs (1)
12public interface IConfigureContextualOptions<in TOptions> : IDisposable
Microsoft.Extensions.Telemetry.Abstractions (1)
Latency\ILatencyContext.cs (1)
16public interface ILatencyContext : IDisposable
Microsoft.JSInterop (2)
IJSInProcessObjectReference.cs (1)
12public interface IJSInProcessObjectReference : IJSObjectReference, IDisposable
Infrastructure\IDotNetObjectReference.cs (1)
6internal interface IDotNetObjectReference : IDisposable
Microsoft.Maui (1)
ImageSources\IImageSourceServiceResult.cs (1)
11 public interface IImageSourceServiceResult : IDisposable
Microsoft.Maui.Graphics (2)
IImage.cs (1)
14 public interface IImage : IDrawable, IDisposable
IPdfPage.cs (1)
7 public interface IPdfPage : IDrawable, IDisposable
Microsoft.ML.AutoML (2)
AutoMLExperiment\IPerformanceMonitor.cs (1)
19public interface IPerformanceMonitor : IDisposable
AutoMLExperiment\Runner\ITrialRunner.cs (1)
17public interface ITrialRunner : IDisposable
Microsoft.ML.Core (4)
Data\IFileHandle.cs (1)
16public interface IFileHandle : IDisposable
Data\IHostEnvironment.cs (1)
139public interface IPipe<TMessage> : IExceptionContext, IDisposable
Data\IProgressChannel.cs (1)
37public interface IProgressChannel : IProgressChannelProvider, IDisposable
Data\ServerChannel.cs (1)
158public interface IServer : IDisposable
Microsoft.ML.CpuMath (1)
ICpuBuffer.cs (1)
12internal interface ICpuBuffer<T> : IEnumerable<T>, IDisposable
Microsoft.ML.Data (3)
DataLoadSave\Binary\IValueCodec.cs (2)
68internal interface IValueWriter : IDisposable 124internal interface IValueReader<T> : IDisposable
DataView\TypedCursor.cs (1)
20internal interface IRowReadableAs<TRow> : IDisposable
Microsoft.ML.GenAI.Core (1)
Utility\Cache.cs (1)
15public interface IKVCache : IDictionary<int, (Tensor, Tensor)>, IDisposable
Microsoft.TemplateEngine.Abstractions (4)
IEngineEnvironmentSettings.cs (1)
9public interface IEngineEnvironmentSettings : IDisposable
ITemplate.cs (1)
11public interface ITemplate : ITemplateInfo, IValidationInfo, IDisposable
ITemplateEngineHost.cs (1)
12public interface ITemplateEngineHost : IDisposable
Mount\IMountPoint.cs (1)
11public interface IMountPoint : IDisposable
Microsoft.TestPlatform.CommunicationUtilities (4)
Interfaces\Communication\ICommunicationChannel.cs (1)
12public interface ICommunicationChannel : IDisposable
Interfaces\ITestRequestHandler.cs (1)
18public interface ITestRequestHandler : IDisposable
Interfaces\ITestRequestSender.cs (1)
16public interface ITestRequestSender : IDisposable
Interfaces\ITransport.cs (1)
12public interface ITransport : IDisposable
Microsoft.TestPlatform.CoreUtilities (1)
Helpers\Interfaces\IWindowsRegistryHelper.cs (1)
15internal interface IRegistryKey : IDisposable
Microsoft.TestPlatform.CrossPlatEngine (2)
DataCollection\Interfaces\IProxyDataCollectionManager.cs (1)
14public interface IProxyDataCollectionManager : IDisposable
Interfaces\ITestRunCache.cs (1)
15internal interface ITestRunCache : IDisposable
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
Interfaces\IInactivityTimer.cs (1)
8public interface IInactivityTimer : IDisposable
Microsoft.TestPlatform.PlatformAbstractions (1)
Interfaces\Runtime\IAssemblyResolver.cs (1)
22public interface IAssemblyResolver : IDisposable
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (2)
Interfaces\ITranslationLayerRequestSender.cs (1)
16internal interface ITranslationLayerRequestSender : IDisposable, ITranslationLayerRequestSenderAsync
Interfaces\ITranslationLayerRequestSenderAsync.cs (1)
18internal interface ITranslationLayerRequestSenderAsync : IDisposable
Microsoft.VisualStudio.TestPlatform.Client (2)
DesignMode\IDesignModeClient.cs (1)
17public interface IDesignModeClient : IDisposable
RequestHelper\ITestRequestManager.cs (1)
17public interface ITestRequestManager : IDisposable
Microsoft.VisualStudio.TestPlatform.Common (2)
DataCollection\Interfaces\IDataCollectionManager.cs (1)
16internal interface IDataCollectionManager : IDisposable
Interfaces\Engine\ClientProtocol\ITestLoggerManager.cs (1)
14public interface ITestLoggerManager : IDisposable
Microsoft.VisualStudio.TestPlatform.ObjectModel (4)
Client\Interfaces\IRequest.cs (1)
12public interface IRequest : IDisposable
Client\Interfaces\ITestPlatform.cs (1)
12public interface ITestPlatform : IDisposable
Navigation\INavigationSession.cs (1)
11public interface INavigationSession : IDisposable
Navigation\ISymbolReader.cs (1)
11internal interface ISymbolReader : IDisposable
Mono.Cecil (3)
Mono.Cecil.Cil\Symbols.cs (2)
852 public interface ISymbolReader : IDisposable { 1114 public interface ISymbolWriter : IDisposable {
Mono.Cecil\MetadataResolver.cs (1)
17 public interface IAssemblyResolver : IDisposable {
NuGet.Packaging (8)
Core\IAsyncPackageCoreReader.cs (1)
18public interface IAsyncPackageCoreReader : IDisposable
Core\IPackageCoreReader.cs (1)
17public interface IPackageCoreReader : IDisposable
Definitions\IPackageDownloader.cs (1)
15public interface IPackageDownloader : IDisposable
IHashFunction.cs (1)
13public interface IHashFunction : IDisposable
Signing\Cms\ICms.cs (1)
12internal interface ICms : IDisposable
Signing\Package\ISignedPackageReader.cs (1)
14public interface ISignedPackageReader : IDisposable
Signing\TrustStore\IX509Chain.cs (1)
10internal interface IX509Chain : IDisposable
Signing\Utility\IX509CertificateChain.cs (1)
13public interface IX509CertificateChain : IReadOnlyList<X509Certificate2>, IDisposable
NuGet.Protocol (9)
Plugins\IConnection.cs (1)
14public interface IConnection : IDisposable
Plugins\IMessageDispatcher.cs (1)
14public interface IMessageDispatcher : IDisposable
Plugins\IPlugin.cs (1)
11public interface IPlugin : IDisposable
Plugins\IPluginDiscoverer.cs (1)
14public interface IPluginDiscoverer : IDisposable
Plugins\IPluginFactory.cs (1)
14internal interface IPluginFactory : IDisposable
Plugins\IPluginProcess.cs (1)
11public interface IPluginProcess : IDisposable
Plugins\IReceiver.cs (1)
11public interface IReceiver : IDisposable
Plugins\ISender.cs (1)
13public interface ISender : IDisposable
Plugins\Logging\IPluginLogger.cs (1)
8internal interface IPluginLogger : IDisposable
PresentationCore (2)
System\Windows\InterOp\IStylusInputProvider.cs (1)
13internal interface IStylusInputProvider : IInputProvider, IDisposable
System\Windows\Media\ICompositionTarget.cs (1)
19internal interface ICompositionTarget : IDisposable
Roslyn.Diagnostics.Analyzers (3)
src\roslyn\src\Dependencies\Threading\TestHooks\IAsyncToken.cs (1)
11internal interface IAsyncToken : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReferenceCountedDisposable.cs (1)
15internal interface IReferenceCountedDisposable<out T> : IDisposable, IAsyncDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractReducer.IExpressionRewriter.cs (1)
12internal interface IReductionRewriter : IDisposable
System.ComponentModel.Primitives (2)
System\ComponentModel\IComponent.cs (1)
27public interface IComponent : IDisposable
System\ComponentModel\IContainer.cs (1)
16public interface IContainer : IDisposable
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\IDesigner.cs (1)
11public interface IDesigner : IDisposable
System.Data.Common (4)
System\Data\IDataReader.cs (1)
6public interface IDataReader : IDisposable, IDataRecord
System\Data\IDbCommand.cs (1)
8public interface IDbCommand : IDisposable
System\Data\IDbConnection.cs (1)
8public interface IDbConnection : IDisposable
System\Data\IDbTransaction.cs (1)
6public interface IDbTransaction : IDisposable
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\IMeterFactory.cs (1)
18public interface IMeterFactory : IDisposable
System.Drawing.Common (1)
System\Drawing\IDeviceContext.cs (1)
20public interface IDeviceContext : IDisposable
System.Private.CoreLib (4)
src\runtime\src\libraries\Common\src\System\Threading\ITimer.cs (1)
11public interface ITimer : IDisposable, IAsyncDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\IMemoryOwner.cs (1)
9public interface IMemoryOwner<T> : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\IEnumerator.cs (1)
11public interface IEnumerator<out T> : IDisposable, IEnumerator
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\IResourceReader.cs (1)
11public interface IResourceReader : IEnumerable, IDisposable
System.Resources.Writer (1)
System\Resources\IResourceWriter.cs (1)
6public interface IResourceWriter : IDisposable
System.Security.Cryptography (9)
System\Security\Cryptography\ICryptoTransform.cs (1)
9public interface ICryptoTransform : IDisposable
System\Security\Cryptography\ILiteSymmetricCipher.cs (1)
8internal interface ILiteSymmetricCipher : IDisposable
System\Security\Cryptography\LiteHashProvider.cs (1)
184internal interface ILiteHash : IDisposable
System\Security\Cryptography\X509Certificates\ICertificatePalCore.cs (1)
9internal interface ICertificatePalCore : IDisposable
System\Security\Cryptography\X509Certificates\IChainPal.cs (1)
8internal interface IChainPal : IDisposable
System\Security\Cryptography\X509Certificates\IExportPal.cs (1)
8internal interface IExportPal : IDisposable
System\Security\Cryptography\X509Certificates\IFindPal.cs (1)
8internal interface IFindPal : IDisposable
System\Security\Cryptography\X509Certificates\ILoaderPal.cs (1)
6internal interface ILoaderPal : IDisposable
System\Security\Cryptography\X509Certificates\IStorePal.cs (1)
8internal interface IStorePal : IDisposable
System.ServiceModel.Primitives (2)
System\ServiceModel\Channels\LifetimeManager.cs (1)
274internal interface ICommunicationWaiter : IDisposable
System\ServiceModel\IClientChannel.cs (1)
9public interface IClientChannel : IContextChannel, IDisposable
System.Text.Json (1)
System\Text\Json\Serialization\IReadBufferState.cs (1)
10internal interface IReadBufferState<TReadBufferState, TStream> : IDisposable
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.IDesignerTarget.cs (1)
8private interface IDesignerTarget : IDisposable
vbc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
757internal interface IServerMutex : IDisposable
VBCSCompiler (2)
src\roslyn\src\Compilers\Server\VBCSCompiler\IClientConnection.cs (1)
15internal interface IClientConnection : IDisposable
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
757internal interface IServerMutex : IDisposable
vstest.console (2)
Internal\ISystemTimersTimer.cs (1)
9internal interface ISystemTimersTimer : IDisposable
Publisher\IMetricsPublisher.cs (1)
12public interface IMetricsPublisher : IDisposable
vstest.console.arm64 (2)
src\vstest\src\vstest.console\Internal\ISystemTimersTimer.cs (1)
9internal interface ISystemTimersTimer : IDisposable
src\vstest\src\vstest.console\Publisher\IMetricsPublisher.cs (1)
12public interface IMetricsPublisher : IDisposable
2018 implementations of IDisposable
aspire (20)
Acquisition\InstallSidecarWriter.cs (1)
107internal sealed class PreparedInstallSidecarUpdate(string temporaryPath, string sidecarPath) : IDisposable
Agents\AspireSkills\TemporaryCacheDirectory.cs (1)
9internal sealed class TemporaryCacheDirectory : IDisposable
Backchannel\ResourceSnapshotWatcher.cs (1)
12internal sealed class ResourceSnapshotWatcher : IDisposable
Bundles\BundleLayoutLease.cs (1)
13internal sealed class BundleLayoutLease : IDisposable
ConsoleCancellationManager.cs (1)
58internal sealed class ConsoleCancellationManager : IDisposable, IGracefulShutdownWindow
Interaction\ConsoleLogBufferContext.cs (1)
87private sealed class InteractivePromptScope(ConsoleLogBufferContext context) : IDisposable
Interaction\ExtensionInteractionService.cs (1)
30internal class ExtensionInteractionService : IExtensionInteractionService, IDisposable
Packaging\TemporaryNuGetConfig.cs (1)
9internal sealed class TemporaryNuGetConfig : IDisposable
Processes\DcpExecutableResolver.cs (1)
56internal sealed class DcpExecutableResolution(string executablePath, BundleLayoutLease? layoutLease) : IDisposable
Processes\WindowsConsoleProcessJob.cs (1)
43internal sealed class WindowsConsoleProcessJob : IDisposable
Profiling\ProfileCaptureEnvironment.cs (1)
9internal sealed class ProfileCaptureEnvironment : IDisposable
Program.cs (1)
89IdentityChannelReader IdentityChannelReader) : IDisposable
Projects\PrebuiltAppHostServer.cs (1)
35internal sealed partial class PrebuiltAppHostServer : IAppHostServerProject, IDisposable
src\Shared\BundleVersionLease.cs (1)
17internal sealed class BundleVersionLease : IDisposable
src\Shared\FileLock.cs (1)
28internal sealed class FileLock : IDisposable
Telemetry\ProfilingTelemetry.cs (2)
17internal sealed class ProfilingTelemetry(IConfiguration configuration) : IDisposable 819internal readonly struct ActivityScope(Activity? activity, bool ownsActivity = true) : IDisposable
Telemetry\TelemetryManager.cs (1)
34internal sealed class TelemetryManager : IDisposable
Utils\EnvironmentChecker\DcpKubeconfig.cs (1)
10internal sealed class DcpKubeconfig : IDisposable
Utils\NpmInstallDetection.cs (1)
102private sealed class EnvironmentOverrideScope(IEnvironmentReader? previous) : IDisposable
aspire-managed (1)
src\Shared\BundleVersionLease.cs (1)
17internal sealed class BundleVersionLease : IDisposable
Aspire.Acquisition.Tests (2)
Scripts\Common\TestEnvironment.cs (1)
12public sealed class TestEnvironment : IDisposable
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
10public class ToolCommand : IDisposable
Aspire.Cli.EndToEnd.Tests (2)
Helpers\CliInstallStrategyTests.cs (1)
1015private sealed class EnvironmentVariableScope : IDisposable
tests\Shared\TemporaryWorkspace.cs (1)
12public sealed class TemporaryWorkspace(ITestOutputHelper outputHelper, DirectoryInfo workspaceDirectory) : IDisposable
Aspire.Cli.Tests (29)
Acquisition\PeerInstallProbeTests.cs (2)
17public class PeerInstallProbeTests(ITestOutputHelper outputHelper) : IDisposable 577internal sealed record FakeScriptResult(string Path, TemporaryWorkspace Workspace, string? ArgvFile = null) : IDisposable
Agents\AspireSkillsInstallerTests.cs (1)
2301private sealed class ArchiveLockingAspireSkillsBundleProvider(IAspireSkillsBundleProvider inner) : IAspireSkillsBundleProvider, IDisposable
Backchannel\AppHostAuxiliaryBackchannelTests.cs (1)
83private sealed class TestAppHostBackchannelServer : IDisposable
Commands\AppHostLauncherTests.cs (2)
1111private sealed class AppHostLauncherHarness : IDisposable 1270private sealed class TestDetachedProcessFactory : IProcessExecutionFactory, IDisposable
Commands\IntegrationAssemblyNameResolverTests.cs (1)
49private sealed class TemporaryDirectory : IDisposable
Commands\ParseResultHelperTests.cs (1)
80public sealed class ParseResultHelperTests : IDisposable
Commands\PsCommandTests.cs (1)
761private sealed class TestAppHostBackchannelServer : IDisposable
Mcp\TestMcpServerTransport.cs (1)
18internal sealed class TestMcpServerTransport : IMcpTransportFactory, IDisposable
Projects\AppHostServerProjectTests.cs (1)
20public class AppHostServerProjectTests(ITestOutputHelper outputHelper) : IDisposable
Projects\AppHostServerSessionTests.cs (1)
682private sealed class ThrowingAppHostServerProject : IAppHostServerProject, IDisposable
Projects\DotNetAppHostProjectTests.cs (1)
19public class DotNetAppHostProjectTests(ITestOutputHelper outputHelper) : IDisposable
Projects\GuestAppHostProjectTests.cs (1)
28public class GuestAppHostProjectTests : IDisposable
Projects\ProcessGuestLauncherTests.cs (1)
16public class ProcessGuestLauncherTests(ITestOutputHelper outputHelper) : IDisposable
Projects\RunningInstanceManagerTests.cs (1)
63private sealed class TestAuxiliaryBackchannelUdsServer : IDisposable
Secrets\SecretsStoreTests.cs (1)
8public class SecretsStoreTests : IDisposable
Telemetry\TelemetryFixture.cs (1)
15internal sealed class TelemetryFixture : IDisposable
Templating\JavaStarterScaffoldTests.cs (1)
116private sealed class ScaffoldedTemplate(TemporaryWorkspace workspace, string outputDirectory) : IDisposable
tests\Shared\Logging\TestLogger.cs (1)
62private sealed class TestDisposable : IDisposable
tests\Shared\Logging\XunitLoggerProvider.cs (1)
120private sealed class NullScope : IDisposable
tests\Shared\TemporaryWorkspace.cs (1)
12public sealed class TemporaryWorkspace(ITestOutputHelper outputHelper, DirectoryInfo workspaceDirectory) : IDisposable
TestServices\CapturingLogger.cs (1)
23private sealed class NullScope : IDisposable
TestServices\EnvVarOverride.cs (1)
11internal sealed class EnvVarOverride : IDisposable
TestServices\FakeFailingAppHostServerProject.cs (1)
16internal sealed class FakeFailingAppHostServerProject(string appDirectoryPath) : IAppHostServerProject, IDisposable
TestServices\FakeSucceedingAppHostServerProject.cs (1)
15internal sealed class FakeSucceedingAppHostServerProject(string appDirectoryPath) : IAppHostServerProject, IDisposable
TestServices\TestGracefulShutdownWindow.cs (1)
14internal sealed class TestGracefulShutdownWindow : IGracefulShutdownWindow, IDisposable
Utils\AspireRepositoryDetectorTests.cs (1)
12public class AspireRepositoryDetectorTests : IDisposable
Utils\IsolatedUserSecretsHelperTests.cs (1)
8public class IsolatedUserSecretsHelperTests : IDisposable
Aspire.Dashboard (39)
Components\Controls\ApplicationName.razor.cs (1)
10public sealed partial class ApplicationName : ComponentBase, IDisposable
Components\Controls\Chart\ChartFilterPopover.razor.cs (1)
9public partial class ChartFilterPopover : IDisposable
Components\Controls\Chart\ChartFilterTags.razor.cs (1)
16public partial class ChartFilterTags : IDisposable
Components\Controls\ResourceDetails.razor.cs (1)
23public partial class ResourceDetails : IComponentWithTelemetry, IDisposable
Components\Controls\SpanDetails.razor.cs (1)
19public partial class SpanDetails : IDisposable
Components\Controls\StructuredLogDetails.razor.cs (1)
14public partial class StructuredLogDetails : IDisposable
Components\Controls\SummaryDetailsView.razor.cs (1)
15public partial class SummaryDetailsView<T> : IGlobalKeydownListener, IDisposable
Components\Dialogs\ExemplarsDialog.razor.cs (1)
15public partial class ExemplarsDialog : IDisposable
Components\Dialogs\GenAIVisualizerDialog.razor.cs (1)
22public partial class GenAIVisualizerDialog : ComponentBase, IComponentWithTelemetry, IDisposable
Components\Dialogs\NotificationsDialog.razor.cs (1)
10public partial class NotificationsDialog : IDialogContentComponent, IDisposable
Components\Dialogs\SettingsDialog.razor.cs (1)
13public partial class SettingsDialog : IDialogContentComponent, IDisposable
Components\Interactions\InteractionsProvider.cs (2)
26internal record InteractionMessageBarReference(int InteractionId, Message Message, ComponentTelemetryContext TelemetryContext) : IDisposable 33internal record InteractionDialogReference(int InteractionId, IDialogReference Dialog, ComponentTelemetryContext TelemetryContext) : IDisposable
Components\Layout\DesktopNavMenu.razor.cs (1)
12public partial class DesktopNavMenu : ComponentBase, IDisposable
Components\Layout\NotificationsHeaderButton.razor.cs (1)
10public partial class NotificationsHeaderButton : ComponentBase, IDisposable
Components\Pages\ComponentTelemetryContext.cs (1)
35public sealed class ComponentTelemetryContext : IDisposable
Components\Pages\Error.razor.cs (1)
10public partial class Error : IComponentWithTelemetry, IDisposable
Components\Pages\Metrics.razor.cs (1)
19public partial class Metrics : IDisposable, IComponentWithTelemetry, IPageWithSessionAndUrlState<Metrics.MetricsViewModel, Metrics.MetricsPageState>
Components\Pages\NotFound.razor.cs (1)
9public partial class NotFound : IComponentWithTelemetry, IDisposable
Components\Pages\TraceDetail.razor.cs (1)
25public partial class TraceDetail : ComponentBase, IComponentWithTelemetry, IDisposable
Components\Resize\BrowserDimensionWatcher.cs (1)
9public class BrowserDimensionWatcher : ComponentBase, IDisposable
Components\Resize\GridColumnManager.razor.cs (1)
10public partial class GridColumnManager : ComponentBase, IDisposable
DashboardActivitySource.cs (1)
11public sealed class DashboardActivitySource : IDisposable
Model\BrowserLinkOutgoingPeerResolver.cs (1)
15private sealed class NullSubscription : IDisposable
Model\DashboardSqliteOutgoingPeerResolver.cs (1)
25private sealed class NullDisposable : IDisposable
Model\ModelSubscription.cs (1)
6public sealed class ModelSubscription(Func<Task> callback, Action<ModelSubscription> onDispose) : IDisposable
Model\ResourceOutgoingPeerResolver.cs (1)
363private sealed class PeerChangesSubscription : IDisposable
Otlp\Storage\Subscription.cs (1)
10public sealed class Subscription : IDisposable
ServiceClient\DashboardDataSource.cs (1)
28public sealed class DashboardDataSource : IDashboardRunSelection, IDisposable
ServiceClient\DashboardDataSourceInitializer.cs (1)
9ILogger<DashboardDataSourceInitializer> logger) : IHostedService, IDisposable
ServiceClient\DashboardDataSourcePool.cs (2)
11public sealed class DashboardDataSourcePool : IDisposable 217public sealed class Lease : IDisposable
ServiceClient\DashboardRunStore.cs (2)
68internal sealed class DashboardRunStore : IDashboardRunStore, IDisposable 587private sealed class RunLease(DashboardRunStore owner, DashboardRunDescriptor run, FileLock runLock) : IDisposable
ServiceClient\DashboardSqliteDatabase.cs (1)
16public sealed class DashboardSqliteDatabase : IDisposable
ServiceClient\SqliteResourceRepository.cs (1)
17public sealed partial class SqliteResourceRepository : IResourceRepository, IResourceRepositoryWriter, IDisposable
ShortcutManager.cs (1)
10public sealed class ShortcutManager(ILoggerFactory loggerFactory) : IDisposable
src\Shared\FileLock.cs (1)
28internal sealed class FileLock : IDisposable
Utils\AsyncLock.cs (1)
34private sealed class Releaser(SemaphoreSlim semaphore) : IDisposable
Aspire.Dashboard.Components.Tests (4)
Shared\LifecycleTestComponent.cs (1)
8internal sealed class LifecycleTestComponent : ComponentBase, IDisposable
tests\Shared\Logging\TestLogger.cs (1)
62private sealed class TestDisposable : IDisposable
tests\Shared\Logging\XunitLoggerProvider.cs (1)
120private sealed class NullScope : IDisposable
tests\Shared\TemporaryWorkspace.cs (1)
12public sealed class TemporaryWorkspace(ITestOutputHelper outputHelper, DirectoryInfo workspaceDirectory) : IDisposable
Aspire.Dashboard.Tests (14)
Integration\HealthTests.cs (1)
154internal sealed class Observation(TestActivityExporter exporter, ActivityTraceId traceId, Func<Activity, bool> predicate) : IDisposable
Model\DashboardClientTests.cs (1)
24public sealed class DashboardClientTests(ITestOutputHelper testOutputHelper) : IDisposable
Model\DashboardSqliteDatabaseTests.cs (1)
20public sealed class DashboardSqliteDatabaseTests(ITestOutputHelper testOutputHelper) : IDisposable
Model\ResourceMenuBuilderTests.cs (1)
23public sealed class ResourceMenuBuilderTests : IDisposable
Model\SpanWaterfallViewModelTests.cs (1)
473private sealed class EmptyDisposable : IDisposable
Model\TelemetryExportServiceTests.cs (1)
28public sealed class TelemetryExportServiceTests(ITestOutputHelper testOutputHelper) : IDisposable
Shared\SqliteRepositoryTestHelpers.cs (1)
82TRepository repository) : IDisposable
Shared\TestHostApplicationLifetime.cs (1)
8internal sealed class TestHostApplicationLifetime : IHostApplicationLifetime, IDisposable
TelemetryRepositoryTests\TelemetryRepositoryTestBase.cs (2)
87IDisposable owner) : IDisposable 94private sealed class TemporaryDirectoryRepositoryContext(IDisposable repositoryContext, string temporaryDirectory) : IDisposable
TelemetryRepositoryTests\TestOutgoingPeerResolver.cs (1)
9public sealed class TestOutgoingPeerResolver : IOutgoingPeerResolver, IDisposable
tests\Shared\Logging\TestLogger.cs (1)
62private sealed class TestDisposable : IDisposable
tests\Shared\Logging\XunitLoggerProvider.cs (1)
120private sealed class NullScope : IDisposable
tests\Shared\TemporaryWorkspace.cs (1)
12public sealed class TemporaryWorkspace(ITestOutputHelper outputHelper, DirectoryInfo workspaceDirectory) : IDisposable
Aspire.Deployment.EndToEnd.Tests (1)
tests\Shared\TemporaryWorkspace.cs (1)
12public sealed class TemporaryWorkspace(ITestOutputHelper outputHelper, DirectoryInfo workspaceDirectory) : IDisposable
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
10public class ToolCommand : IDisposable
Aspire.Hosting (22)
ApplicationModel\CommandsConfigurationExtensions.cs (1)
465private sealed class BuildOutputCollector : IDisposable
ApplicationModel\RequiredCommandValidator.cs (2)
17internal sealed class RequiredCommandValidator : IRequiredCommandValidator, IDisposable 159private sealed class CommandValidationState : IDisposable
ApplicationModel\ResourceLoggerService.cs (3)
17public class ResourceLoggerService : IDisposable 100private sealed class CompositeDisposable(List<IDisposable> disposables) : IDisposable 815private sealed class Subscription(ResourceLoggerState loggerState, Action<LogEntry> log) : IDisposable
ApplicationModel\ResourceNotificationService.cs (1)
24public class ResourceNotificationService : IDisposable
Dashboard\DashboardServiceData.cs (1)
15internal sealed class DashboardServiceData : IDisposable
Dashboard\InteractionFileUploadStore.cs (1)
16internal sealed class InteractionFileUploadStore : IInteractionFileUploadStore, IDisposable
Dcp\AppResource.cs (1)
22internal class AppResource<TDcpResource> : IAppResource, IDisposable, IEquatable<AppResource<TDcpResource>> where TDcpResource : CustomResource, IKubernetesStaticMetadata
Dcp\ContainerCreator.cs (1)
46internal sealed class ContainerCreator : IObjectCreator<Container, ContainerCreationContext>, IObjectCreator<ContainerExec, EmptyCreationContext>, IDisposable
Dcp\DcpResourceWatcher.cs (1)
1015private sealed class LogStreamState(string? resourceUid) : IDisposable
Dcp\KubernetesService.cs (1)
81internal sealed class KubernetesService(ILogger<KubernetesService> logger, IOptions<DcpOptions> dcpOptions, Locations locations, IConfiguration configuration) : IKubernetesService, IDisposable
Dcp\ProxylessEndpointPortAllocator.cs (1)
30internal sealed class ProxylessEndpointPortAllocator : IDisposable
Devcontainers\DevcontainerSettingsWriter.cs (1)
13internal class DevcontainerSettingsWriter(ILogger<DevcontainerSettingsWriter> logger, IOptions<CodespacesOptions> codespaceOptions, IOptions<DevcontainersOptions> devcontainerOptions, IOptions<SshRemoteOptions> sshRemoteOptions) : IDisposable
Diagnostics\ProfilingTelemetry.cs (1)
775internal readonly struct ActivityScope(Activity? activity, IConfiguration? configuration = null, bool ownsActivity = true) : IDisposable
IInteractionService.cs (1)
477public sealed class InteractionFileCollection : IReadOnlyList<InteractionFile>, IDisposable
InteractionService.cs (1)
74internal sealed class NonInteractiveScope : IDisposable
Utils\ConcurrencyUtils.cs (1)
69private sealed class SemaphoreSetReleaser : IDisposable
Utils\FileSystemService.cs (1)
15internal sealed class FileSystemService : IFileSystemService, IDisposable
Utils\IFileSystemService.cs (2)
74public abstract class TempDirectory : IDisposable 91public abstract class TempFile : IDisposable
Aspire.Hosting.Azure (3)
AzureBicepResource.cs (1)
500public readonly struct BicepTemplateFile(string path, bool deleteFileOnDispose) : IDisposable
AzureProvisioningController.cs (1)
4222private sealed class ActiveAzureOperation : IDisposable
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
39distributedApplicationExecutionContext), IAzureProvisioningOptionsManager, IDisposable
Aspire.Hosting.Blazor.Tests (3)
EndpointsManifestTransformerTests.cs (1)
8public class EndpointsManifestTransformerTests : IDisposable
tests\Shared\TestFileSystemService.cs (2)
12internal sealed class TestFileSystemService : IFileSystemService, IDisposable 20private sealed class TestTempFileSystemService : ITempFileSystemService, IDisposable
Aspire.Hosting.Browsers (5)
BrowserLogsPipeBrowserProcessLauncher.Unix.cs (4)
171private sealed class PosixSpawnFileActions : IDisposable 232private struct PosixPipe(int read, int write) : IDisposable 269private sealed class NativeUtf8String : IDisposable 284private sealed class NativeStringArray : IDisposable
BrowserLogsUserDataDirectory.cs (1)
10internal sealed class BrowserLogsUserDataDirectory : IDisposable
Aspire.Hosting.Browsers.Tests (5)
src\Aspire.Hosting.Browsers\BrowserLogsPipeBrowserProcessLauncher.Unix.cs (4)
171private sealed class PosixSpawnFileActions : IDisposable 232private struct PosixPipe(int read, int write) : IDisposable 269private sealed class NativeUtf8String : IDisposable 284private sealed class NativeStringArray : IDisposable
src\Aspire.Hosting.Browsers\BrowserLogsUserDataDirectory.cs (1)
10internal sealed class BrowserLogsUserDataDirectory : IDisposable
Aspire.Hosting.CodeGeneration.Java.Tests (1)
JavaLanguageSupportDetectionTests.cs (1)
82private sealed class TempDirectory : IDisposable
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
tests\Shared\TemporaryWorkspace.cs (1)
12public sealed class TemporaryWorkspace(ITestOutputHelper outputHelper, DirectoryInfo workspaceDirectory) : IDisposable
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
tests\Shared\TemporaryWorkspace.cs (1)
12public sealed class TemporaryWorkspace(ITestOutputHelper outputHelper, DirectoryInfo workspaceDirectory) : IDisposable
Aspire.Hosting.DevTunnels (1)
src\Shared\CoalescingAsyncOperation.cs (1)
12internal abstract class CoalescingAsyncOperation : IDisposable
Aspire.Hosting.EntityFrameworkCore (1)
EFCoreOperationExecutor.cs (1)
23internal sealed class EFCoreOperationExecutor : IDisposable
Aspire.Hosting.EntityFrameworkCore.Tests (1)
EFCoreOperationExecutorTests.cs (1)
252private sealed class NullScope : IDisposable
Aspire.Hosting.Java.Tests (2)
JavaBuildToolResolverTests.cs (1)
137internal sealed class TempJavaBuildRootDirectory : IDisposable
TempJavaAppDirectory.cs (1)
9internal sealed class TempJavaAppDirectory : IDisposable
Aspire.Hosting.Radius.Tests (3)
Publishing\SealedSecretPublishTests.cs (1)
17public class SealedSecretPublishTests : IDisposable
Secrets\SealedSecretManifestTests.cs (1)
8public class SealedSecretManifestTests : IDisposable
Secrets\SecretStoreValidationTests.cs (1)
16public class SecretStoreValidationTests : IDisposable
Aspire.Hosting.RemoteHost (4)
Ats\AtsCallbackProxyFactory.cs (1)
16internal sealed class AtsCallbackProxyFactory : IDisposable
CancellationTokenRegistry.cs (1)
14internal sealed class CancellationTokenRegistry : IDisposable
Diagnostics\RemoteHostProfilingTelemetry.cs (2)
12internal sealed class RemoteHostProfilingTelemetry(IConfiguration configuration) : IDisposable 357internal readonly struct ActivityScope(Activity? activity) : IDisposable
Aspire.Hosting.RemoteHost.Tests (5)
AssemblyLoaderTests.cs (1)
269private sealed class TemporaryDirectory : IDisposable
CodeGeneration\ApiReferenceExportTests.cs (1)
293private sealed class TemporaryDirectory : IDisposable
HandleRegistryTests.cs (1)
226private sealed class TestDisposable : IDisposable
RecordingLogger.cs (1)
28private sealed class NullScope : IDisposable
tests\Shared\TemporaryWorkspace.cs (1)
12public sealed class TemporaryWorkspace(ITestOutputHelper outputHelper, DirectoryInfo workspaceDirectory) : IDisposable
Aspire.Hosting.Rust.Tests (1)
TempCrateDirectory.cs (1)
9internal sealed class TempCrateDirectory : IDisposable
Aspire.Hosting.Sdk.Tests (1)
tests\Shared\TemporaryWorkspace.cs (1)
12public sealed class TemporaryWorkspace(ITestOutputHelper outputHelper, DirectoryInfo workspaceDirectory) : IDisposable
Aspire.Hosting.Testing (2)
DistributedApplicationEntryPointInvoker.cs (1)
209internal sealed class TestingBuilderFactory : IObserver<DiagnosticListener>, IObserver<KeyValuePair<string, object?>>, IDisposable
DistributedApplicationFactory.cs (1)
20public class DistributedApplicationFactory(Type entryPoint, string[] args) : IDisposable, IAsyncDisposable
Aspire.Hosting.Testing.Tests (3)
ResourceLoggerForwarderServiceTests.cs (1)
154private sealed class TestHostApplicationLifetime : IHostApplicationLifetime, IDisposable
tests\Shared\Logging\TestLogger.cs (1)
62private sealed class TestDisposable : IDisposable
tests\Shared\Logging\XunitLoggerProvider.cs (1)
120private sealed class NullScope : IDisposable
Aspire.Hosting.Tests (6)
Dcp\KubernetesServiceTests.cs (2)
306private sealed class TestFileSystemService : IFileSystemService, IDisposable 314private sealed class TestTempFileSystemService : ITempFileSystemService, IDisposable
Publishing\DeploymentStateManagerTests.cs (1)
19public class DeploymentStateManagerTests : IDisposable
ResourceNotificationTests.cs (1)
1428private sealed class TestHostApplicationLifetime : IHostApplicationLifetime, IDisposable
tests\Shared\TestFileSystemService.cs (2)
12internal sealed class TestFileSystemService : IFileSystemService, IDisposable 20private sealed class TestTempFileSystemService : ITempFileSystemService, IDisposable
Aspire.Hosting.TestUtilities (4)
tests\Shared\Logging\TestLogger.cs (1)
62private sealed class TestDisposable : IDisposable
tests\Shared\Logging\XunitLoggerProvider.cs (1)
120private sealed class NullScope : IDisposable
tests\Shared\TemporaryWorkspace.cs (1)
12public sealed class TemporaryWorkspace(ITestOutputHelper outputHelper, DirectoryInfo workspaceDirectory) : IDisposable
Utils\DockerfileUtils.cs (1)
68public sealed class TemporaryDockerfileContext(TemporaryWorkspace workspace, string dockerfilePath) : IDisposable
Aspire.Managed.Tests (2)
NuGet\RestoreCommandTests.cs (1)
10public class RestoreCommandTests(ITestOutputHelper outputHelper) : IDisposable
tests\Shared\TemporaryWorkspace.cs (1)
12public sealed class TemporaryWorkspace(ITestOutputHelper outputHelper, DirectoryInfo workspaceDirectory) : IDisposable
Aspire.Playground.Tests (2)
tests\Shared\Logging\TestLogger.cs (1)
62private sealed class TestDisposable : IDisposable
tests\Shared\Logging\XunitLoggerProvider.cs (1)
120private sealed class NullScope : IDisposable
Aspire.RabbitMQ.Client (1)
src\Components\Aspire.RabbitMQ.Client\RabbitMQEventSourceLogForwarder.cs (1)
11internal sealed class RabbitMQEventSourceLogForwarder : IDisposable
Aspire.StackExchange.Redis (3)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisConnectionInstrumentation.cs (1)
17internal sealed class StackExchangeRedisConnectionInstrumentation : IDisposable
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisInstrumentation.cs (2)
13internal sealed class StackExchangeRedisInstrumentation : IDisposable 79private sealed class StackExchangeRedisConnectionInstrumentationRegistration : IDisposable
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
10public class ToolCommand : IDisposable
Aspire.TerminalHost.Tests (1)
tests\Shared\TemporaryWorkspace.cs (1)
12public sealed class TemporaryWorkspace(ITestOutputHelper outputHelper, DirectoryInfo workspaceDirectory) : IDisposable
Client.ClientBase.IntegrationTests (1)
SessionTests.cs (1)
483public class DuplexTestCleanupHelper : IDisposable
csc (1)
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
98internal sealed class CompilerServerLogger : ICompilerServerLogger, IDisposable
dotnet (10)
AutomaticEncodingRestorer.cs (1)
15internal class AutomaticEncodingRestorer : IDisposable
Commands\Run\RunCommandSelector.cs (1)
19internal sealed class RunCommandSelector : IDisposable
Commands\Test\MTP\CtrlCCancellationManager.cs (1)
25internal sealed class CtrlCCancellationManager : IDisposable
Commands\Test\MTP\IPC\HttpTestHostGateway.cs (1)
14internal sealed class HttpTestHostGateway : IDisposable
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (1)
20internal sealed partial class TerminalTestReporter : IDisposable
Commands\Test\MTP\Terminal\TestProgressStateAwareTerminal.cs (1)
9internal sealed partial class TestProgressStateAwareTerminal(ITerminal terminal, bool showProgress) : IDisposable
Commands\Test\MTP\TestApplication.cs (1)
29TestRunPolicy? testRunPolicy = null) : IDisposable
Commands\Test\MTP\TestRunPolicy.cs (1)
15internal sealed class TestRunPolicy : IDisposable
MSBuildSession.cs (1)
45internal sealed class MSBuildSession : IDisposable
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.12.0-1.26426.103\contentFiles\cs\net11.0\CompilerServerLogger.cs (1)
98internal sealed class CompilerServerLogger : ICompilerServerLogger, IDisposable
dotnet-aot (1)
ManagedHost.cs (1)
17internal sealed unsafe class ManagedHost : IDisposable
dotnet-format (2)
Logging\NullScope.cs (1)
6internal class NullScope : IDisposable
Workspaces\MSBuildWorkspaceLoader.cs (1)
101internal sealed record LoadedWorkspace(Workspace Workspace, ProjectId? ProjectId) : IDisposable
dotnet-svcutil-lib (34)
Bootstrapper\SvcutilBootstrapper.cs (1)
16internal class SvcutilBootstrapper : IDisposable
CodeDomFixup\CodeDomVisitors\NameScope.cs (1)
10internal abstract class NameScope : IDisposable
FrameworkFork\Microsoft.CodeDom\Compiler\CodeDOMProvider.cs (1)
15public abstract class CodeDomProvider : IDisposable
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (1)
29public class TempFileCollection : ICollection, IDisposable
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReader.cs (1)
25public abstract partial class XmlReader : IDisposable
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderAsync.cs (1)
26public abstract partial class XmlReader : IDisposable
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriter.cs (1)
48public abstract partial class XmlWriter : IDisposable
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNodeList.cs (1)
12public abstract class XmlNodeList : IEnumerable, IDisposable
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (1)
616internal sealed class ExceptionXmlParser : IDisposable
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (1)
11internal sealed class InputQueue<T> : IDisposable where T : class
FrameworkFork\System.ServiceModel\SMDiagnostics\System\ServiceModel\Diagnostics\Activity.cs (1)
9internal class Activity : IDisposable
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\WindowsClaimSet.NetNative.cs (1)
18public class WindowsClaimSet : ClaimSet, IIdentityInfo, IDisposable
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (2)
14public class X509CertificateClaimSet : ClaimSet, IIdentityInfo, IDisposable 488internal class X509Identity : GenericIdentity, IDisposable
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\UnconditionalPolicy.cs (1)
18internal class UnconditionalPolicy : IAuthorizationPolicy, IDisposable
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\X509SecurityTokenProvider.cs (1)
13public class X509SecurityTokenProvider : SecurityTokenProvider, IDisposable
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\WindowsSecurityToken.NetNative.cs (1)
13public class WindowsSecurityToken : SecurityToken, IDisposable
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\X509SecurityToken.cs (1)
12public class X509SecurityToken : SecurityToken, IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\ChannelFactory.cs (1)
14public abstract class ChannelFactory : CommunicationObject, IChannelFactory, IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelBindingMessageProperty.cs (1)
9internal sealed class ChannelBindingMessageProperty : IDisposable, IMessageProperty
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (1)
18public abstract class Message : IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageBuffer.cs (1)
11public abstract class MessageBuffer : IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (2)
12public sealed class MessageProperties : IDictionary<string, object>, IDisposable 856internal struct Property : IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestContext.cs (1)
9public abstract class RequestContext : IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestContextBase.cs (1)
282internal class RequestContextMessageProperty : IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\ClientBase.cs (1)
15public abstract class ClientBase<TChannel> : ICommunicationObject, IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\ServiceModelActivity.cs (1)
12internal class ServiceModelActivity : IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\OperationContextScope.cs (1)
11public sealed class OperationContextScope : IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityMessageProperty.cs (1)
12public class SecurityMessageProperty : IMessageProperty, IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
15public class SecurityContextSecurityToken : SecurityToken, TimeBoundedCache.IExpirableItem, IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
272internal sealed class EnumeratorAdapter : IEnumerator, IDisposable
Shared\MSBuildProj.cs (1)
18internal class MSBuildProj : IDisposable
Shared\Utilities\SafeLogger.cs (1)
11internal class SafeLogger : IDisposable, ILogger
dotnet-svcutil-lib.Tests (2)
TestInit.cs (2)
17public class ClassFixture : IDisposable 628protected class CurrentDirectorySetter : IDisposable
dotnet-watch (2)
UI\SpectreBuildParametersSelectionPrompt.cs (2)
95private sealed class KeyPressedAnsiConsole(IAnsiConsole inner, IConsole watchConsole) : IAnsiConsole, IDisposable 113private sealed class KeyPressedInput : IAnsiConsoleInput, IDisposable
GenerateDocumentationAndConfigFiles (36)
JsonWriter.cs (1)
25internal sealed class JsonWriter : IDisposable
src\60c94c676d650713\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
16bool onlyMethodTypeParameters) : SymbolVisitor, IDisposable
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
19private sealed class BasicBlockAnalysisData : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReaderWriterLockSlimExtensions.cs (3)
19internal readonly struct ReadLockExiter : IDisposable 41internal readonly struct UpgradeableReadLockExiter : IDisposable 73internal readonly struct WriteLockExiter : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
35internal struct SemaphoreDisposer : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
18internal readonly struct SpecializedSyncContext : IDisposable
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (1)
33internal struct TemporaryArray<T> : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (1)
332public readonly struct Releaser : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
14bool discardLargeInstances = true) : IDisposable
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
29internal class AsyncBatchingWorkQueue<TItem, TResult> : IDisposable
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
26internal sealed class CancellationSeries : IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
19internal sealed class PooledConcurrentDictionary<K, V> : ConcurrentDictionary<K, V>, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
19internal sealed class PooledConcurrentSet<T> : ICollection<T>, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
20internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\DataFlowAnalyzer.cs (1)
14internal abstract class DataFlowAnalyzer<TBlockAnalysisData> : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (1)
24private abstract class AnalysisData : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\NodeOperations.cs (1)
15internal sealed class NodeOperations : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\EmptyLogBlock.cs (1)
12internal sealed class EmptyLogBlock : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
32private sealed class RoslynLogBlock(ObjectPool<RoslynLogBlock> pool) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (1)
17internal struct PooledObject<T> : IDisposable where T : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
19internal sealed partial class ObjectReader : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.ReaderReferenceMap.cs (1)
16private readonly struct ReaderReferenceMap : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
22internal sealed partial class ObjectWriter : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
22private abstract class Reader<TStringResult> : IDisposable where TStringResult : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
53private sealed class SymbolKeyWriter : SymbolVisitor, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
148private readonly struct WaitThatValidatesInvariants(AsyncLazyImpl<TData> asyncLazy) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
29internal sealed class AsyncPriorityWorkQueue<TItem> : IDisposable where TItem : notnull
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
32internal readonly struct EditDistance(string text) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
244public readonly struct SemaphoreDisposer(NonReentrantLock semaphore) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
58internal sealed class ReferenceCountedDisposable<T> : IReferenceCountedDisposable<T>, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
69private sealed class Entry(ReferenceCountedDisposableCache<TKey, TValue> cache, TKey key, TValue value) : IDisposable, ICacheEntry<TKey, TValue>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
10internal struct WordSimilarityChecker : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Progress\CodeAnalysisProgressExtensions.cs (1)
30public readonly struct ItemCompletedDisposer(IProgress<CodeAnalysisProgress> progress) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
21TAccessorDeclarationSyntax> : ISemanticModelReuseLanguageService, IDisposable
ILCompiler.Compiler (6)
Compiler\Disassembler.cs (1)
67private sealed class CoreDisassembler : IDisposable
Compiler\ILAssemblyGeneratingMethodDebugInfoProvider.cs (1)
18public class ILAssemblyGeneratingMethodDebugInfoProvider : DebugInformationProvider, IDisposable
Compiler\ObjectWriter\CodeView\CodeViewSymbolsBuilder.cs (1)
303private sealed class SubsectionWriter : IDisposable
Compiler\ObjectWriter\Dwarf\DwarfInfoWriter.cs (1)
15internal sealed class DwarfInfoWriter : IDisposable
Compiler\ObjectWriter\Dwarf\DwarfLineProgramTableWriter.cs (1)
11internal sealed class DwarfLineProgramTableWriter : IDisposable
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\ValueSet.cs (1)
80public struct Enumerator : IEnumerator<TValue>, IDisposable, IEnumerator
ILCompiler.DependencyAnalysisFramework (2)
DgmlWriter.cs (1)
20internal sealed class DgmlWriter<DependencyContextType> : IDisposable, IDependencyAnalyzerLogEdgeVisitor<DependencyContextType>, IDependencyAnalyzerLogNodeVisitor<DependencyContextType>
PerfEventSource.cs (1)
17public struct StartStopEvents : IDisposable
ILCompiler.ReadyToRun (3)
Compiler\DependencyAnalysis\ReadyToRun\ManifestMetadataTableNode.cs (1)
30public class ManifestMetadataTableNode : HeaderTableNode, IDisposable
Compiler\PerfEventSource.cs (1)
17public struct StartStopEvents : IDisposable
Compiler\ReadyToRunCodegenCompilation.cs (1)
29public abstract class Compilation : ICompilation, IDisposable
ILCompiler.TypeSystem (1)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\SymbolReader\PdbSymbolReader.cs (1)
14public abstract class PdbSymbolReader : IDisposable
illink (5)
ILLink.RoslynAnalyzer (1)
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\ValueSet.cs (1)
80public struct Enumerator : IEnumerator<TValue>, IDisposable, IEnumerator
Infrastructure.Tests (37)
CreateFailingTestIssue\CreateFailingTestIssueToolTests.cs (1)
14public sealed class CreateFailingTestIssueToolTests : IClassFixture<CreateFailingTestIssueFixture>, IDisposable
DownloadFailingJobLogs\DownloadFailingJobLogsToolTests.cs (1)
14public sealed class DownloadFailingJobLogsToolTests : IClassFixture<DownloadFailingJobLogsFixture>, IDisposable
ExtractTestPartitions\ExtractTestPartitionsTests.cs (1)
12public class ExtractTestPartitionsTests : IClassFixture<ExtractTestPartitionsFixture>, IDisposable
GenerateTestSummary\GenerateTestSummaryToolTests.cs (1)
13public sealed class GenerateTestSummaryToolTests : IClassFixture<GenerateTestSummaryFixture>, IDisposable
Pipelines\NixCliPackageTests.cs (1)
10public sealed class NixCliPackageTests(ITestOutputHelper outputHelper) : IDisposable
Pipelines\NpmCliPackageTests.cs (1)
11public sealed class NpmCliPackageTests : IDisposable
PowerShellScripts\AspireSkillsBundleHashTests.cs (1)
23public sealed class AspireSkillsBundleHashTests : IDisposable
PowerShellScripts\BuildTestMatrixTests.cs (1)
13public class BuildTestMatrixTests : IDisposable
PowerShellScripts\DownloadNativeArchivesTests.cs (2)
13public sealed class DownloadNativeArchivesTests : IDisposable 438private sealed class MockAzdoServer : IDisposable
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (1)
13public class ExpandTestMatrixGitHubTests : IDisposable
PowerShellScripts\PowerShellCommand.cs (1)
15public sealed class PowerShellCommand : IDisposable
PowerShellScripts\SplitTestMatrixByDepsTests.cs (1)
13public class SplitTestMatrixByDepsTests : IDisposable
PowerShellScripts\SplitTestProjectsTests.cs (1)
20public class SplitTestProjectsTests : IDisposable
PowerShellScripts\StageNativeCliToolPackagesTests.cs (1)
9public sealed class StageNativeCliToolPackagesTests : IDisposable
PowerShellScripts\TrustedExtensionReleasePrTests.cs (1)
10public sealed class TrustedExtensionReleasePrTests : IDisposable
PowerShellScripts\ValidateNpmPackageSignaturesTests.cs (1)
18public sealed class ValidateNpmPackageSignaturesTests : IDisposable
PowerShellScripts\WriteClassModeTestPropsTests.cs (1)
9public class WriteClassModeTestPropsTests : IDisposable
tests\Shared\TemporaryWorkspace.cs (1)
12public sealed class TemporaryWorkspace(ITestOutputHelper outputHelper, DirectoryInfo workspaceDirectory) : IDisposable
TestTriggerMap\GraphAffectedProjectsTests.cs (2)
232private sealed class GraphFixture : IDisposable 331private sealed class GitGraphFixture : IDisposable
TestTriggerMap\SelectTestsAcceptanceTests.cs (1)
18public sealed class SelectTestsAcceptanceTests(ITestOutputHelper outputHelper) : IDisposable
TestTriggerMap\SelectTestsLayer1IntegrationTests.cs (1)
241private sealed class GraphRepoFixture : IDisposable
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (1)
14public sealed class AutoRerunTransientCiFailuresTests : IDisposable
WorkflowScripts\CreateFailingTestIssueWorkflowTests.cs (1)
13public sealed class CreateFailingTestIssueWorkflowTests : IDisposable
WorkflowScripts\ExtensionChangelogFinalizedWorkflowTests.cs (1)
16public sealed class ExtensionChangelogFinalizedWorkflowTests(ITestOutputHelper output) : IDisposable
WorkflowScripts\MonitorScheduledWorkflowsIntegrationTests.cs (1)
17public sealed class MonitorScheduledWorkflowsIntegrationTests : IDisposable
WorkflowScripts\MonitorScheduledWorkflowsTests.cs (1)
14public sealed class MonitorScheduledWorkflowsTests : IDisposable
WorkflowScripts\NodeCommand.cs (1)
14public sealed class NodeCommand : IDisposable
WorkflowScripts\ReportCiFailureIntegrationTests.cs (1)
17public sealed class ReportCiFailureIntegrationTests : IDisposable
WorkflowScripts\ReportCiFailureTests.cs (1)
15public sealed class ReportCiFailureTests : IDisposable
WorkflowScripts\ReportPipelineFailureIntegrationTests.cs (1)
17public sealed class ReportPipelineFailureIntegrationTests : IDisposable
WorkflowScripts\ReportPipelineFailureTests.cs (1)
14public sealed class ReportPipelineFailureTests : IDisposable
WorkflowScripts\ReportSpecializedTestFailuresTests.cs (1)
14public sealed class ReportSpecializedTestFailuresTests : IDisposable
WorkflowScripts\SelectTestsCommentScriptTests.cs (1)
20public sealed class SelectTestsCommentScriptTests : IDisposable
WorkflowScripts\SpecializedTestFailureRunnerTests.cs (1)
17public sealed class SpecializedTestFailureRunnerTests : IDisposable
WorkflowScripts\TrackingIssueTests.cs (1)
16public sealed class TrackingIssueTests : IDisposable
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
TemplateExecutionTestBase.cs (1)
16public abstract class TemplateExecutionTestBase<TConfiguration> : IClassFixture<TemplateExecutionTestBase<TConfiguration>.TemplateExecutionTestFixture>, IDisposable
Microsoft.AspNetCore.Antiforgery (1)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
15internal ref struct RefPooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.Authentication.Negotiate (1)
NegotiateHandler.cs (1)
439private sealed class AuthPersistence : IDisposable
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthTokenResponse.cs (1)
12public class OAuthTokenResponse : IDisposable
Microsoft.AspNetCore.Authorization.Policy (2)
AuthorizationPolicyCache.cs (1)
10internal sealed class AuthorizationPolicyCache : IDisposable
src\aspnetcore\src\Http\Routing\src\DataSourceDependentCache.cs (1)
13internal sealed class DataSourceDependentCache<T> : IDisposable where T : class
Microsoft.AspNetCore.Components (18)
CascadingParameterSubscription.cs (1)
9public abstract class CascadingParameterSubscription : IDisposable
ComponentsMetrics.cs (1)
12internal sealed class ComponentsMetrics : IDisposable
NavigationManager.cs (1)
657private sealed class LocationChangingRegistration : IDisposable
OwningComponentBase.cs (2)
17public abstract class OwningComponentBase : ComponentBase, IDisposable, IAsyncDisposable 105public abstract class OwningComponentBase<TService> : OwningComponentBase, IDisposable where TService : notnull
PersistentState\PersistentValueProviderComponentSubscription.cs (1)
16internal partial class PersistentValueProviderComponentSubscription : IDisposable
PersistentState\PersistingComponentStateSubscription.cs (1)
12public readonly struct PersistingComponentStateSubscription : IDisposable
PersistentState\RestoringComponentStateSubscription.cs (1)
9public readonly struct RestoringComponentStateSubscription : IDisposable
Rendering\RenderBatchBuilder.cs (1)
14internal sealed class RenderBatchBuilder : IDisposable
Rendering\RenderTreeBuilder.cs (1)
19public sealed class RenderTreeBuilder : IDisposable
RenderTree\Renderer.cs (1)
29public abstract partial class Renderer : IDisposable, IAsyncDisposable
Routing\Router.cs (1)
21public partial class Router : IComponent, IHandleAfterRender, IDisposable
Routing\SupplyParameterFromQueryValueProvider.cs (1)
10internal sealed class SupplyParameterFromQueryValueProvider(NavigationManager navigationManager) : ICascadingValueSupplier, IDisposable
Sections\SectionContent.cs (1)
9public sealed class SectionContent : IComponent, IDisposable
Sections\SectionOutlet.cs (1)
11public sealed class SectionOutlet : IComponent, IDisposable
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
32internal class ArrayBuilder<T> : IDisposable
src\aspnetcore\src\Components\Shared\src\RootTypeCache.cs (1)
16internal sealed class RootTypeCache : IDisposable
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
10internal sealed class PooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.Components.AI (10)
Blocks\ContentBlockChangedSubscription.cs (1)
10public readonly struct ContentBlockChangedSubscription : IDisposable
Components\AgentBoundary.cs (1)
12public class AgentBoundary : ComponentBase, IDisposable
Components\BlockContainer.cs (1)
7internal class BlockContainer : IDisposable
Components\BlockRenderer.cs (1)
20public class BlockRenderer<TBlock> : IComponent, IDisposable where TBlock : ContentBlock
Components\ConversationTurnRenderer.cs (1)
9internal class ConversationTurnRenderer : IDisposable
Components\MessageInput.cs (1)
13public class MessageInput : IComponent, IDisposable
Components\MessageList.cs (1)
13public class MessageList : IComponent, IDisposable
Engine\AgentContext.cs (2)
20public class AgentContext : IDisposable 318private sealed class CallbackRegistration<T> : IDisposable
Engine\UIAgent.cs (1)
29public class UIAgent : IDisposable
Microsoft.AspNetCore.Components.Authorization (2)
_generated\0\CascadingAuthenticationState_razor.g.cs (1)
18IDisposable
CascadingAuthenticationStateServiceCollectionExtensions.cs (1)
29private sealed class AuthenticationStateCascadingValueSource : CascadingValueSource<Task<AuthenticationState>>, IDisposable
Microsoft.AspNetCore.Components.Endpoints (7)
CacheView\CacheView.cs (1)
15public sealed class CacheView : IComponent, IDisposable
CacheView\CacheViewService.cs (1)
13internal sealed partial class CacheViewService : IDisposable
DependencyInjection\HotReloadService.cs (1)
11internal sealed class HotReloadService : IDisposable
FormMapping\FormDataReader.cs (1)
16internal struct FormDataReader : IDisposable
FormMapping\PrefixResolver.cs (1)
8internal readonly struct PrefixResolver : IDisposable
Forms\ClientValidationCache.cs (1)
19internal sealed class ClientValidationCache : IDisposable
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
15internal ref struct RefPooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.Components.Forms (3)
DataAnnotationsValidator.cs (1)
9public class DataAnnotationsValidator : ComponentBase, IDisposable
EditContextDataAnnotationsExtensions.cs (1)
44private sealed partial class DataAnnotationsEventSubscriptions : IDisposable
src\aspnetcore\src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (1)
120private sealed class SequenceSegment : ReadOnlySequenceSegment<char>, IDisposable
Microsoft.AspNetCore.Components.QuickGrid (2)
Infrastructure\EventCallbackSubscriber.cs (1)
12internal sealed class EventCallbackSubscriber<T> : IDisposable
Pagination\Paginator.razor.cs (1)
12public partial class Paginator : IDisposable
Microsoft.AspNetCore.Components.Server (9)
BlazorPack\SequenceOfT.cs (1)
21internal sealed class Sequence<T> : IBufferWriter<T>, IDisposable
Circuits\CircuitMetrics.cs (1)
10internal sealed class CircuitMetrics : IDisposable
Circuits\RemoteJSDataStream.cs (1)
236internal readonly struct ValueLinkedCancellationTokenSource : IDisposable
Circuits\RevalidatingServerAuthenticationStateProvider.cs (1)
16: ServerAuthenticationStateProvider, IDisposable
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
32internal class ArrayBuilder<T> : IDisposable
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
37internal sealed class RenderBatchWriter : IDisposable
src\aspnetcore\src\Components\Shared\src\RootTypeCache.cs (1)
16internal sealed class RootTypeCache : IDisposable
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
10internal sealed class PooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\SequencePool.cs (1)
117internal struct Rental : IDisposable
Microsoft.AspNetCore.Components.Web (10)
Forms\InputBase.cs (1)
17public abstract class InputBase<TValue> : ComponentBase, IDisposable
Forms\InputFile.cs (1)
13public class InputFile : ComponentBase, IInputFileJsCallbacks, IDisposable
Forms\InputFile\InputFileJsCallbacksRelay.cs (1)
9internal sealed class InputFileJsCallbacksRelay : IDisposable
Forms\Mapping\EditContextFormMappingExtensions.cs (1)
35private sealed class MappingContextEventSubscriptions : IDisposable
Forms\Mapping\FormMappingValidator.cs (1)
9internal class FormMappingValidator : ComponentBase, IDisposable
Forms\ValidationMessage.cs (1)
12public class ValidationMessage<TValue> : ComponentBase, IDisposable
Forms\ValidationSummary.cs (1)
15public class ValidationSummary : ComponentBase, IDisposable
HtmlRendering\HtmlRenderer.cs (1)
14public sealed class HtmlRenderer : IDisposable, IAsyncDisposable
Routing\NavLink.cs (1)
13public class NavLink : ComponentBase, IDisposable
src\aspnetcore\src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (1)
120private sealed class SequenceSegment : ReadOnlySequenceSegment<char>, IDisposable
Microsoft.AspNetCore.Components.WebAssembly (4)
Services\WebAssemblyConsoleLogger.cs (1)
159private sealed class NoOpDisposable : IDisposable
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
32internal class ArrayBuilder<T> : IDisposable
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
37internal sealed class RenderBatchWriter : IDisposable
src\aspnetcore\src\Components\Shared\src\RootTypeCache.cs (1)
16internal sealed class RootTypeCache : IDisposable
Microsoft.AspNetCore.Components.WebAssembly.Authentication (1)
Services\AuthorizationMessageHandler.cs (1)
17public class AuthorizationMessageHandler : DelegatingHandler, IDisposable
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
AuthenticationStateSerializer.cs (1)
10internal sealed class AuthenticationStateSerializer : IHostEnvironmentAuthenticationStateProvider, IDisposable
Microsoft.AspNetCore.Components.WebView (2)
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
32internal class ArrayBuilder<T> : IDisposable
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
37internal sealed class RenderBatchWriter : IDisposable
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
126 private sealed class StaticContentChangeNotifier : IComponent, IDisposable
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
126 private sealed class StaticContentChangeNotifier : IComponent, IDisposable
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
126 private sealed class StaticContentChangeNotifier : IComponent, IDisposable
Microsoft.AspNetCore.DataProtection (7)
Cng\CbcAuthenticatedEncryptor.cs (1)
18internal sealed unsafe class CbcAuthenticatedEncryptor : IOptimizedAuthenticatedEncryptor, IDisposable
Cng\CngGcmAuthenticatedEncryptor.cs (1)
25internal sealed unsafe class CngGcmAuthenticatedEncryptor : IOptimizedAuthenticatedEncryptor, IDisposable
Managed\AesGcmAuthenticatedEncryptor.cs (1)
17internal sealed unsafe class AesGcmAuthenticatedEncryptor : IOptimizedAuthenticatedEncryptor, ISpanAuthenticatedEncryptor, IDisposable
Managed\ManagedAuthenticatedEncryptor.cs (1)
20internal sealed unsafe class ManagedAuthenticatedEncryptor : IAuthenticatedEncryptor, IDisposable
Secret.cs (1)
16public sealed unsafe class Secret : IDisposable, ISecret
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
15internal ref struct RefPooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
10internal sealed class PooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (2)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
15internal ref struct RefPooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
10internal sealed class PooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.Diagnostics.Middleware (3)
Buffering\IncomingRequestLogBuffer.cs (1)
19internal sealed class IncomingRequestLogBuffer : IDisposable
Buffering\IncomingRequestLogBufferHolder.cs (1)
9internal sealed class IncomingRequestLogBufferHolder : IDisposable
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\BufferWriterPool\ReturnableBufferWriter.cs (1)
18internal readonly struct ReturnableBufferWriter<T> : IDisposable
Microsoft.AspNetCore.HeaderParsing (1)
HeaderParsingFeature.cs (1)
84internal sealed class PoolHelper : IDisposable
Microsoft.AspNetCore.Hosting (2)
Internal\HostingMetrics.cs (1)
12internal sealed class HostingMetrics : IDisposable
Internal\WebHostLifetime.cs (1)
8internal sealed class WebHostLifetime : IDisposable
Microsoft.AspNetCore.Http (1)
Features\RequestServicesFeature.cs (1)
11public class RequestServicesFeature : IServiceProvidersFeature, IDisposable, IAsyncDisposable
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionContext.cs (1)
1130object? state) : IDisposable
Internal\HttpConnectionsMetrics.cs (1)
21internal sealed class HttpConnectionsMetrics : IDisposable
Microsoft.AspNetCore.Http.Extensions (2)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\FormDataReader.cs (1)
16internal struct FormDataReader : IDisposable
src\aspnetcore\src\Components\Endpoints\src\FormMapping\PrefixResolver.cs (1)
8internal readonly struct PrefixResolver : IDisposable
Microsoft.AspNetCore.HttpLogging (1)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
15internal ref struct RefPooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.Identity (3)
AspNetRoleManager.cs (1)
13public class AspNetRoleManager<TRole> : RoleManager<TRole>, IDisposable where TRole : class
AspNetUserManager.cs (1)
15public class AspNetUserManager<TUser> : UserManager<TUser>, IDisposable where TUser : class
SignInManagerMetrics.cs (1)
11internal sealed class SignInManagerMetrics : IDisposable
Microsoft.AspNetCore.InternalTesting (7)
AssemblyTestLog.cs (2)
23public class AssemblyTestLog : IAcceptFailureReports, IDisposable 341private sealed class Disposable : IDisposable
CultureReplacer.cs (1)
11public class CultureReplacer : IDisposable
LoggedTest\LoggedTestBase.cs (1)
18public abstract class LoggedTestBase : ITestMethodLifecycle, IDisposable
Logging\TestLogger.cs (1)
66private sealed class TestDisposable : IDisposable
Logging\XunitLoggerProvider.cs (1)
122private sealed class NullScope : IDisposable
Tracing\EventSourceTestBase.cs (1)
14public abstract class EventSourceTestBase : IDisposable
Microsoft.AspNetCore.Mvc (1)
HotReloadService.cs (1)
16internal sealed class HotReloadService : IActionDescriptorChangeProvider, IDisposable
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelBindingContext.cs (1)
164public readonly struct NestedScope : IDisposable
Microsoft.AspNetCore.Mvc.Core (4)
ModelBinding\Validation\ValidationVisitor.cs (1)
487protected readonly struct StateManager : IDisposable
Routing\ActionEndpointDataSourceBase.cs (1)
15internal abstract class ActionEndpointDataSourceBase : EndpointDataSource, IDisposable
Routing\DynamicControllerEndpointSelector.cs (1)
10internal sealed class DynamicControllerEndpointSelector : IDisposable
src\aspnetcore\src\Http\Routing\src\DataSourceDependentCache.cs (1)
13internal sealed class DataSourceDependentCache<T> : IDisposable where T : class
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DynamicPageEndpointSelector.cs (1)
10internal sealed class DynamicPageEndpointSelector : IDisposable
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
28public partial class WebApplicationFactory<TEntryPoint> : IDisposable, IAsyncDisposable where TEntryPoint : class
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
Buffers\MemoryPoolViewBufferScope.cs (1)
11internal sealed class MemoryPoolViewBufferScope : IViewBufferScope, IDisposable
Buffers\PagedCharBuffer.cs (1)
8internal sealed class PagedCharBuffer : IDisposable
Controller.cs (1)
17public abstract class Controller : ControllerBase, IActionFilter, IAsyncActionFilter, IDisposable
Rendering\MvcForm.cs (1)
13public class MvcForm : IDisposable
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
10internal sealed class PooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.OutputCaching (3)
OutputCacheEntry.cs (1)
12internal sealed class OutputCacheEntry : IDisposable
RecyclableArrayBufferWriter.cs (1)
12internal sealed class RecyclableArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
RecyclableSequenceBuilder.cs (1)
11internal sealed class RecyclableSequenceBuilder : IDisposable
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
RedisOutputCacheStore.cs (1)
22internal partial class RedisOutputCacheStore : IOutputCacheStore, IOutputCacheBufferStore, IDisposable
Microsoft.AspNetCore.RateLimiting (2)
LeaseContext.cs (1)
8internal struct LeaseContext : IDisposable
RateLimitingMetrics.cs (1)
11internal sealed class RateLimitingMetrics : IDisposable
Microsoft.AspNetCore.Razor.Utilities.Shared (9)
PooledArrayBufferWriter`1.cs (1)
17internal sealed class PooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (1)
332public readonly struct Releaser : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
14bool discardLargeInstances = true) : IDisposable
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\PooledArray`1.cs (1)
9internal struct PooledArray<T> : IDisposable
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\PooledArrayBuilder`1.cs (1)
28internal partial struct PooledArrayBuilder<T> : IDisposable
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\PooledObject`1.cs (1)
10internal struct PooledObject<T> : IDisposable
Threading\ReaderWriterLockSlimExtensions.cs (3)
21internal readonly struct ReadLockExiter : IDisposable 43internal readonly struct UpgradeableReadLockExiter : IDisposable 75internal readonly struct WriteLockExiter : IDisposable
Microsoft.AspNetCore.Routing (8)
CompositeEndpointDataSource.cs (1)
17public sealed class CompositeEndpointDataSource : EndpointDataSource, IDisposable
DataSourceDependentCache.cs (1)
13internal sealed class DataSourceDependentCache<T> : IDisposable where T : class
DefaultLinkGenerator.cs (1)
22internal sealed partial class DefaultLinkGenerator : LinkGenerator, IDisposable
DefaultLinkParser.cs (1)
13internal sealed partial class DefaultLinkParser : LinkParser, IDisposable
EndpointNameAddressScheme.cs (1)
10internal sealed class EndpointNameAddressScheme : IEndpointAddressScheme<string>, IDisposable
Matching\DataSourceDependentMatcher.cs (1)
75public sealed class Lifetime : IDisposable
RouteGroupBuilder.cs (1)
40private sealed class GroupEndpointDataSource : EndpointDataSource, IDisposable
RouteValuesAddressScheme.cs (1)
11internal sealed class RouteValuesAddressScheme : IEndpointAddressScheme<RouteValuesAddress>, IDisposable
Microsoft.AspNetCore.Server.HttpSys (10)
AsyncAcceptContext.cs (1)
10internal sealed unsafe partial class AsyncAcceptContext : IValueTaskSource<RequestContext>, IDisposable
DelegationRule.cs (1)
12public class DelegationRule : IDisposable
HttpSysListener.cs (1)
20internal sealed partial class HttpSysListener : IDisposable
NativeInterop\ServerSession.cs (1)
9internal sealed class ServerSession : IDisposable
NativeInterop\UrlGroup.cs (1)
13internal sealed partial class UrlGroup : IDisposable
RequestProcessing\ClientCertLoader.cs (1)
16internal sealed unsafe partial class ClientCertLoader : IAsyncResult, IDisposable
RequestProcessing\RequestStreamAsyncResult.cs (1)
9internal sealed unsafe class RequestStreamAsyncResult : IAsyncResult, IDisposable
RequestProcessing\ResponseStreamAsyncResult.cs (1)
11internal sealed unsafe partial class ResponseStreamAsyncResult : IAsyncResult, IDisposable
src\aspnetcore\src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
12internal unsafe struct UnmanagedBufferAllocator : IDisposable
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
25internal unsafe class NativeRequestContext : IDisposable
Microsoft.AspNetCore.Server.IIS (7)
Core\IISHttpContext.cs (1)
31internal abstract partial class IISHttpContext : NativeRequestContext, IThreadPoolWorkItem, IDisposable
Core\IO\AsyncIOEngine.cs (1)
9internal sealed partial class AsyncIOEngine : IAsyncIOEngine, IDisposable
Core\IO\WebSocketsAsyncIOEngine.Read.cs (1)
12internal sealed class WebSocketReadOperation : AsyncIOOperation, IDisposable
Core\IO\WebSocketsAsyncIOEngine.Write.cs (1)
11internal sealed class WebSocketWriteOperation : AsyncWriteOperationBase, IDisposable
src\aspnetcore\src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
12internal unsafe struct UnmanagedBufferAllocator : IDisposable
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
25internal unsafe class NativeRequestContext : IDisposable
WebHostBuilderIISExtensions.cs (1)
72private sealed class IISHostLifetime : IHostLifetime, IDisposable
Microsoft.AspNetCore.Server.IntegrationTesting (4)
CachingApplicationPublisher.cs (1)
8public class CachingApplicationPublisher : ApplicationPublisher, IDisposable
Deployers\ApplicationDeployer.cs (1)
13public abstract class ApplicationDeployer : IDisposable
PublishedApplication.cs (1)
8public class PublishedApplication : IDisposable
src\aspnetcore\src\Shared\Process\ProcessEx.cs (1)
19internal sealed class ProcessEx : IDisposable
Microsoft.AspNetCore.Server.Kestrel.Core (11)
Internal\CertificatePathWatcher.cs (3)
14internal sealed partial class CertificatePathWatcher : IDisposable 289private sealed class DirectoryWatchMetadata(IFileProvider fileProvider) : IDisposable 297private sealed class FileWatchMetadata(IDisposable disposable) : IDisposable
Internal\Http\Http1OutputProducer.cs (1)
16internal class Http1OutputProducer : IHttpOutputProducer, IDisposable
Internal\Http2\Http2OutputProducer.cs (1)
22internal sealed class Http2OutputProducer : IHttpOutputProducer, IHttpOutputAborter, IDisposable
Internal\Http2\Http2Stream.cs (1)
31internal abstract partial class Http2Stream : HttpProtocol, IThreadPoolWorkItem, IDisposable, IPooledStream
Internal\Infrastructure\Disposable.cs (1)
9internal sealed class Disposable : IDisposable
Internal\Infrastructure\Heartbeat.cs (1)
8internal sealed class Heartbeat : IDisposable
src\aspnetcore\src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
12internal unsafe struct UnmanagedBufferAllocator : IDisposable
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
15internal ref struct RefPooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
src\aspnetcore\src\Shared\runtime\Http3\QPack\QPackDecoder.cs (1)
17internal sealed class QPackDecoder : IDisposable
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (4)
ConnectionIoState.cs (1)
30internal class ConnectionIoState : IDisposable
ServerTlsContexts.cs (1)
22internal sealed class ServerTlsContexts : IDisposable
TlsEventPump.cs (1)
26internal partial class TlsEventPump : IDisposable
TlsEventPumpPool.cs (1)
21internal sealed class TlsEventPumpPool : IDisposable
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
12internal unsafe struct UnmanagedBufferAllocator : IDisposable
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Internal\QuicStreamContext.cs (1)
16internal partial class QuicStreamContext : TransportConnection, IPooledStream, IDisposable
src\aspnetcore\src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
12internal unsafe struct UnmanagedBufferAllocator : IDisposable
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Internal\SocketSenderPool.cs (1)
9internal sealed class SocketSenderPool : IDisposable
SocketConnectionContextFactory.cs (1)
16public sealed class SocketConnectionContextFactory : IDisposable
Microsoft.AspNetCore.SignalR.Client.Core (4)
HubConnection.cs (1)
2313private sealed class Subscription : IDisposable
Internal\InvocationRequest.cs (1)
15internal abstract partial class InvocationRequest : IDisposable
src\aspnetcore\src\SignalR\common\Shared\MessageBuffer.cs (1)
19internal sealed class MessageBuffer : IDisposable
src\aspnetcore\src\SignalR\common\Shared\TimerAwaitable.cs (1)
13internal sealed class TimerAwaitable : IDisposable, ICriticalNotifyCompletion
Microsoft.AspNetCore.SignalR.Core (2)
Hub.cs (1)
11public abstract class Hub : IDisposable
src\aspnetcore\src\SignalR\common\Shared\MessageBuffer.cs (1)
19internal sealed class MessageBuffer : IDisposable
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\aspnetcore\src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
23class TestClient : ITransferFormatFeature, IConnectionHeartbeatFeature, IDisposable
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Internal\AckHandler.cs (1)
9internal sealed class AckHandler : IDisposable
RedisHubLifetimeManager.cs (1)
24public class RedisHubLifetimeManager<THub> : HubLifetimeManager<THub>, IDisposable where THub : Hub
Microsoft.AspNetCore.SpaProxy (1)
SpaProxyLaunchManager.cs (1)
13internal sealed class SpaProxyLaunchManager : IDisposable
Microsoft.AspNetCore.SpaServices.Extensions (2)
Npm\NodeScriptRunner.cs (1)
17internal sealed class NodeScriptRunner : IDisposable
Util\EventedStreamStringReader.cs (1)
12internal sealed class EventedStreamStringReader : IDisposable
Microsoft.AspNetCore.Testing.Tests (1)
FakeCertificateHttpClientHandlerTests.cs (1)
14public class FakeCertificateHttpClientHandlerTests : IDisposable
Microsoft.AspNetCore.WebUtilities (2)
FormReader.cs (1)
14public class FormReader : IDisposable
PagedByteBuffer.cs (1)
9internal sealed class PagedByteBuffer : IDisposable
Microsoft.Build (27)
BackEnd\BuildManager\BuildManager.cs (1)
52public class BuildManager : INodePacketHandler, IBuildComponentHost, IDisposable
BackEnd\BuildManager\CoordinatorClient.Connection.cs (1)
19private sealed class Connection : IDisposable
BackEnd\BuildManager\CoordinatorClient.cs (1)
23internal sealed partial class CoordinatorClient : IDisposable
BackEnd\BuildManager\CoordinatorClient.HeartbeatTimer.cs (1)
16private sealed class HeartbeatTimer : IDisposable
BackEnd\Client\MSBuildClientPacketPump.cs (1)
18internal sealed class MSBuildClientPacketPump : INodePacketHandler, INodePacketFactory, IDisposable
BackEnd\Components\Caching\RegisteredTaskObjectCache.cs (1)
12internal class RegisteredTaskObjectCache : RegisteredTaskObjectCacheBase, IBuildComponent, IRegisteredTaskObjectCache, IDisposable
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
25internal class NodeProviderInProc : INodeProvider, INodePacketFactory, IDisposable
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (2)
19internal sealed class AssemblyLoadsTracker : MarshalByRefObject, IDisposable 168private class EmptyDisposable : IDisposable
BackEnd\Node\ServerNamedMutex.cs (1)
12internal sealed class ServerNamedMutex : IDisposable
BackEnd\Shared\BuildRequestConfiguration.cs (1)
661internal readonly struct ProjectInstanceUsageScope : IDisposable
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
66internal class TaskExecutionHost : IDisposable
BuildCheck\API\Check.cs (1)
14public abstract class Check : IDisposable
BuildCheck\Infrastructure\CheckWrapper.cs (1)
200internal readonly struct CleanupScope(Action disposeAction) : IDisposable
Definition\ProjectCollection.cs (1)
85public class ProjectCollection : IToolsetProvider, IBuildComponent, IDisposable
Evaluation\Expander.SpanBasedConcatenator.cs (1)
25private struct SpanBasedConcatenator : IDisposable
Evaluation\Profiler\EvaluationProfiler.cs (1)
97private sealed class EvaluationFrame : IDisposable
Evaluation\ProjectRootElementCache.cs (1)
94private struct ReentrancyGuard : IDisposable
Logging\BinaryLogger\BuildEventArgsReader.cs (2)
26public class BuildEventArgsReader : IBuildEventArgsReaderNotifications, IDisposable 1880internal class StringStorage : IDisposable
Logging\BinaryLogger\Postprocessing\ArchiveFile.cs (1)
14public abstract class ArchiveData : IDisposable
Logging\BinaryLogger\Postprocessing\CleanupScope.cs (1)
8internal readonly struct CleanupScope : IDisposable
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\TemporaryArray`1.cs (1)
32internal struct TemporaryArray<T> : IDisposable
src\msbuild\artifacts\.packages\microsoft.codeanalysis.pooledobjects\5.0.0-1.25277.114\contentFiles\cs\netstandard2.0\PooledDelegates.cs (1)
332public readonly struct Releaser : IDisposable
src\msbuild\artifacts\.packages\microsoft.codeanalysis.pooledobjects\5.0.0-1.25277.114\contentFiles\cs\netstandard2.0\PooledDisposer.cs (1)
14bool discardLargeInstances = true) : IDisposable
src\msbuild\src\Shared\Debugging\PrintLineDebugger.cs (1)
22internal sealed class PrintLineDebugger : IDisposable
Xml\XmlReaderExtension.cs (1)
17internal class XmlReaderExtension : IDisposable
Microsoft.Build.Framework (4)
FileUtilities_TempFiles.cs (1)
227public sealed class TempWorkingDirectory : IDisposable
ReuseableStringBuilder.cs (1)
22internal sealed class ReuseableStringBuilder : IDisposable
Utilities\ReaderWriterLockSlimExtensions.cs (2)
25internal readonly struct DisposableReadLock : IDisposable 34internal readonly struct DisposableWriteLock : IDisposable
Microsoft.Build.Tasks.CodeAnalysis (2)
src\roslyn\src\Compilers\Core\MSBuildTask\RCWForCurrentContext.cs (1)
19internal class RCWForCurrentContext<T> : IDisposable where T : class
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
98internal sealed class CompilerServerLogger : ICompilerServerLogger, IDisposable
Microsoft.Build.Tasks.Core (7)
AssemblyDependency\DisposableBase.cs (1)
12internal abstract class DisposableBase : IDisposable
AssemblyDependency\Node\OutOfProcRarClient.cs (1)
16internal sealed class OutOfProcRarClient : IDisposable
AssemblyDependency\Node\OutOfProcRarNodeEndpoint.cs (1)
16internal sealed class OutOfProcRarNodeEndpoint : IDisposable
BuildCacheDisposeWrapper.cs (1)
13internal class BuildCacheDisposeWrapper : IDisposable
ManifestUtil\MetadataReader.cs (1)
24internal class MetadataReader : IDisposable
src\msbuild\src\Shared\Debugging\PrintLineDebugger.cs (1)
22internal sealed class PrintLineDebugger : IDisposable
src\msbuild\src\Shared\NodePipeBase.cs (1)
16internal abstract class NodePipeBase : IDisposable
Microsoft.Build.Tasks.Git (4)
GitDataReader\GitReferenceResolver.cs (1)
15internal sealed class GitReferenceResolver : IDisposable
GitDataReader\GitRefTableReader.cs (1)
17internal sealed partial class GitRefTableReader(Stream stream) : IDisposable
GitDataReader\GitRepository.cs (1)
14internal sealed class GitRepository : IDisposable
RepositoryTask.cs (1)
16private sealed class RepositoryContainer(GitRepository? repository) : IDisposable
Microsoft.Build.Utilities.Core (1)
src\msbuild\src\Shared\Debugging\PrintLineDebugger.cs (1)
22internal sealed class PrintLineDebugger : IDisposable
Microsoft.CodeAnalysis (25)
CommandLine\NoThrowStreamDisposer.cs (1)
17internal class NoThrowStreamDisposer : IDisposable
CommandLine\SarifErrorLogger.cs (1)
22internal abstract class SarifErrorLogger : ErrorLogger, IDisposable
CommandLine\SarifV1ErrorLogger.cs (1)
28internal sealed class SarifV1ErrorLogger : SarifErrorLogger, IDisposable
CommandLine\SarifV2ErrorLogger.cs (1)
24internal sealed class SarifV2ErrorLogger : SarifErrorLogger, IDisposable
DiagnosticAnalyzer\AnalyzerDriver.CompilationData.cs (1)
9internal abstract partial class AnalyzerDriver : IDisposable
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
28internal abstract partial class AnalyzerDriver : IDisposable
DiaSymReader\Writer\SymUnmanagedWriter.cs (1)
17internal abstract class SymUnmanagedWriter : IDisposable
InternalUtilities\JsonWriter.cs (1)
25internal sealed class JsonWriter : IDisposable
InternalUtilities\ReaderWriterLockSlimExtensions.cs (3)
19internal readonly struct ReadLockExiter : IDisposable 41internal readonly struct UpgradeableReadLockExiter : IDisposable 73internal readonly struct WriteLockExiter : IDisposable
InternalUtilities\SemaphoreSlimExtensions.cs (1)
35internal struct SemaphoreDisposer : IDisposable
InternalUtilities\SpecializedSyncContext.cs (1)
18internal readonly struct SpecializedSyncContext : IDisposable
MetadataReader\PEModule.cs (1)
33internal sealed class PEModule : IDisposable
MetadataReference\Metadata.cs (1)
28public abstract class Metadata : IDisposable
NativePdbWriter\PdbWriter.cs (1)
25internal sealed class PdbWriter : IDisposable
PEWriter\PooledBlobBuilder.cs (1)
15internal sealed class PooledBlobBuilder : BlobBuilder, IDisposable
SourceGeneration\GeneratorTimerExtensions.cs (1)
45internal readonly struct RunTimer : IDisposable
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (1)
33internal struct TemporaryArray<T> : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (1)
332public readonly struct Releaser : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
14bool discardLargeInstances = true) : IDisposable
Syntax\SyntaxNode.Iterators.cs (4)
58private struct ChildSyntaxListEnumeratorStack : IDisposable 166private struct TriviaListEnumeratorStack : IDisposable 224private struct TwoEnumeratorListStack : IDisposable 317private struct ThreeEnumeratorListStack : IDisposable
Microsoft.CodeAnalysis.Analyzers (37)
src\60c94c676d650713\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
16bool onlyMethodTypeParameters) : SymbolVisitor, IDisposable
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
19private sealed class BasicBlockAnalysisData : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReaderWriterLockSlimExtensions.cs (3)
19internal readonly struct ReadLockExiter : IDisposable 41internal readonly struct UpgradeableReadLockExiter : IDisposable 73internal readonly struct WriteLockExiter : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
35internal struct SemaphoreDisposer : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
18internal readonly struct SpecializedSyncContext : IDisposable
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (1)
33internal struct TemporaryArray<T> : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (1)
332public readonly struct Releaser : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
14bool discardLargeInstances = true) : IDisposable
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
29internal class AsyncBatchingWorkQueue<TItem, TResult> : IDisposable
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
26internal sealed class CancellationSeries : IDisposable
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (2)
579private sealed class SyncForEachAsyncState<TSource> : ForEachAsyncState<TSource>, IDisposable 631private sealed class ForEachState<T> : ForEachAsyncState<T>, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
19internal sealed class PooledConcurrentDictionary<K, V> : ConcurrentDictionary<K, V>, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
19internal sealed class PooledConcurrentSet<T> : ICollection<T>, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
20internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\DataFlowAnalyzer.cs (1)
14internal abstract class DataFlowAnalyzer<TBlockAnalysisData> : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (1)
24private abstract class AnalysisData : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\NodeOperations.cs (1)
15internal sealed class NodeOperations : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\EmptyLogBlock.cs (1)
12internal sealed class EmptyLogBlock : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
32private sealed class RoslynLogBlock(ObjectPool<RoslynLogBlock> pool) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (1)
17internal struct PooledObject<T> : IDisposable where T : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
19internal sealed partial class ObjectReader : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.ReaderReferenceMap.cs (1)
16private readonly struct ReaderReferenceMap : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
22internal sealed partial class ObjectWriter : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
22private abstract class Reader<TStringResult> : IDisposable where TStringResult : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
53private sealed class SymbolKeyWriter : SymbolVisitor, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
148private readonly struct WaitThatValidatesInvariants(AsyncLazyImpl<TData> asyncLazy) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
29internal sealed class AsyncPriorityWorkQueue<TItem> : IDisposable where TItem : notnull
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
32internal readonly struct EditDistance(string text) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
244public readonly struct SemaphoreDisposer(NonReentrantLock semaphore) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
58internal sealed class ReferenceCountedDisposable<T> : IReferenceCountedDisposable<T>, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
69private sealed class Entry(ReferenceCountedDisposableCache<TKey, TValue> cache, TKey key, TValue value) : IDisposable, ICacheEntry<TKey, TValue>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
10internal struct WordSimilarityChecker : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Progress\CodeAnalysisProgressExtensions.cs (1)
30public readonly struct ItemCompletedDisposer(IProgress<CodeAnalysisProgress> progress) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
21TAccessorDeclarationSyntax> : ISemanticModelReuseLanguageService, IDisposable
Microsoft.CodeAnalysis.AnalyzerUtilities (39)
src\60c94c676d650713\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
16bool onlyMethodTypeParameters) : SymbolVisitor, IDisposable
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
19private sealed class BasicBlockAnalysisData : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReaderWriterLockSlimExtensions.cs (3)
19internal readonly struct ReadLockExiter : IDisposable 41internal readonly struct UpgradeableReadLockExiter : IDisposable 73internal readonly struct WriteLockExiter : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
35internal struct SemaphoreDisposer : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
18internal readonly struct SpecializedSyncContext : IDisposable
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (1)
33internal struct TemporaryArray<T> : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (1)
332public readonly struct Releaser : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
14bool discardLargeInstances = true) : IDisposable
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
29internal class AsyncBatchingWorkQueue<TItem, TResult> : IDisposable
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
26internal sealed class CancellationSeries : IDisposable
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (2)
579private sealed class SyncForEachAsyncState<TSource> : ForEachAsyncState<TSource>, IDisposable 631private sealed class ForEachState<T> : ForEachAsyncState<T>, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
19internal sealed class PooledConcurrentDictionary<K, V> : ConcurrentDictionary<K, V>, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
19internal sealed class PooledConcurrentSet<T> : ICollection<T>, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
20internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\TrackedEntitiesBuilder.cs (1)
16internal sealed class TrackedEntitiesBuilder : IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractAnalysisData.cs (1)
9public abstract class AbstractAnalysisData : IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysisResultBuilder.cs (1)
18internal sealed class DataFlowAnalysisResultBuilder<TAnalysisData> : IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\PerEntityPredicatedAnalysisData.cs (1)
18protected sealed class PerEntityPredicatedAnalysisData : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\DataFlowAnalyzer.cs (1)
14internal abstract class DataFlowAnalyzer<TBlockAnalysisData> : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (1)
24private abstract class AnalysisData : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\NodeOperations.cs (1)
15internal sealed class NodeOperations : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\EmptyLogBlock.cs (1)
12internal sealed class EmptyLogBlock : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
32private sealed class RoslynLogBlock(ObjectPool<RoslynLogBlock> pool) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (1)
17internal struct PooledObject<T> : IDisposable where T : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
19internal sealed partial class ObjectReader : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.ReaderReferenceMap.cs (1)
16private readonly struct ReaderReferenceMap : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
22internal sealed partial class ObjectWriter : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
22private abstract class Reader<TStringResult> : IDisposable where TStringResult : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
53private sealed class SymbolKeyWriter : SymbolVisitor, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
148private readonly struct WaitThatValidatesInvariants(AsyncLazyImpl<TData> asyncLazy) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
29internal sealed class AsyncPriorityWorkQueue<TItem> : IDisposable where TItem : notnull
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
32internal readonly struct EditDistance(string text) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
244public readonly struct SemaphoreDisposer(NonReentrantLock semaphore) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
58internal sealed class ReferenceCountedDisposable<T> : IReferenceCountedDisposable<T>, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
69private sealed class Entry(ReferenceCountedDisposableCache<TKey, TValue> cache, TKey key, TValue value) : IDisposable, ICacheEntry<TKey, TValue>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
10internal struct WordSimilarityChecker : IDisposable
Microsoft.CodeAnalysis.CodeStyle (35)
src\60c94c676d650713\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
16bool onlyMethodTypeParameters) : SymbolVisitor, IDisposable
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
19private sealed class BasicBlockAnalysisData : IDisposable
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
22HashCodeAnalyzer analyzer, IMethodSymbol method, ILocalSymbol? hashCodeVariable) : IDisposable
src\roslyn\src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractObjectCreationExpressionAnalyzer.cs (1)
22TAnalyzer> : IDisposable
src\roslyn\src\Analyzers\Core\Analyzers\UseObjectInitializer\UseNamedMemberInitializerAnalyzer.cs (1)
31TAnalyzer>, IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReaderWriterLockSlimExtensions.cs (3)
19internal readonly struct ReadLockExiter : IDisposable 41internal readonly struct UpgradeableReadLockExiter : IDisposable 73internal readonly struct WriteLockExiter : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
35internal struct SemaphoreDisposer : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
18internal readonly struct SpecializedSyncContext : IDisposable
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (1)
33internal struct TemporaryArray<T> : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (1)
332public readonly struct Releaser : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
14bool discardLargeInstances = true) : IDisposable
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
29internal class AsyncBatchingWorkQueue<TItem, TResult> : IDisposable
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
26internal sealed class CancellationSeries : IDisposable
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (2)
579private sealed class SyncForEachAsyncState<TSource> : ForEachAsyncState<TSource>, IDisposable 631private sealed class ForEachState<T> : ForEachAsyncState<T>, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\DataFlowAnalyzer.cs (1)
14internal abstract class DataFlowAnalyzer<TBlockAnalysisData> : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (1)
24private abstract class AnalysisData : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\NodeOperations.cs (1)
15internal sealed class NodeOperations : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\EmptyLogBlock.cs (1)
12internal sealed class EmptyLogBlock : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
32private sealed class RoslynLogBlock(ObjectPool<RoslynLogBlock> pool) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (1)
17internal struct PooledObject<T> : IDisposable where T : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
19internal sealed partial class ObjectReader : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.ReaderReferenceMap.cs (1)
16private readonly struct ReaderReferenceMap : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
22internal sealed partial class ObjectWriter : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
22private abstract class Reader<TStringResult> : IDisposable where TStringResult : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
53private sealed class SymbolKeyWriter : SymbolVisitor, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
148private readonly struct WaitThatValidatesInvariants(AsyncLazyImpl<TData> asyncLazy) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
29internal sealed class AsyncPriorityWorkQueue<TItem> : IDisposable where TItem : notnull
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
32internal readonly struct EditDistance(string text) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
244public readonly struct SemaphoreDisposer(NonReentrantLock semaphore) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
58internal sealed class ReferenceCountedDisposable<T> : IReferenceCountedDisposable<T>, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
69private sealed class Entry(ReferenceCountedDisposableCache<TKey, TValue> cache, TKey key, TValue value) : IDisposable, ICacheEntry<TKey, TValue>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
10internal struct WordSimilarityChecker : IDisposable
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
932CancellationToken cancellationToken) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Progress\CodeAnalysisProgressExtensions.cs (1)
30public readonly struct ItemCompletedDisposer(IProgress<CodeAnalysisProgress> progress) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
21TAccessorDeclarationSyntax> : ISemanticModelReuseLanguageService, IDisposable
Microsoft.CodeAnalysis.CSharp (6)
Compiler\MethodCompiler.cs (1)
2469private struct ChangeSuppression : IDisposable
Parser\AbstractLexer.cs (1)
12internal class AbstractLexer : IDisposable
Parser\LanguageParser.cs (1)
4281private readonly ref struct ParserSyntaxContextResetter : IDisposable
Parser\SyntaxParser.cs (1)
19internal abstract partial class SyntaxParser : IDisposable
Syntax\SyntaxTokenParser.cs (1)
23public sealed class SyntaxTokenParser : IDisposable
Syntax\SyntaxTreeDiagnosticEnumerator.cs (1)
131private struct NodeIterationStack(int capacity) : IDisposable
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\NullableImpactingSpanWalker.cs (1)
21CancellationToken cancellationToken) : CSharpSyntaxWalker(SyntaxWalkerDepth.StructuredTrivia), IDisposable
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\50a3a051b0fef0d6\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
123private sealed class RemoveDiscardHelper : IDisposable
Microsoft.CodeAnalysis.CSharp.Features (2)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (1)
17internal sealed class TypeSyntaxSimplifierWalker : CSharpSyntaxWalker, IDisposable
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\NullableImpactingSpanWalker.cs (1)
21CancellationToken cancellationToken) : CSharpSyntaxWalker(SyntaxWalkerDepth.StructuredTrivia), IDisposable
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\50a3a051b0fef0d6\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
123private sealed class RemoveDiscardHelper : IDisposable
Microsoft.CodeAnalysis.Extensions.Package (4)
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (1)
33internal struct TemporaryArray<T> : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (1)
332public readonly struct Releaser : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
14bool discardLargeInstances = true) : IDisposable
Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
16bool onlyMethodTypeParameters) : SymbolVisitor, IDisposable
Microsoft.CodeAnalysis.Features (25)
CodeLens\CodeLensFindReferenceProgress.cs (1)
28CancellationToken cancellationToken) : IFindReferencesProgress, IDisposable
Completion\CompletionService_GetCompletions.cs (1)
363private sealed class DisplayNameToItemsMap(CompletionService service) : IEnumerable<CompletionItem>, IDisposable
Completion\PatternMatchHelper.cs (1)
19internal sealed class PatternMatchHelper(string pattern) : IDisposable
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionCacheServiceFactory.cs (1)
37AsyncBatchingWorkQueue<Project> workQueue) : IImportCompletionCacheService<TProjectCacheEntry, TMetadataCacheEntry>, IDisposable
Completion\Providers\ImportCompletionProvider\TypeImportCompletionCacheEntry.cs (1)
159public sealed class Builder(SymbolKey assemblySymbolKey, Checksum checksum, string language, string genericTypeSuffix, EditorBrowsableInfo editorBrowsableInfo, ImportCompletionCommitBehavior commitBehavior) : IDisposable
Debugging\DebugInformationReaderProvider.cs (1)
23internal abstract class DebugInformationReaderProvider : IDisposable
EditAndContinue\AbstractEditAndContinueAnalyzer.ActiveMembersBuilder.cs (1)
22private readonly struct ActiveMembersBuilder(AbstractEditAndContinueAnalyzer analyzer, DocumentSemanticModel oldModel, DocumentSemanticModel newModel, CancellationToken cancellationToken) : IDisposable
EditAndContinue\DebuggingSession.cs (1)
32internal sealed class DebuggingSession : IDisposable
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
21internal sealed class PdbMatchingSourceTextProvider : IPdbMatchingSourceTextProvider, IDisposable
EditAndContinue\ProjectDifferences.cs (1)
13internal sealed class ProjectDifferences() : IDisposable
EditAndContinue\Remote\DebuggingSessionProxy.cs (1)
15internal sealed class DebuggingSessionProxy(SolutionServices services, IDisposable? connection, DebuggingSessionId sessionId) : IActiveStatementSpanFactory, IDisposable
EditAndContinue\Remote\RemoteEditAndContinueServiceProxy.cs (1)
191private sealed class LocalConnection : IDisposable
EditAndContinue\RudeEditDiagnosticsBuilder.cs (1)
12internal readonly struct RudeEditDiagnosticsBuilder : IDisposable
ExternalAccess\UnitTesting\Notification\AbstractGlobalOperationNotificationService.cs (1)
16internal abstract partial class AbstractGlobalOperationNotificationService : IGlobalOperationNotificationService, IDisposable
ExternalAccess\UnitTesting\Notification\AbstractGlobalOperationNotificationService.GlobalOperationRegistration.cs (1)
11private sealed class GlobalOperationRegistration(AbstractGlobalOperationNotificationService service) : IDisposable
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerProgressReporter.cs (1)
79private readonly struct UnitTestingProgressStatusRAII : IDisposable
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncWorkItemQueue.cs (1)
19private abstract class UnitTestingAsyncWorkItemQueue<TKey>(UnitTestingSolutionCrawlerProgressReporter progressReporter) : IDisposable
MetadataAsSource\TelemetryMessage.cs (1)
12internal sealed class TelemetryMessage : IDisposable
PdbSourceDocument\DocumentDebugInfoReader.cs (1)
19internal sealed class DocumentDebugInfoReader : IDisposable
QuickInfo\Presentation\TaggedTextExtensions.cs (1)
112private struct TextElementBuilder : IDisposable
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
22HashCodeAnalyzer analyzer, IMethodSymbol method, ILocalSymbol? hashCodeVariable) : IDisposable
src\roslyn\src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractObjectCreationExpressionAnalyzer.cs (1)
22TAnalyzer> : IDisposable
src\roslyn\src\Analyzers\Core\Analyzers\UseObjectInitializer\UseNamedMemberInitializerAnalyzer.cs (1)
31TAnalyzer>, IDisposable
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
932CancellationToken cancellationToken) : IDisposable
Structure\BlockStructureContext.cs (1)
12internal readonly struct BlockStructureContext(SyntaxTree syntaxTree, BlockStructureOptions options, CancellationToken cancellationToken) : IDisposable
Microsoft.CodeAnalysis.NetAnalyzers (10)
src\9382845807600969\PerEntityPredicatedAnalysisData.cs (1)
17protected sealed class PerEntityPredicatedAnalysisData : IDisposable
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (1)
16internal sealed partial class ArrayBuilder<T> : IReadOnlyList<T>, IDisposable
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
17internal sealed class PooledConcurrentDictionary<K, V> : ConcurrentDictionary<K, V>, IDisposable
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
18internal sealed class PooledConcurrentSet<T> : ICollection<T>, IDisposable
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
17internal sealed class PooledDictionary<K, V> : Dictionary<K, V>, IDisposable
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\PooledHashSet.cs (1)
16internal sealed class PooledHashSet<T> : HashSet<T>, IDisposable
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
18internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\TrackedEntitiesBuilder.cs (1)
15internal sealed class TrackedEntitiesBuilder : IDisposable
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractAnalysisData.cs (1)
8public abstract class AbstractAnalysisData : IDisposable
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysisResultBuilder.cs (1)
17internal sealed class DataFlowAnalysisResultBuilder<TAnalysisData> : IDisposable
Microsoft.CodeAnalysis.Razor.Compiler (16)
Language\CodeGeneration\CodeRenderingContext.cs (1)
12public sealed class CodeRenderingContext : IDisposable
Language\CodeGeneration\CodeWriter.cs (1)
16public sealed partial class CodeWriter : IDisposable
Language\CodeGeneration\CodeWriterExtensions.cs (1)
987public struct CSharpCodeWritingScope : IDisposable
Language\Components\ScopeStack.Entry.cs (1)
12private sealed class Entry : IDisposable
Language\Legacy\ErrorSink.cs (1)
13internal sealed class ErrorSink : IDisposable
Language\Legacy\LegacySyntaxNodeExtensions.ChildSyntaxListReversedEnumeratorStack.cs (1)
18private partial struct ChildSyntaxListReversedEnumeratorStack : IDisposable
Language\Legacy\ParserContext.cs (1)
11internal sealed partial class ParserContext : IDisposable
Language\Legacy\Tokenizer.cs (2)
12internal abstract class Tokenizer : IDisposable 422private struct LookaheadToken : IDisposable
Language\Legacy\TokenizerBackedParser.cs (1)
13internal abstract class TokenizerBackedParser<TTokenizer> : ParserBase, IDisposable
Language\Legacy\TokenizerView.cs (1)
11internal class TokenizerView<TTokenizer> : IDisposable
Language\Syntax\InternalSyntax\SyntaxListPool.cs (1)
83public readonly struct PooledResult<TNode> : IDisposable where TNode : GreenNode
Language\Syntax\SyntaxNode.Iterators.cs (1)
72private struct ChildSyntaxListEnumeratorStack : IDisposable
Language\TagHelperCollection.Builder.cs (1)
14public sealed partial class Builder : ICollection<TagHelperDescriptor>, IReadOnlyList<TagHelperDescriptor>, IDisposable
Language\TagHelperCollection.Enumerator.cs (1)
12public struct Enumerator(TagHelperCollection collection) : IDisposable
Language\TagHelperDescriptorBuilder.PooledBuilder.cs (1)
12public struct PooledBuilder : IDisposable
Microsoft.CodeAnalysis.ResxSourceGenerator (35)
src\60c94c676d650713\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
16bool onlyMethodTypeParameters) : SymbolVisitor, IDisposable
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
19private sealed class BasicBlockAnalysisData : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReaderWriterLockSlimExtensions.cs (3)
19internal readonly struct ReadLockExiter : IDisposable 41internal readonly struct UpgradeableReadLockExiter : IDisposable 73internal readonly struct WriteLockExiter : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
35internal struct SemaphoreDisposer : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
18internal readonly struct SpecializedSyncContext : IDisposable
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (1)
33internal struct TemporaryArray<T> : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (1)
332public readonly struct Releaser : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
14bool discardLargeInstances = true) : IDisposable
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
29internal class AsyncBatchingWorkQueue<TItem, TResult> : IDisposable
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
26internal sealed class CancellationSeries : IDisposable
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (2)
579private sealed class SyncForEachAsyncState<TSource> : ForEachAsyncState<TSource>, IDisposable 631private sealed class ForEachState<T> : ForEachAsyncState<T>, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
19internal sealed class PooledConcurrentDictionary<K, V> : ConcurrentDictionary<K, V>, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
19internal sealed class PooledConcurrentSet<T> : ICollection<T>, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
20internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\DataFlowAnalyzer.cs (1)
14internal abstract class DataFlowAnalyzer<TBlockAnalysisData> : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (1)
24private abstract class AnalysisData : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\NodeOperations.cs (1)
15internal sealed class NodeOperations : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\EmptyLogBlock.cs (1)
12internal sealed class EmptyLogBlock : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
32private sealed class RoslynLogBlock(ObjectPool<RoslynLogBlock> pool) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (1)
17internal struct PooledObject<T> : IDisposable where T : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
19internal sealed partial class ObjectReader : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.ReaderReferenceMap.cs (1)
16private readonly struct ReaderReferenceMap : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
22internal sealed partial class ObjectWriter : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
22private abstract class Reader<TStringResult> : IDisposable where TStringResult : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
53private sealed class SymbolKeyWriter : SymbolVisitor, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
148private readonly struct WaitThatValidatesInvariants(AsyncLazyImpl<TData> asyncLazy) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
29internal sealed class AsyncPriorityWorkQueue<TItem> : IDisposable where TItem : notnull
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
32internal readonly struct EditDistance(string text) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
244public readonly struct SemaphoreDisposer(NonReentrantLock semaphore) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
58internal sealed class ReferenceCountedDisposable<T> : IReferenceCountedDisposable<T>, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
69private sealed class Entry(ReferenceCountedDisposableCache<TKey, TValue> cache, TKey key, TValue value) : IDisposable, ICacheEntry<TKey, TValue>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
10internal struct WordSimilarityChecker : IDisposable
Microsoft.CodeAnalysis.Scripting (3)
Hosting\AssemblyLoader\AssemblyLoaderImpl.cs (1)
11internal abstract class AssemblyLoaderImpl(InteractiveAssemblyLoader loader) : IDisposable
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (1)
25public sealed partial class InteractiveAssemblyLoader : IDisposable
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
21public sealed class MetadataShadowCopyProvider : IDisposable
Microsoft.CodeAnalysis.Workspaces (56)
ExternalAccess\Pythia\Api\PythiaEditDistanceWrapper.cs (1)
10internal readonly struct PythiaEditDistanceWrapper(string str) : IDisposable
ExternalAccess\UnitTesting\Api\UnitTestingWorkspaceExtensions.cs (1)
17private sealed class EventHandlerWrapper : IDisposable
ExternalAccess\VSTypeScript\Api\VSTypeScriptAsyncToken.cs (1)
10internal sealed class VSTypeScriptAsyncToken(IAsyncToken underlyingObject) : IDisposable
FindSymbols\SearchQuery.cs (1)
10internal struct SearchQuery : IDisposable
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (1)
251Checksum checksum, Metadata? metadata) : IDisposable
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (1)
21internal sealed partial class SymbolTreeInfoCacheService : ISymbolTreeInfoCacheService, IDisposable
Log\RoslynEventSource.LogBlock.cs (1)
39internal struct LogBlock : IDisposable
PatternMatching\PatternMatcher.cs (1)
23internal abstract partial class PatternMatcher : IDisposable
PatternMatching\PatternMatcher.PatternSegment.cs (1)
18private struct PatternSegment(string text) : IDisposable
PatternMatching\PatternMatcher.TextChunk.cs (1)
21private struct TextChunk : IDisposable
Remote\IRemoteKeepAliveService.cs (1)
37internal sealed class RemoteKeepAliveSession : IDisposable
Remote\RemoteHostClient.cs (1)
18internal abstract class RemoteHostClient : IDisposable
Remote\RemoteServiceCallbackDispatcher.cs (1)
19internal readonly struct Handle(ConcurrentDictionary<RemoteServiceCallbackId, object> callbackInstances, RemoteServiceCallbackId callbackId) : IDisposable
Remote\RemoteServiceConnection.cs (1)
15internal abstract class RemoteServiceConnection<TService> : IDisposable
Shared\Extensions\SafeHandleLease.cs (1)
15internal readonly struct SafeHandleLease : IDisposable
src\60c94c676d650713\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
16bool onlyMethodTypeParameters) : SymbolVisitor, IDisposable
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
19private sealed class BasicBlockAnalysisData : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReaderWriterLockSlimExtensions.cs (3)
19internal readonly struct ReadLockExiter : IDisposable 41internal readonly struct UpgradeableReadLockExiter : IDisposable 73internal readonly struct WriteLockExiter : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
35internal struct SemaphoreDisposer : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
18internal readonly struct SpecializedSyncContext : IDisposable
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (1)
33internal struct TemporaryArray<T> : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (1)
332public readonly struct Releaser : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
14bool discardLargeInstances = true) : IDisposable
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
29internal class AsyncBatchingWorkQueue<TItem, TResult> : IDisposable
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
26internal sealed class CancellationSeries : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\DataFlowAnalyzer.cs (1)
14internal abstract class DataFlowAnalyzer<TBlockAnalysisData> : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (1)
24private abstract class AnalysisData : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\NodeOperations.cs (1)
15internal sealed class NodeOperations : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\EmptyLogBlock.cs (1)
12internal sealed class EmptyLogBlock : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
32private sealed class RoslynLogBlock(ObjectPool<RoslynLogBlock> pool) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (1)
17internal struct PooledObject<T> : IDisposable where T : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
19internal sealed partial class ObjectReader : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.ReaderReferenceMap.cs (1)
16private readonly struct ReaderReferenceMap : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
22internal sealed partial class ObjectWriter : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
22private abstract class Reader<TStringResult> : IDisposable where TStringResult : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
53private sealed class SymbolKeyWriter : SymbolVisitor, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
148private readonly struct WaitThatValidatesInvariants(AsyncLazyImpl<TData> asyncLazy) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
29internal sealed class AsyncPriorityWorkQueue<TItem> : IDisposable where TItem : notnull
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
32internal readonly struct EditDistance(string text) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
244public readonly struct SemaphoreDisposer(NonReentrantLock semaphore) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
58internal sealed class ReferenceCountedDisposable<T> : IReferenceCountedDisposable<T>, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
69private sealed class Entry(ReferenceCountedDisposableCache<TKey, TValue> cache, TKey key, TValue value) : IDisposable, ICacheEntry<TKey, TValue>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
10internal struct WordSimilarityChecker : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Progress\CodeAnalysisProgressExtensions.cs (1)
30public readonly struct ItemCompletedDisposer(IProgress<CodeAnalysisProgress> progress) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
21TAccessorDeclarationSyntax> : ISemanticModelReuseLanguageService, IDisposable
Utilities\FlowControlHelper.cs (1)
15public readonly struct AsyncFlowControlHelper(AsyncFlowControl asyncFlowControl) : IDisposable
Workspace\Host\HostLanguageServices.cs (1)
22public abstract class HostLanguageServices : IDisposable
Workspace\Host\HostWorkspaceServices.cs (1)
45public abstract class HostWorkspaceServices : IDisposable
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
507public sealed class BatchScope : IDisposable, IAsyncDisposable
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
24internal sealed partial class ProjectSystemProjectFactory : IDisposable
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (1)
14internal class ProjectSystemProjectOptionsProcessor : IDisposable
Workspace\ProjectSystem\ReferenceFileChangeTracker.cs (1)
21internal sealed class ReferenceFileChangeTracker : IDisposable
Workspace\Workspace.cs (1)
37public abstract partial class Workspace : IDisposable
Workspace\WorkspaceEventRegistration.cs (1)
17public sealed class WorkspaceEventRegistration : IDisposable
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
Build\ProjectBuildManager.cs (1)
20internal sealed class ProjectBuildManager : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReaderWriterLockSlimExtensions.cs (3)
19internal readonly struct ReadLockExiter : IDisposable 41internal readonly struct UpgradeableReadLockExiter : IDisposable 73internal readonly struct WriteLockExiter : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
35internal struct SemaphoreDisposer : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
18internal readonly struct SpecializedSyncContext : IDisposable
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\ComInterop\ComEventSinksContainer.cs (1)
17internal sealed class ComEventSinksContainer : List<ComEventsSink>, IDisposable
Microsoft.Data.Analysis (1)
TextFieldParser.cs (1)
119internal class TextFieldParser : IDisposable
Microsoft.Data.Analysis.Tests (2)
src\Microsoft.Data.Analysis\TextFieldParser.cs (1)
119internal class TextFieldParser : IDisposable
test\Microsoft.ML.TestFramework\BaseTestClass.cs (1)
21public class BaseTestClass : IDisposable
Microsoft.Diagnostics.DataContractReader.Legacy (1)
NativeStringHolder.cs (1)
15internal sealed class NativeStringHolder : IDisposable
Microsoft.Diagnostics.NETCore.Client (5)
DiagnosticsClient\EventPipeSession.cs (1)
14public class EventPipeSession : IDisposable
DiagnosticsIpc\IpcResponse.cs (1)
9internal struct IpcResponse : IDisposable
DiagnosticsIpc\IpcServerTransport.cs (1)
15internal abstract class IpcServerTransport : IDisposable
DiagnosticsServerRouter\DiagnosticsServerRouterFactory.cs (1)
1440internal class Router : IDisposable
HandleableCollection.cs (1)
17internal class HandleableCollection<T> : IEnumerable<T>, IDisposable
Microsoft.DiaSymReader (1)
Writer\SymUnmanagedWriter.cs (1)
14public abstract class SymUnmanagedWriter : IDisposable
Microsoft.DotNet.Build.Tasks.Installers (5)
src\ArReader.cs (1)
16public sealed class ArReader(Stream stream, bool leaveOpen) : IDisposable
src\ArWriter.cs (1)
13internal sealed class ArWriter : IDisposable
src\CpioReader.cs (1)
17internal sealed class CpioReader(Stream stream, bool leaveOpen) : IDisposable
src\CpioWriter.cs (1)
17internal sealed class CpioWriter(Stream stream, bool leaveOpen) : IDisposable
src\RpmPackage.cs (1)
15public sealed class RpmPackage(RpmLead lead, RpmHeader<RpmSignatureTag> signature, RpmHeader<RpmHeaderTag> header, MemoryStream archiveStream) : IDisposable
Microsoft.DotNet.Cli.Utils (2)
MSBuildForwardingAppWithoutLogging.cs (1)
255private sealed class EnvironmentVariableRestorer(Dictionary<string, string?> savedEnvironmentVariables) : IDisposable
ProcessReaper.cs (1)
31internal class ProcessReaper : IDisposable
Microsoft.DotNet.HotReload.Utils.Generator (1)
Util\FSWGen.cs (1)
12public class FSWGen : IDisposable {
Microsoft.DotNet.HotReload.Watch (21)
Browser\BrowserRefreshServerFactory.cs (1)
19internal sealed class BrowserRefreshServerFactory : IDisposable
Build\BuildReporter.cs (1)
38public sealed class Loggers(ILogger logger, string? binLogPath) : IEnumerable<IMSBuildLogger>, IDisposable
Context\DotNetWatchContext.cs (1)
9internal sealed class DotNetWatchContext : IDisposable
FileWatcher\DirectoryWatcher.cs (1)
11internal abstract class DirectoryWatcher(string watchedDirectory, ImmutableHashSet<string> watchedFileNames, bool includeSubdirectories) : IDisposable
FileWatcher\FileWatcher.cs (1)
10internal class FileWatcher(ILogger logger, EnvironmentOptions environmentOptions) : IDisposable
HotReload\ManagedCodeWorkspace.cs (1)
13internal sealed class ManagedCodeWorkspace : IDisposable
Process\ProcessRunner.cs (1)
13private sealed class ProcessState(Process process) : IDisposable
src\sdk\src\Dotnet.Watch\AspireService\Helpers\SocketConnectionManager.cs (1)
20internal class SocketConnectionManager : IDisposable
src\sdk\src\Dotnet.Watch\AspireService\Helpers\WebSocketConnection.cs (1)
16internal sealed class WebSocketConnection(WebSocket socket, TaskCompletionSource tcs, string dcpId, CancellationToken httpRequestAborted) : IDisposable
src\sdk\src\Dotnet.Watch\HotReloadClient\ClientTransport.cs (1)
18internal abstract class ClientTransport : IDisposable
src\sdk\src\Dotnet.Watch\HotReloadClient\ClientTransportResponse.cs (1)
17internal readonly struct ClientTransportResponse(ResponseType type, Stream data, bool disposeStream) : IDisposable
src\sdk\src\Dotnet.Watch\HotReloadClient\HotReloadClient.cs (1)
16internal abstract class HotReloadClient(ILogger logger, ILogger agentLogger) : IDisposable
src\sdk\src\Dotnet.Watch\HotReloadClient\HotReloadClients.cs (1)
35bool useRefreshServerToApplyStaticAssets) : IDisposable
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\AbstractBrowserRefreshServer.cs (1)
29Func<int, ILogger> connectionAgentLoggerFactory) : IDisposable
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\BrowserConnection.cs (1)
18internal readonly struct BrowserConnection(WebSocket clientSocket, string? sharedSecret, int id, ILogger serverLogger, ILogger agentLogger) : IDisposable
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\KestrelWebSocketServer.cs (1)
29internal sealed class KestrelWebSocketServer(IHost host, ImmutableArray<string> serverUrls) : IDisposable
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\SharedSecretProvider.cs (1)
12internal sealed class SharedSecretProvider : IDisposable
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\WebServerHost.cs (1)
11internal sealed class WebServerHost(IDisposable listener, ImmutableArray<string> endPoints, string virtualDirectory) : IDisposable
src\sdk\src\Dotnet.Watch\HotReloadClient\WebSocketClientTransport.cs (1)
84private sealed class RequestHandler(ILogger logger) : IDisposable
UI\BuildParametersSelectionPrompt.cs (1)
10internal abstract class BuildParametersSelectionPrompt : IDisposable
UI\ShutdownHandler.cs (1)
8internal sealed class ShutdownHandler : IDisposable
Microsoft.DotNet.HotReload.WebAssembly.Browser (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (1)
21internal sealed class HotReloadAgent : IDisposable, IHotReloadAgent
Microsoft.Extensions.AI.Integration.Tests (6)
ChatClientIntegrationTests.cs (1)
34public abstract class ChatClientIntegrationTests : IDisposable
EmbeddingGeneratorIntegrationTests.cs (1)
27public abstract class EmbeddingGeneratorIntegrationTests : IDisposable
ImageGeneratingChatClientIntegrationTests.cs (1)
21public abstract class ImageGeneratingChatClientIntegrationTests : IDisposable
ImageGeneratorIntegrationTests.cs (1)
14public abstract class ImageGeneratorIntegrationTests : IDisposable
SpeechToTextClientIntegrationTests.cs (1)
15public abstract class SpeechToTextClientIntegrationTests : IDisposable
TextToSpeechClientIntegrationTests.cs (1)
14public abstract class TextToSpeechClientIntegrationTests : IDisposable
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIHostedFileClientIntegrationTests.cs (1)
17public sealed class OpenAIHostedFileClientIntegrationTests : IDisposable
Microsoft.Extensions.AI.Templates.Tests (1)
TemplateExecutionTestBase.cs (1)
16public abstract class TemplateExecutionTestBase<TConfiguration> : IClassFixture<TemplateExecutionTestBase<TConfiguration>.TemplateExecutionTestFixture>, IDisposable
Microsoft.Extensions.AI.Tests (2)
Functions\AIFunctionFactoryTest.cs (2)
1326private class DisposableService : IDisposable 1347private class DisposableAndAsyncDisposableService : IDisposable, IAsyncDisposable
Microsoft.Extensions.Caching.Hybrid (1)
Internal\RecyclableArrayBufferWriter.cs (1)
15internal sealed class RecyclableArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.Extensions.Caching.Hybrid.Tests (1)
RedisFixture.cs (1)
8public sealed class RedisFixture : IDisposable
Microsoft.Extensions.Caching.StackExchangeRedis (1)
RedisCache.cs (1)
24public partial class RedisCache : IBufferDistributedCache, IDisposable
Microsoft.Extensions.Configuration (6)
ChainedConfigurationProvider.cs (1)
13public class ChainedConfigurationProvider : IConfigurationProvider, IDisposable
ConfigurationManager.cs (1)
25public sealed class ConfigurationManager : IConfigurationManager, IConfigurationRoot, IDisposable
ConfigurationRoot.cs (1)
17public class ConfigurationRoot : IConfigurationRoot, IDisposable
ReferenceCountedProviders.cs (1)
12internal abstract class ReferenceCountedProviders : IDisposable
ReferenceCountedProvidersManager.cs (1)
12internal sealed class ReferenceCountedProviderManager : IDisposable
src\runtime\src\libraries\Common\src\Extensions\EmptyDisposable.cs (1)
8internal sealed class EmptyDisposable : IDisposable
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationProvider.cs (1)
19public abstract class FileConfigurationProvider : ConfigurationProvider, IDisposable
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationProvider.cs (1)
15public class KeyPerFileConfigurationProvider : ConfigurationProvider, IDisposable
Microsoft.Extensions.DataIngestion (1)
IngestionPipeline.cs (1)
25public sealed class IngestionPipeline<T> : IDisposable
Microsoft.Extensions.DataIngestion.Abstractions (1)
IngestionChunkWriter.cs (1)
15public abstract class IngestionChunkWriter<T> : IDisposable
Microsoft.Extensions.DataIngestion.Tests (2)
IngestionPipelineTests.cs (1)
23public sealed class IngestionPipelineTests : IDisposable
Writers\SqliteVectorStoreWriterTests.cs (1)
11public sealed class SqliteVectorStoreWriterTests : VectorStoreWriterTests, IDisposable
Microsoft.Extensions.DependencyInjection (1)
ServiceProvider.cs (1)
20public sealed class ServiceProvider : IServiceProvider, IKeyedServiceProvider, IDisposable, IAsyncDisposable
Microsoft.Extensions.Diagnostics (4)
Metrics\DebugConsoleMetricListener.cs (1)
13internal sealed class DebugConsoleMetricListener : IMetricsListener, IDisposable
Metrics\ListenerSubscription.cs (1)
11internal sealed class ListenerSubscription : IObservableInstrumentsSource, IDisposable
Metrics\MetricsSubscriptionManager.cs (1)
12internal sealed class MetricsSubscriptionManager : IDisposable
Tracing\DefaultActivitySourceFactory.cs (1)
189private sealed class ActivityListenerRegistration : IDisposable
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
MockHostApplicationLifetime.cs (1)
10internal class MockHostApplicationLifetime : IHostApplicationLifetime, IDisposable
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (1)
ResourceUtilizationHealthCheck.cs (1)
19internal sealed partial class ResourceUtilizationHealthCheck : IHealthCheck, IDisposable
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\BufferWriterPool\ReturnableBufferWriter.cs (1)
18internal readonly struct ReturnableBufferWriter<T> : IDisposable
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes.Tests (1)
TestKubernetesEnvironmentSetup.cs (1)
10internal class TestKubernetesEnvironmentSetup : IDisposable
Microsoft.Extensions.Diagnostics.Testing (1)
Metrics\MetricCollector.cs (1)
21public sealed class MetricCollector<T> : IDisposable
Microsoft.Extensions.DotNetDeltaApplier (3)
src\sdk\src\Dotnet.Watch\HotReloadAgent.Host\Transport.cs (2)
13internal abstract class Transport(Action<string> log) : IDisposable 15public readonly struct RequestStream(Stream? stream, bool disposeOnCompletion) : IDisposable
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (1)
21internal sealed class HotReloadAgent : IDisposable, IHotReloadAgent
Microsoft.Extensions.FileProviders.Abstractions (1)
src\runtime\src\libraries\Common\src\Extensions\EmptyDisposable.cs (1)
8internal sealed class EmptyDisposable : IDisposable
Microsoft.Extensions.FileProviders.Physical (4)
PhysicalFileProvider.cs (1)
23public class PhysicalFileProvider : IFileProvider, IDisposable
PhysicalFilesWatcher.cs (2)
25public class PhysicalFilesWatcher : IDisposable 898private sealed class PendingCreationWatcher : IDisposable
src\runtime\src\libraries\Common\src\Extensions\EmptyDisposable.cs (1)
8internal sealed class EmptyDisposable : IDisposable
Microsoft.Extensions.Hosting (1)
Internal\ConsoleLifetime.cs (1)
21public partial class ConsoleLifetime : IHostLifetime, IDisposable
Microsoft.Extensions.Hosting.Abstractions (1)
BackgroundService.cs (1)
13public abstract class BackgroundService : IHostedService, IDisposable
Microsoft.Extensions.Hosting.Systemd (1)
SystemdLifetime.cs (1)
20public partial class SystemdLifetime : IHostLifetime, IDisposable
Microsoft.Extensions.Http.Diagnostics (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\BufferWriterPool\ReturnableBufferWriter.cs (1)
18internal readonly struct ReturnableBufferWriter<T> : IDisposable
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Telemetry\HttpDependencyMetadataResolverTests.cs (1)
12public class HttpDependencyMetadataResolverTests : IDisposable
Microsoft.Extensions.Http.Resilience (2)
Internal\RequestMessageSnapshot.cs (1)
13internal sealed class RequestMessageSnapshot : IResettable, IDisposable
Routing\Internal\RequestRoutingStrategy.cs (1)
15internal abstract class RequestRoutingStrategy : IResettable, IDisposable
Microsoft.Extensions.Http.Resilience.Tests (2)
Hedging\HedgingTests.cs (1)
27public abstract class HedgingTests<TBuilder> : IDisposable
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
23public sealed partial class HttpClientBuilderExtensionsTests : IDisposable
Microsoft.Extensions.Identity.Core (3)
RoleManager.cs (1)
21public class RoleManager<TRole> : IDisposable where TRole : class
UserManager.cs (1)
28public class UserManager<TUser> : IDisposable where TUser : class
UserManagerMetrics.cs (1)
15internal sealed class UserManagerMetrics : IDisposable
Microsoft.Extensions.Logging (3)
Logger.cs (1)
273private sealed class Scope : IDisposable
LoggerFactoryScopeProvider.cs (1)
100private sealed class Scope : IDisposable
src\runtime\src\libraries\Common\src\Extensions\Logging\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
Microsoft.Extensions.Logging.Abstractions (3)
LoggerExternalScopeProvider.cs (1)
47private sealed class Scope : IDisposable
NullScopeObsolete.cs (1)
14public class NullScope : IDisposable
src\runtime\src\libraries\Common\src\Extensions\Logging\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
Microsoft.Extensions.Logging.Console (8)
ConsoleLoggerExtensions.Obsolete.cs (1)
165private sealed class NullChangeToken : IChangeToken, IDisposable
ConsoleLoggerProcessor.cs (1)
15internal class ConsoleLoggerProcessor : IDisposable
JsonConsoleFormatter.cs (1)
17internal sealed class JsonConsoleFormatter : ConsoleFormatter, IDisposable
SimpleConsoleFormatter.cs (1)
13internal sealed class SimpleConsoleFormatter : ConsoleFormatter, IDisposable
src\runtime\src\libraries\Common\src\Extensions\Logging\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
22internal struct ArrayBuffer : IDisposable
src\runtime\src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
13internal sealed class PooledByteBufferWriter : PipeWriter, IDisposable
SystemdConsoleFormatter.cs (1)
13internal sealed class SystemdConsoleFormatter : ConsoleFormatter, IDisposable
Microsoft.Extensions.Logging.Debug (1)
src\runtime\src\libraries\Common\src\Extensions\Logging\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
Microsoft.Extensions.Logging.EventLog (1)
src\runtime\src\libraries\Common\src\Extensions\Logging\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
Microsoft.Extensions.Logging.EventSource (2)
EventSourceLogger.cs (1)
213private sealed class ActivityScope : IDisposable
src\runtime\src\libraries\Common\src\Extensions\Logging\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
Microsoft.Extensions.Logging.MSBuild (1)
MSBuildLogger.cs (1)
272private sealed class DummyDisposable : IDisposable
Microsoft.Extensions.Logging.TraceSource (1)
TraceSourceScope.cs (1)
12internal sealed class TraceSourceScope : IDisposable
Microsoft.Extensions.ML (4)
ModelLoaders\FileModelLoader.cs (1)
16internal class FileModelLoader : ModelLoader, IDisposable
ModelLoaders\UriModelLoader.cs (1)
18internal class UriModelLoader : ModelLoader, IDisposable
PoolLoader.cs (1)
19internal class PoolLoader<TData, TPrediction> : IDisposable
PredictionEnginePool.cs (1)
18public class PredictionEnginePool<TData, TPrediction> : IDisposable
Microsoft.Extensions.ML.Tests (1)
PredictionEnginePoolTests.cs (1)
147private sealed class DisposeCountingTransformer : ITransformer, IDisposable
Microsoft.Extensions.ObjectPool (2)
DisposableObjectPool.cs (1)
9internal sealed class DisposableObjectPool<T> : DefaultObjectPool<T>, IDisposable where T : class
LeakTrackingObjectPool.cs (1)
58private sealed class Tracker : IDisposable
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (2)
TestResources\Pooled.cs (1)
8public sealed class Pooled<TService> : IDisposable
TestResources\TestClass.cs (1)
9public sealed class TestClass : IResettable, IDisposable, ITestClass
Microsoft.Extensions.Options (2)
OptionsMonitor.cs (2)
17IDisposable 130internal sealed class ChangeTrackerDisposable : IDisposable
Microsoft.Extensions.Primitives (3)
ChangeToken.cs (2)
91private abstract class ChangeTokenRegistration<TState>(Func<IChangeToken?> changeTokenProducer, TState state) : IDisposable 167private sealed class NoopDisposable : IDisposable
src\runtime\src\libraries\Common\src\Extensions\EmptyDisposable.cs (1)
8internal sealed class EmptyDisposable : IDisposable
Microsoft.Extensions.ServiceDiscovery.Dns (5)
Resolver\DnsDataReader.cs (1)
10internal struct DnsDataReader : IDisposable
Resolver\DnsResolver.cs (1)
18internal sealed partial class DnsResolver : IDnsResolver, IDisposable
Resolver\DnsResolver.Log.cs (1)
8internal partial class DnsResolver : IDnsResolver, IDisposable
Resolver\DnsResponse.cs (1)
8internal struct DnsResponse : IDisposable
Resolver\EncodedDomainName.cs (1)
9internal struct EncodedDomainName : IEquatable<EncodedDomainName>, IDisposable
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (3)
Resolver\LoopbackDnsServer.cs (1)
13internal sealed class LoopbackDnsServer : IDisposable
Resolver\LoopbackDnsTestBase.cs (1)
16public abstract class LoopbackDnsTestBase : IDisposable
XunitLoggerFactoryExtensions.cs (1)
138private sealed class NullScope : IDisposable
Microsoft.Extensions.Telemetry (4)
Logging\ExtendedLogger.Scope.cs (1)
10private sealed class Scope : IDisposable
Logging\Import\LoggerFactoryScopeProvider.cs (1)
115private sealed class Scope : IDisposable
Logging\Import\NullScope.cs (1)
17internal sealed class NullScope : IDisposable
Sampling\RandomProbabilisticSampler.cs (1)
21internal sealed class RandomProbabilisticSampler : LoggingSampler, IDisposable
Microsoft.Extensions.Telemetry.PerformanceTests (1)
BenchLogger.cs (1)
15private sealed class Disposable : IDisposable
Microsoft.Extensions.VectorData.Abstractions (2)
VectorStore.cs (1)
19public abstract class VectorStore : IDisposable
VectorStoreCollection.cs (1)
23public abstract class VectorStoreCollection<TKey, TRecord> : IVectorSearchable<TRecord>, IDisposable
Microsoft.Gen.Logging.Generated.Tests (1)
Utils.cs (1)
38public class TestLogger : ILogger, IDisposable
Microsoft.Gen.Metrics.Generated.Tests (1)
MetricTests.cs (1)
15public partial class MetricTests : IDisposable
Microsoft.JSInterop (4)
DotNetObjectReferenceOfT.cs (1)
19IDotNetObjectReference, IDisposable where TValue : class
DotNetStreamReference.cs (1)
9public sealed class DotNetStreamReference : IDisposable
JSRuntime.cs (1)
17public abstract partial class JSRuntime : IJSRuntime, IDisposable
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
32internal class ArrayBuilder<T> : IDisposable
Microsoft.Maui (5)
Animations\Animation.cs (1)
12 public class Animation : IDisposable, IEnumerable
Animations\AnimationManager.cs (1)
7 public class AnimationManager : IAnimationManager, IDisposable
Hosting\MauiApp.cs (1)
11 public sealed class MauiApp : IDisposable, IAsyncDisposable
Hosting\MauiAppBuilder.cs (1)
192 private sealed class NullLogger<T> : ILogger<T>, IDisposable
Platform\ActionDisposable.cs (1)
8 class ActionDisposable : IDisposable
Microsoft.Maui.Controls (6)
AnimationExtensions.cs (1)
402 sealed class BatchObject : IDisposable
Performance.cs (1)
63 class DisposablePerformanceReference : IDisposable
Platform\GestureManager\GesturePlatformManager.Standard.cs (1)
5 class GesturePlatformManager : IDisposable
Profiler.cs (1)
13 public struct Profile : IDisposable
TemplatedItemsList.cs (2)
19 public sealed class TemplatedItemsList<TView, [DynamicallyAccessedMembers(BindableProperty.DeclaringTypeMembers | BindableProperty.ReturnTypeMembers)] TItem> : BindableObject, ITemplatedItemsList<TItem>, IList, IDisposable 1226 class ShortNamesProxy : IReadOnlyList<string>, INotifyCollectionChanged, IDisposable
Microsoft.Maui.Controls.BindingSourceGen (1)
BindingCodeWriter.cs (1)
156 public sealed class BindingInterceptorCodeBuilder : IDisposable
Microsoft.Maui.Graphics (6)
AbstractCanvas.cs (1)
9 public abstract class AbstractCanvas<TState> : ICanvas, IDisposable where TState : CanvasState
BitmapExportContext.cs (1)
6 public abstract class BitmapExportContext : IDisposable
CanvasState.cs (1)
6 public class CanvasState : IDisposable
PathF.cs (1)
8 public class PathF : IDisposable
PdfExportContext.cs (1)
7 internal abstract class PdfExportContext : IDisposable
PictureCanvas.cs (1)
9 public class PictureCanvas : ICanvas, IDisposable
Microsoft.Maui.Graphics.Skia (2)
SkiaCanvasStateService.cs (1)
6 public class SkiaCanvasStateService : IDisposable, ICanvasStateService<SkiaCanvasState>
SkiaTextLayout.cs (1)
7 public class SkiaTextLayout : IDisposable
Microsoft.Maui.Resizetizer (3)
SkiaSharpImaginaryTools.cs (1)
6 internal class SkiaSharpImaginaryTools : SkiaSharpTools, IDisposable
SkiaSharpRasterTools.cs (1)
7 internal class SkiaSharpRasterTools : SkiaSharpTools, IDisposable
SkiaSharpSvgTools.cs (1)
8 internal class SkiaSharpSvgTools : SkiaSharpTools, IDisposable
Microsoft.ML.Core (11)
ComponentModel\AssemblyLoadingUtils.cs (1)
262private sealed class AssemblyRegistrar : IDisposable
Data\ModelLoadContext.cs (1)
20internal sealed partial class ModelLoadContext : IDisposable
Data\ModelLoading.cs (1)
20internal sealed partial class ModelLoadContext : IDisposable
Data\ModelSaveContext.cs (1)
21public sealed partial class ModelSaveContext : IDisposable
Data\ModelSaving.cs (1)
12public sealed partial class ModelSaveContext : IDisposable
Data\Repository.cs (2)
43internal abstract class Repository : IDisposable 45public sealed class Entry : IDisposable
Data\ServerChannel.cs (1)
21internal sealed class ServerChannel : ServerChannel.IPendingBundleNotification, IDisposable
Environment\ConsoleEnvironment.cs (1)
435private sealed class OutputRedirector : IDisposable
Utilities\IndentedTextWriterExtensions.cs (1)
13public struct Scope : IDisposable
Utilities\ThreadUtils.cs (1)
177internal sealed class ExceptionMarshaller : IDisposable
Microsoft.ML.Data (19)
Data\SlotCursor.cs (1)
15internal abstract class SlotCursor : IDisposable
DataLoadSave\Binary\BinaryLoader.cs (1)
39internal sealed class BinaryLoader : ILegacyDataLoader, IDisposable
DataLoadSave\Binary\Codecs.cs (2)
21private abstract class ValueWriterBase<T> : IValueWriter<T>, IDisposable 65private abstract class ValueReaderBase<T> : IValueReader<T>, IDisposable
DataLoadSave\CompositeDataLoader.cs (1)
19public sealed class CompositeDataLoader<TSource, TLastTransformer> : IDataLoader<TSource>, IDisposable
DataLoadSave\Text\BlockingQueue.cs (1)
32internal sealed class BlockingQueue<T> : IDisposable
DataLoadSave\Text\TextLoaderCursor.cs (1)
861private sealed class ParallelState : IDisposable
DataLoadSave\TransformerChain.cs (1)
53public sealed class TransformerChain<TLastTransformer> : ITransformer, IEnumerable<ITransformer>, ITransformerChainAccessor, IDisposable
DataView\CompositeRowToRowMapper.cs (1)
17internal sealed class CompositeRowToRowMapper : IRowToRowMapper, IDisposable
DataView\Transposer.cs (1)
24internal sealed class Transposer : ITransposeDataView, IDisposable
Prediction\PredictionEngine.cs (1)
89public abstract class PredictionEngineBase<TSrc, TDst> : IDisposable
Scorers\MulticlassClassificationScorer.cs (1)
68IBindableCanSaveOnnx, IDisposable
Scorers\PredictedLabelScorerBase.cs (1)
20internal abstract class PredictedLabelScorerBase : RowToRowScorerBase, ITransformCanSavePfa, ITransformCanSaveOnnx, IDisposable
Scorers\PredictionTransformer.cs (1)
43public abstract class PredictionTransformerBase<TModel> : IPredictionTransformer<TModel>, IDisposable
Scorers\SchemaBindablePredictorWrapper.cs (2)
35IBindableCanSavePfa, IBindableCanSaveOnnx, IDisposable 197protected sealed class SingleValueRowMapper : ISchemaBoundRowMapper, IDisposable
Training\TrainerUtils.cs (1)
491internal abstract class TrainingCursorBase : IDisposable
Transforms\MetadataDispatcher.cs (1)
378public sealed class Builder : IDisposable
Utilities\TimerScope.cs (1)
16internal sealed class TimerScope : IDisposable
Microsoft.ML.DataView (1)
IDataView.cs (1)
89public abstract class DataViewRow : IDisposable
Microsoft.ML.FastTree (1)
Utils\Timer.cs (1)
225public sealed class TimedEvent : IDisposable
Microsoft.ML.ImageAnalytics (1)
MLImage.cs (1)
20public sealed class MLImage : IDisposable
Microsoft.ML.IntegrationTests (1)
IntegrationTestBaseClass.cs (1)
17public class IntegrationTestBaseClass : IDisposable
Microsoft.ML.LightGbm (2)
WrappedLightGbmBooster.cs (1)
17internal sealed class Booster : IDisposable
WrappedLightGbmDataset.cs (1)
14internal sealed class Dataset : IDisposable
Microsoft.ML.Mkl.Components (2)
SymSgdClassificationTrainer.cs (2)
331private sealed class ArrayManager<T> : IDisposable 528private sealed class InputDataManager : IDisposable
Microsoft.ML.OnnxTransformer (3)
OnnxTransform.cs (2)
42public sealed class OnnxTransformer : RowToRowTransformerBase, IDisposable 662private sealed class OnnxRuntimeOutputCacher : IDisposable
OnnxUtils.cs (1)
26internal sealed class OnnxModel : IDisposable
Microsoft.ML.Parquet (1)
ParquetLoader.cs (1)
34internal sealed class ParquetLoader : ILegacyDataLoader, IDisposable
Microsoft.ML.Recommender (1)
SafeTrainingAndModelBuffer.cs (1)
18internal sealed class SafeTrainingAndModelBuffer : IDisposable
Microsoft.ML.Sweeper (2)
AsyncSweeper.cs (2)
69public partial class SimpleAsyncSweeper : IAsyncSweeper, IDisposable 151public sealed class DeterministicSweeperAsync : IAsyncSweeper, IDisposable
Microsoft.ML.TensorFlow (4)
TensorFlowModel.cs (1)
17public sealed class TensorFlowModel : IDisposable
TensorflowTransform.cs (2)
41public sealed class TensorFlowTransformer : RowToRowTransformerBase, IDisposable 676private class OutputCache : IDisposable
TensorflowUtils.cs (1)
521public class Runner : IDisposable
Microsoft.ML.TensorFlow.Tests (1)
TensorflowTests.cs (1)
27internal sealed class TensorFlowScenariosTestsFixture : IDisposable
Microsoft.ML.TestFramework (1)
BaseTestClass.cs (1)
21public class BaseTestClass : IDisposable
Microsoft.ML.TestFrameworkCommon (1)
Utility\NativeLibrary.cs (1)
11public class NativeLibrary : IDisposable
Microsoft.ML.TorchSharp (6)
AutoFormerV2\ObjectDetectionTrainer.cs (2)
500public class ObjectDetectionTransformer : RowToRowTransformerBase, IDisposable 933private protected class TensorCacher : IDisposable
Roberta\QATrainer.cs (2)
557public class QATransformer : RowToRowTransformerBase, IDisposable 881private protected class TensorCacher : IDisposable
TorchSharpBaseTrainer.cs (2)
369public abstract class TorchSharpBaseTransformer : RowToRowTransformerBase, IDisposable 516private protected abstract class TensorCacher : IDisposable
Microsoft.ML.Transforms (5)
Expression\CodeGen.cs (1)
21internal sealed partial class LambdaCompiler : IDisposable
Expression\MethodGenerator.cs (2)
16internal sealed class MethodGenerator : IDisposable 68public struct Temporary : IDisposable
Text\LdaSingleBox.cs (1)
95internal sealed class LdaSingleBox : IDisposable
Text\LdaTransform.cs (1)
227private sealed class LdaState : IDisposable
Microsoft.ML.Vision (2)
DnnRetrainTransform.cs (1)
40internal sealed class DnnRetrainTransformer : RowToRowTransformerBase, IDisposable
ImageClassificationTrainer.cs (1)
1333public sealed class ImageClassificationModelParameters : ModelParametersBase<VBuffer<float>>, IValueMapper, IDisposable
Microsoft.NET.Build.Containers (2)
Tasks\CreateImageIndex.cs (1)
15public sealed partial class CreateImageIndex : Microsoft.Build.Utilities.Task, ICancelableTask, IDisposable
Tasks\CreateNewImage.cs (1)
13public sealed partial class CreateNewImage : Microsoft.Build.Utilities.Task, ICancelableTask, IDisposable
Microsoft.NET.Build.Extensions.Tasks (1)
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (1)
12internal class ConflictResolver<TConflictItem> : IDisposable where TConflictItem : class, IConflictItem
Microsoft.NET.Build.Tasks (3)
ResolvePackageAssets.cs (2)
515private sealed class CacheReader : IDisposable 689internal sealed class CacheWriter : IDisposable
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (1)
12internal class ConflictResolver<TConflictItem> : IDisposable where TConflictItem : class, IConflictItem
Microsoft.NET.HostModel (2)
MachO\FileUtils\MemoryStreamWriter.cs (1)
14public class MemoryStreamWriter : IMachOFileWriter, IDisposable
ResourceUpdater.cs (1)
16public sealed class ResourceUpdater : IDisposable
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\Http\DefaultHttpClient.cs (1)
9internal class DefaultHttpClient : IHttpClient, IDisposable
Microsoft.NET.Sdk.Razor.Tasks (1)
src\sdk\src\RazorSdk\Tool\Client.cs (1)
14internal abstract class Client : IDisposable
Microsoft.NET.StringTools (4)
SpanBasedStringBuilder.cs (1)
18public class SpanBasedStringBuilder : IDisposable
WeakStringCache.Concurrent.cs (1)
14internal sealed partial class WeakStringCache : IDisposable
WeakStringCache.cs (1)
17internal sealed partial class WeakStringCache : IDisposable
WeakStringCacheInterner.cs (1)
15internal class WeakStringCacheInterner : IDisposable
Microsoft.Private.Windows.Core (22)
System\DisposableBase.cs (1)
9internal abstract class DisposableBase : IDisposable
System\Private\Windows\Ole\DragDropFormat.cs (1)
13internal class DragDropFormat : IDisposable
Windows\Win32\Foundation\BSTR.cs (1)
6internal readonly unsafe partial struct BSTR : IDisposable
Windows\Win32\Graphics\Gdi\BeginPaintScope.cs (1)
18internal class BeginPaintScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\CreateBitmapScope.cs (1)
17internal class CreateBitmapScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\CreateBrushScope.cs (1)
19internal class CreateBrushScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\CreateDcScope.cs (1)
17internal class CreateDcScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\CreatePenScope.cs (1)
18internal class CreatePenScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\HBITMAP.cs (1)
6internal readonly partial struct HBITMAP : IDisposable
Windows\Win32\Graphics\Gdi\HdcHandle.cs (1)
10internal sealed class HdcHandle : IDisposable, IHandle<HDC>
Windows\Win32\Graphics\Gdi\ObjectScope.cs (1)
16internal class ObjectScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\RegionScope.cs (1)
18internal unsafe class RegionScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SelectObjectScope.cs (1)
17internal class SelectObjectScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SelectPaletteScope.cs (1)
16internal class SelectPaletteScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SetBkModeScope.cs (1)
17internal class SetBkModeScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SetMapModeScope.cs (1)
17internal class SetMapModeScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SetRop2Scope.cs (1)
17internal class SetRop2Scope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SetTextAlignmentScope.cs (1)
17internal class SetTextAlignmentScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SetTextColorScope.cs (1)
17internal class SetTextColorScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\System\Com\AgileComPointer.cs (1)
27IDisposable
Windows\Win32\System\Variant\VARIANT.cs (1)
16internal unsafe partial struct VARIANT : IDisposable
Windows\Win32\UI\WindowsAndMessaging\ICONINFO.cs (1)
6internal unsafe partial struct ICONINFO : IDisposable
Microsoft.TemplateEngine.Cli (1)
CliConsoleFormatter.cs (1)
11internal sealed class CliConsoleFormatter : ConsoleFormatter, IDisposable
Microsoft.TemplateEngine.Edge (6)
BuiltInManagedProvider\GlobalSettings.cs (1)
14internal sealed class GlobalSettings : IGlobalSettings, IDisposable
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (1)
11internal class GlobalSettingsTemplatePackageProvider : IManagedTemplatePackageProvider, IDisposable
Settings\AsyncMutex.cs (1)
11internal sealed class AsyncMutex : IDisposable
Settings\ScanResult.cs (1)
12public class ScanResult : IDisposable
Settings\TemplatePackageManager.cs (1)
17public class TemplatePackageManager : IDisposable
TemplateConstraintManager.cs (1)
13public class TemplateConstraintManager : IDisposable
Microsoft.TemplateEngine.IDE (1)
Bootstrapper.cs (1)
22public class Bootstrapper : IDisposable
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (2)
CryptoRandom.cs (1)
8internal class CryptoRandom : IDisposable
RunnableProjectConfig.cs (1)
26internal partial class RunnableProjectConfig : DirectoryBasedTemplate, IRunnableProjectConfig, IDisposable
Microsoft.TemplateEngine.Utils (1)
Timing.cs (1)
9public sealed class Timing : IDisposable
Microsoft.TestPlatform.CommunicationUtilities (1)
DataCollectionRequestHandler.cs (1)
39internal class DataCollectionRequestHandler : IDataCollectionRequestHandler, IDisposable
Microsoft.TestPlatform.CoreUtilities (1)
Utilities\JobQueue.cs (1)
21public class JobQueue<T> : IDisposable
Microsoft.TestPlatform.CrossPlatEngine (4)
Adapter\FrameworkHandle.cs (1)
23internal class FrameworkHandle : TestExecutionRecorder, IFrameworkHandle2, IDisposable
Client\Parallel\ParallelOperationManager.cs (1)
55internal sealed class ParallelOperationManager<TManager, TEventHandler, TWorkload> : IDisposable
Client\Parallel\ParallelProxyDiscoveryManager.cs (1)
22internal sealed class ParallelProxyDiscoveryManager : IParallelProxyDiscoveryManager, IDisposable
Client\Parallel\ParallelProxyExecutionManager.cs (1)
27internal sealed class ParallelProxyExecutionManager : IParallelProxyExecutionManager, IDisposable
Microsoft.TestPlatform.PlatformAbstractions (1)
common\Tracing\RollingFileTraceListener.cs (1)
120internal sealed class StreamWriterRollingHelper : IDisposable
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
VsTestConsoleProcessManager.cs (1)
28internal sealed class VsTestConsoleProcessManager : IProcessManager, IDisposable
Microsoft.VisualBasic.Core (3)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (1)
29Implements IDisposable
Microsoft\VisualBasic\FileIO\TextFieldParser.vb (1)
23Implements IDisposable
Microsoft\VisualBasic\Helpers\ForEachEnum.vb (1)
16Implements IDisposable
Microsoft.VisualStudio.TestPlatform.Common (5)
DataCollection\DataCollectionAttachmentManager.cs (1)
37internal class DataCollectionAttachmentManager : IDataCollectionAttachmentManager, IDisposable
ExtensionDecorators\SerialTestRunDecorator.cs (1)
15internal class SerialTestRunDecorator : ITestExecutor, ITestExecutor2, IDisposable
Interfaces\Engine\IDataCollectorAttachmentsProcessorsFactory.cs (1)
29internal class DataCollectorAttachmentProcessor : IDisposable
Logging\InternalTestLoggerEvents.cs (1)
22internal class InternalTestLoggerEvents : TestLoggerEvents, IDisposable
Utilities\AssemblyResolver.cs (1)
17internal class AssemblyResolver : IDisposable
Microsoft.VisualStudio.TestPlatform.ObjectModel (5)
DataCollector\DataCollector.cs (1)
12public abstract class DataCollector : IDisposable
Navigation\PortablePdbReader.cs (1)
15internal class PortablePdbReader : IDisposable
Nuget.Frameworks\NoAllocEnumerateExtensions.cs (3)
66public struct Enumerator : IDisposable 196public struct Enumerator : IDisposable 338public struct Enumerator : IDisposable
Microsoft.Web.XmlTransform (3)
XmlAttributePreservationProvider.cs (1)
13internal class XmlAttributePreservationProvider : IDisposable
XmlFileInfoDocument.cs (1)
13public class XmlFileInfoDocument : XmlDocument, IDisposable
XmlTransformation.cs (1)
13public class XmlTransformation : IServiceProvider, IDisposable
Microsoft.Win32.Registry (1)
Microsoft\Win32\RegistryKey.cs (1)
42public sealed partial class RegistryKey : MarshalByRefObject, IDisposable
Mono.Cecil (5)
Mono.Cecil.PE\Image.cs (1)
22 sealed class Image : IDisposable {
Mono.Cecil\AssemblyDefinition.cs (1)
18 public sealed class AssemblyDefinition : ICustomAttributeProvider, ISecurityDeclarationProvider, IDisposable {
Mono.Cecil\ModuleDefinition.cs (1)
248 public sealed class ModuleDefinition : ModuleReference, ICustomAttributeProvider, ICustomDebugInformationProvider, IDisposable {
Mono.Collections.Generic\Collection.cs (1)
350 public struct Enumerator : IEnumerator<T>, IDisposable {
Mono\Disposable.cs (1)
28 struct Disposable<T> : IDisposable where T : class, IDisposable {
Mono.Cecil.Mdb (1)
Mono.CompilerServices.SymbolWriter\MonoSymbolFile.cs (1)
116 public class MonoSymbolFile : IDisposable
Mono.Cecil.Pdb (1)
Mono.Cecil.Pdb\NativePdbWriter.cs (1)
285 class CustomMetadataWriter : IDisposable {
MSBuild (3)
AutomaticEncodingRestorer.cs (1)
17public class AutomaticEncodingRestorer : IDisposable
src\msbuild\src\Shared\Debugging\PrintLineDebugger.cs (1)
22internal sealed class PrintLineDebugger : IDisposable
TaskExecutionContext.cs (1)
25internal sealed class TaskExecutionContext : IDisposable
MSBuild.Coordinator (3)
CoordinatorServer.ConnectedClient.cs (1)
17private sealed class ConnectedClient : IDisposable
CoordinatorServer.Connection.cs (1)
17private sealed class Connection : IDisposable
CoordinatorServer.cs (1)
20internal sealed partial class CoordinatorServer(CoordinatorSettings settings, ICoordinatorDebugOutput? output = null) : IDisposable
NuGet.Build.Tasks (4)
LoggingQueue.cs (1)
13public abstract class LoggingQueue<T> : IDisposable
RestoreTask.cs (2)
25public class RestoreTask : Microsoft.Build.Utilities.Task, ICancelableTask, IDisposable 352private sealed class EndOfBuildStaticStateReset : IDisposable
StaticGraphRestoreTaskBase.cs (1)
25public abstract class StaticGraphRestoreTaskBase : Microsoft.Build.Utilities.Task, ICancelableTask, IDisposable
NuGet.Build.Tasks.Console (4)
MSBuildStaticGraphRestore.cs (1)
42internal sealed class MSBuildStaticGraphRestore : IDisposable
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (3)
66public struct Enumerator : IDisposable 196public struct Enumerator : IDisposable 349public struct Enumerator : IDisposable
NuGet.CommandLine.XPlat (4)
Commands\Package\Update\PackageUpdateIO.cs (1)
31internal class PackageUpdateIO : IPackageUpdateIO, IDisposable
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (3)
66public struct Enumerator : IDisposable 196public struct Enumerator : IDisposable 349public struct Enumerator : IDisposable
NuGet.Commands (4)
RestoreCommand\VulnerabilityInformationProvider.cs (1)
15internal sealed class VulnerabilityInformationProvider : IVulnerabilityInformationProvider, IDisposable
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (3)
66public struct Enumerator : IDisposable 196public struct Enumerator : IDisposable 349public struct Enumerator : IDisposable
NuGet.Common (4)
KeyedLock.cs (2)
14internal sealed class KeyedLock : IDisposable 194private sealed class LockState : IDisposable
Telemetry\TelemetryActivity.cs (2)
13public class TelemetryActivity : IDisposable 80private class Interval : IDisposable
NuGet.Configuration (4)
Settings\SettingsLoadingContext.cs (1)
15public sealed class SettingsLoadingContext : IDisposable
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (3)
66public struct Enumerator : IDisposable 196public struct Enumerator : IDisposable 349public struct Enumerator : IDisposable
NuGet.Credentials (1)
DelegatingLogger.cs (1)
14internal class DelegatingLogger : LoggerBase, ILogger, IDisposable
NuGet.DependencyResolver.Core (4)
GraphModel\Tracker.cs (1)
148public struct Enumerator : IEnumerator<GraphItem<TItem>>, IDisposable, IEnumerator
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (3)
66public struct Enumerator : IDisposable 196public struct Enumerator : IDisposable 349public struct Enumerator : IDisposable
NuGet.Frameworks (3)
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (3)
66public struct Enumerator : IDisposable 196public struct Enumerator : IDisposable 349public struct Enumerator : IDisposable
NuGet.LibraryModel (3)
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (3)
66public struct Enumerator : IDisposable 196public struct Enumerator : IDisposable 349public struct Enumerator : IDisposable
NuGet.PackageManagement (4)
PackagePreFetcherResult.cs (1)
17public class PackagePreFetcherResult : IDisposable
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (3)
66public struct Enumerator : IDisposable 196public struct Enumerator : IDisposable 349public struct Enumerator : IDisposable
NuGet.Packaging (12)
PackagesConfigWriter.cs (1)
20public class PackagesConfigWriter : IDisposable
RuntimeModel\JsonObjectWriter.cs (1)
15public sealed class JsonObjectWriter : IObjectWriter, IDisposable
Signing\Authoring\SigningOptions.cs (1)
11public sealed class SigningOptions : IDisposable
Signing\Authoring\SignPackageRequest.cs (1)
14public abstract class SignPackageRequest : IDisposable
Signing\Cms\HeapBlockRetainer.cs (1)
11internal sealed class HeapBlockRetainer : IDisposable
Signing\Cms\NativeCms.cs (1)
14internal class NativeCms : IDisposable
Signing\Content\KeyPairFileReader.cs (1)
12public class KeyPairFileReader : IDisposable
Signing\Content\KeyPairFileWriter.cs (1)
10public class KeyPairFileWriter : IDisposable
Signing\Utility\X509ChainHolder.cs (1)
17public sealed class X509ChainHolder : IDisposable
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (3)
66public struct Enumerator : IDisposable 196public struct Enumerator : IDisposable 349public struct Enumerator : IDisposable
NuGet.ProjectModel (4)
HashObjectWriter.cs (1)
18public sealed class HashObjectWriter : IObjectWriter, IDisposable
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (3)
66public struct Enumerator : IDisposable 196public struct Enumerator : IDisposable 349public struct Enumerator : IDisposable
NuGet.Protocol (20)
DownloadResourceResult.cs (1)
13public sealed class DownloadResourceResult : IDisposable
HttpSource\HttpSource.cs (2)
19public class HttpSource : IDisposable 486private class ThrottledResponse : IDisposable
HttpSource\HttpSourceResult.cs (1)
9public class HttpSourceResult : IDisposable
Plugins\AutomaticProgressReporter.cs (1)
13public sealed class AutomaticProgressReporter : IDisposable
Plugins\InboundRequestContext.cs (1)
13public sealed class InboundRequestContext : IDisposable
Plugins\InboundRequestProcessingHandler.cs (1)
12internal class InboundRequestProcessingHandler : IDisposable
Plugins\OutboundRequestContext.cs (1)
12public abstract class OutboundRequestContext : IDisposable
Plugins\PluginManager.cs (1)
25public sealed class PluginManager : IPluginManager, IDisposable
Plugins\PluginPackageReader.cs (1)
1158private sealed class FileStreamCreator : IDisposable
Plugins\RequestHandlers\CloseRequestHandler.cs (1)
13public sealed class CloseRequestHandler : IRequestHandler, IDisposable
Plugins\RequestHandlers\GetCredentialsRequestHandler.cs (1)
22public sealed class GetCredentialsRequestHandler : IRequestHandler, IDisposable
Plugins\RequestHandlers\GetServiceIndexRequestHandler.cs (1)
18public sealed class GetServiceIndexRequestHandler : IRequestHandler, IDisposable
Plugins\RequestHandlers\MonitorNuGetProcessExitRequestHandler.cs (1)
18public sealed class MonitorNuGetProcessExitRequestHandler : IRequestHandler, IDisposable
Plugins\RequestHandlers\SymmetricHandshake.cs (1)
17public sealed class SymmetricHandshake : IRequestHandler, IDisposable
SourceCacheContext.cs (1)
15public class SourceCacheContext : IDisposable
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (3)
66public struct Enumerator : IDisposable 196public struct Enumerator : IDisposable 349public struct Enumerator : IDisposable
Utility\DedicatedAsynchronousProcessingThread.cs (1)
17internal sealed class DedicatedAsynchronousProcessingThread : IDisposable
NuGet.Resolver (3)
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (3)
66public struct Enumerator : IDisposable 196public struct Enumerator : IDisposable 349public struct Enumerator : IDisposable
NuGet.Versioning (3)
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (3)
66public struct Enumerator : IDisposable 196public struct Enumerator : IDisposable 349public struct Enumerator : IDisposable
PresentationBuildTasks (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Media\StreamGeometryContext.cs (1)
39internal abstract class StreamGeometryContext : IDisposable
PresentationCore (39)
MS\Internal\DpiUtil\DpiUtil+DpiAwarenessScope.cs (1)
19internal class DpiAwarenessScope : IDisposable
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
21internal sealed class NativeRecognizer : IDisposable
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
34internal class ByteRangeDownloader : IDisposable
MS\Internal\MediaTrace.cs (1)
8internal class MediaTrace : IDisposable
MS\Internal\TextFormatting\DrawingState.cs (1)
21internal sealed class DrawingState : IDisposable
MS\Internal\TextFormatting\TextPenaltyModule.cs (1)
14internal sealed class TextPenaltyModule : IDisposable
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\InputPane.cs (1)
23internal class InputPane : IDisposable
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\UISettings.cs (1)
12internal class UISettings : IDisposable
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (1)
55internal struct CompositionEngineLock : IDisposable
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (1)
38internal sealed class EventSourceActivity : IDisposable
System\Windows\Documents\DocumentPage.cs (1)
18public class DocumentPage : IDisposable
System\Windows\FreezableCollection.cs (1)
1094private class SimpleMonitor : IDisposable
System\Windows\Ink\GestureRecognizer.cs (1)
19public sealed class GestureRecognizer : DependencyObject, IDisposable
System\Windows\Input\Cursor.cs (1)
17public sealed class Cursor : IDisposable
System\Windows\Input\InputLanguageSource.cs (1)
27internal sealed class InputLanguageSource : IInputLanguageSource, IDisposable
System\Windows\Input\InputProviderSite.cs (1)
10internal class InputProviderSite : IDisposable
System\Windows\Input\Stylus\Common\DynamicRendererThreadManager.cs (1)
133internal class DynamicRendererThreadManager : IWeakEventListener, IDisposable
System\Windows\Input\Stylus\Common\StylusDeviceBase.cs (1)
19internal abstract class StylusDeviceBase : DispatcherObject, IDisposable
System\Windows\Input\Stylus\Common\TabletDeviceBase.cs (1)
16internal abstract class TabletDeviceBase : DispatcherObject, IDisposable
System\Windows\Input\Stylus\Pointer\PointerInteractionEngine.cs (1)
15internal class PointerInteractionEngine : IDisposable
System\Windows\InterOp\HwndAppCommandInputProvider.cs (1)
12internal sealed class HwndAppCommandInputProvider : DispatcherObject, IInputProvider, IDisposable
System\Windows\InterOp\HwndKeyboardInputProvider.cs (1)
14internal sealed class HwndKeyboardInputProvider : DispatcherObject, IKeyboardInputProvider, IDisposable
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
17internal sealed class HwndMouseInputProvider : DispatcherObject, IMouseInputProvider, IDisposable
System\Windows\InterOp\HwndSource.cs (1)
20public class HwndSource : PresentationSource, IDisposable, IWin32Window, IKeyboardInputSink
System\Windows\InterOp\HwndTarget.cs (1)
2509private class NotificationWindowHelper : IDisposable
System\Windows\Media\CompositionTarget.cs (1)
11public abstract class CompositionTarget : DispatcherObject, IDisposable, ICompositionTarget
System\Windows\Media\DrawingContext.cs (1)
17public abstract partial class DrawingContext : DispatcherObject, IDisposable
System\Windows\Media\FactoryMaker.cs (1)
16internal class FactoryMaker: IDisposable
System\Windows\Media\FormattedText.cs (1)
858private struct LineEnumerator : IEnumerator, IDisposable
System\Windows\Media\Generated\DrawingContext.cs (1)
23public abstract partial class DrawingContext : DispatcherObject, IDisposable
System\Windows\Media\MediaContext.cs (1)
24internal partial class MediaContext : DispatcherObject, IDisposable, IClock
System\Windows\Media\MediaContextNotificationWindow.cs (1)
22internal class MediaContextNotificationWindow : IDisposable
System\Windows\Media\RenderDataDrawingContext.cs (1)
19internal partial class RenderDataDrawingContext : DrawingContext, IDisposable
System\Windows\Media\StreamGeometryContext.cs (1)
37public abstract class StreamGeometryContext : DispatcherObject, IDisposable
System\Windows\Media\textformatting\TextBreakpoint.cs (1)
29internal abstract class TextBreakpoint : ITextMetrics, IDisposable
System\Windows\Media\textformatting\TextFormatter.cs (1)
33public abstract class TextFormatter : IDisposable
System\Windows\Media\textformatting\TextLine.cs (1)
21public abstract class TextLine : ITextMetrics, IDisposable
System\Windows\Media\textformatting\TextLineBreak.cs (1)
16public sealed class TextLineBreak : IDisposable
System\Windows\Media\textformatting\TextParagraphCache.cs (1)
23internal sealed class TextParagraphCache : IDisposable
PresentationFramework (54)
Microsoft\Win32\CommonItemDialog.cs (1)
687private protected sealed class VistaDialogEvents : IFileDialogEvents, IDisposable
MS\Internal\Controls\StickyNote\StickyNoteHelper.cs (1)
52public class AutoLocker : IDisposable
MS\Internal\Data\CollectionViewGroupInternal.cs (1)
831private class EmptyGroupRemover : IDisposable
MS\Internal\Data\CompositeCollectionView.cs (1)
1485private class FlatteningEnumerator : IEnumerator, IDisposable
MS\Internal\Data\EnumerableCollectionView.cs (1)
657private class IgnoreViewEventsHelper : IDisposable
MS\Internal\Data\IndexedEnumerable.cs (1)
709private class FilteredEnumerator : IEnumerator, IDisposable
MS\Internal\Data\PropertyPathWorker.cs (1)
1754private class ContextHelper : IDisposable
MS\Internal\Documents\DocumentGridPage.cs (1)
22internal class DocumentGridPage : FrameworkElement, IDisposable
MS\Internal\Documents\TextBoxLine.cs (1)
21internal class TextBoxLine : TextSource, IDisposable
MS\Internal\Documents\UIElementIsland.cs (1)
17internal class UIElementIsland : ContainerVisual, IContentHost, IDisposable
MS\Internal\Printing\PrintDlgExMarshaler.cs (1)
23private sealed class PrintDlgExMarshaler : IDisposable
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
24internal sealed class FlowDocumentPage : DocumentPage, IServiceProvider, IDisposable, IContentHost
MS\Internal\PtsHost\PageBreakRecord.cs (1)
16internal sealed class PageBreakRecord : IDisposable
MS\Internal\PtsHost\PtsContext.cs (1)
24internal sealed class PtsContext : DispatcherObject, IDisposable
MS\Internal\PtsHost\PtsPage.cs (1)
23internal class PtsPage : IDisposable
MS\Internal\PtsHost\StructuralCache.cs (3)
669internal class DocumentFormatContext : DocumentOperationContext, IDisposable 787internal class DocumentArrangeContext : DocumentOperationContext, IDisposable 864internal class DocumentVisualValidationContext : DocumentOperationContext, IDisposable
MS\Internal\PtsHost\UnmanagedHandle.cs (1)
17internal class UnmanagedHandle : IDisposable
MS\Internal\Text\Line.cs (1)
19internal abstract class Line : TextSource, IDisposable
MS\Internal\Utility\MonitorWrapper.cs (1)
44private class MonitorHelper : IDisposable
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (1)
13internal abstract class IObjectReference : IDisposable
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (1)
38internal sealed class EventSourceActivity : IDisposable
System\Windows\Annotations\Storage\AnnotationStore.cs (1)
17public abstract class AnnotationStore : IDisposable
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
526private class UpdateChildrenHelper : IDisposable 728internal class RecyclableWrapper : IDisposable
System\Windows\Controls\DataGrid.cs (1)
5251private class ChangingSelectedCellsHelper : IDisposable
System\Windows\Controls\DataGridColumnHeaderCollection.cs (2)
15internal class DataGridColumnHeaderCollection : IEnumerable, INotifyCollectionChanged, IDisposable 73private class ColumnHeaderCollectionEnumerator : IEnumerator, IDisposable
System\Windows\Controls\ItemCollection.cs (1)
2493private class DeferHelper : IDisposable
System\Windows\Controls\ItemContainerGenerator.cs (2)
1311private class Generator : IDisposable 1575private class BatchGenerator : IDisposable
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
23public class DocumentPageView : FrameworkElement, IServiceProvider, IDisposable
System\Windows\Controls\Primitives\Selector.cs (1)
2902private class BatchRemoveHelper : IDisposable
System\Windows\Controls\SelectedItemCollection.cs (1)
159private class Changer : IDisposable
System\Windows\Controls\SoundPlayerAction.cs (1)
25public class SoundPlayerAction : TriggerAction, IDisposable
System\Windows\Controls\TextAdaptor.cs (1)
26internal class TextAdaptor : ITextProvider, IDisposable
System\Windows\Data\BindingExpression.cs (1)
2653private class ChangingValueHelper : IDisposable
System\Windows\Data\BindingOperations.cs (1)
576internal class ExceptionLogger : IDisposable
System\Windows\Data\CollectionView.cs (2)
2059private class DeferHelper : IDisposable 2079private class SimpleMonitor : IDisposable
System\Windows\Data\CollectionViewSource.cs (1)
1199private class DeferHelper : IDisposable
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (1)
39internal partial class SpellChecker : IDisposable
System\Windows\Documents\NaturalLanguageHyphenator.cs (1)
23internal class NaturalLanguageHyphenator : TextLexicalService, IDisposable
System\Windows\Documents\NLGSpellerInterop.cs (2)
553private class SpellerSegment : ISpellerSegment, IDisposable 815private class SpellerSentence : ISpellerSentence, IDisposable
System\Windows\Documents\SpellerInteropBase.cs (1)
10internal abstract class SpellerInteropBase: IDisposable
System\Windows\Documents\TextRange.cs (1)
1838private class ChangeBlock : IDisposable
System\Windows\Documents\TextStore.cs (1)
4234private class MouseSink : IDisposable, IComparer
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (1)
44internal class SpellerCOMActionTraceLogger : IDisposable
System\Windows\Documents\WinEventHandler.cs (1)
15internal class WinEventHandler : IDisposable
System\Windows\Interop\HwndHost.cs (1)
22public abstract class HwndHost : FrameworkElement, IDisposable, IWin32Window, IKeyboardInputSink
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
21public sealed class MarkupWriter : IDisposable
System\Windows\Window.cs (1)
7644internal class HwndStyleManager : IDisposable
PresentationUI (6)
MS\Internal\Documents\Application\Document.cs (1)
50internal abstract class Document : IChainOfDependenciesNode<Document>, IDisposable
MS\Internal\Documents\Application\DocumentStream.cs (1)
30internal sealed class DocumentStream : StreamProxy, IDisposable
MS\Internal\Documents\Application\RightsController.cs (1)
25internal class RightsController : IDocumentController, IDisposable
MS\Internal\Documents\Application\TransactionalPackage.cs (1)
40internal class TransactionalPackage : Package, IDisposable
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
300private class DsObjectNamesWrapper : IDisposable
MS\Internal\Documents\RightsManagementProvider.cs (1)
26internal class RightsManagementProvider : IRightsManagementProvider, IDisposable
ReachFramework (13)
Packaging\PartEditor.cs (1)
27internal class PartEditor : IDisposable
Packaging\XpsDocument.cs (1)
37public class XpsDocument : XpsPartBase, INode, IDisposable
Packaging\XpsFixedDocumentReaderWriter.cs (1)
232IDisposable
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (1)
171IDisposable
Packaging\XpsFixedPageReaderWriter.cs (1)
413IDisposable
Packaging\XpsManager.cs (1)
34internal class XpsManager : IDisposable
Packaging\XpsResource.cs (1)
25public class XpsResource : XpsPartBase, INode, IDisposable
PrintConfig\PTConverter.cs (1)
51public sealed class PrintTicketConverter : IDisposable
PrintConfig\PTManager.cs (1)
185internal class PrintTicketManager : IDisposable
PrintConfig\PTProviderBase.cs (1)
30internal abstract class PTProviderBase : IDisposable
Serialization\Manager\MetroSerializationManager.cs (1)
34IDisposable
Serialization\Manager\ReachSerializer.cs (1)
20IDisposable
Serialization\Manager\XpsPackagingPolicy.cs (1)
196IDisposable
Roslyn.Diagnostics.Analyzers (38)
AbstractDoNotCopyValue.cs (1)
204private readonly struct VisitReleaser<T> : IDisposable
src\60c94c676d650713\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
16bool onlyMethodTypeParameters) : SymbolVisitor, IDisposable
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
19private sealed class BasicBlockAnalysisData : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReaderWriterLockSlimExtensions.cs (3)
19internal readonly struct ReadLockExiter : IDisposable 41internal readonly struct UpgradeableReadLockExiter : IDisposable 73internal readonly struct WriteLockExiter : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
35internal struct SemaphoreDisposer : IDisposable
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
18internal readonly struct SpecializedSyncContext : IDisposable
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (1)
33internal struct TemporaryArray<T> : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (1)
332public readonly struct Releaser : IDisposable
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
14bool discardLargeInstances = true) : IDisposable
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
29internal class AsyncBatchingWorkQueue<TItem, TResult> : IDisposable
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
26internal sealed class CancellationSeries : IDisposable
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (2)
579private sealed class SyncForEachAsyncState<TSource> : ForEachAsyncState<TSource>, IDisposable 631private sealed class ForEachState<T> : ForEachAsyncState<T>, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
19internal sealed class PooledConcurrentDictionary<K, V> : ConcurrentDictionary<K, V>, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
19internal sealed class PooledConcurrentSet<T> : ICollection<T>, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
20internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\DataFlowAnalyzer.cs (1)
14internal abstract class DataFlowAnalyzer<TBlockAnalysisData> : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (1)
24private abstract class AnalysisData : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\NodeOperations.cs (1)
15internal sealed class NodeOperations : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\EmptyLogBlock.cs (1)
12internal sealed class EmptyLogBlock : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
32private sealed class RoslynLogBlock(ObjectPool<RoslynLogBlock> pool) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (1)
17internal struct PooledObject<T> : IDisposable where T : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
19internal sealed partial class ObjectReader : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.ReaderReferenceMap.cs (1)
16private readonly struct ReaderReferenceMap : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
22internal sealed partial class ObjectWriter : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
22private abstract class Reader<TStringResult> : IDisposable where TStringResult : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
53private sealed class SymbolKeyWriter : SymbolVisitor, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
148private readonly struct WaitThatValidatesInvariants(AsyncLazyImpl<TData> asyncLazy) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
29internal sealed class AsyncPriorityWorkQueue<TItem> : IDisposable where TItem : notnull
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
32internal readonly struct EditDistance(string text) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
244public readonly struct SemaphoreDisposer(NonReentrantLock semaphore) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
58internal sealed class ReferenceCountedDisposable<T> : IReferenceCountedDisposable<T>, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
69private sealed class Entry(ReferenceCountedDisposableCache<TKey, TValue> cache, TKey key, TValue value) : IDisposable, ICacheEntry<TKey, TValue>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
10internal struct WordSimilarityChecker : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Progress\CodeAnalysisProgressExtensions.cs (1)
30public readonly struct ItemCompletedDisposer(IProgress<CodeAnalysisProgress> progress) : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
21TAccessorDeclarationSyntax> : ISemanticModelReuseLanguageService, IDisposable
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\50a3a051b0fef0d6\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
123private sealed class RemoveDiscardHelper : IDisposable
rzc (3)
Client.cs (1)
14internal abstract class Client : IDisposable
Connection.cs (1)
8internal abstract class Connection : IDisposable
ShadowCopyManager.cs (1)
12internal class ShadowCopyManager : IDisposable
ScenarioTests.Common.Tests (1)
ScenarioTestTypes.cs (1)
1169public class ClientReceiver : IPushCallback, IDisposable
Shared (3)
BufferWriterPool\ReturnableBufferWriter.cs (1)
18internal readonly struct ReturnableBufferWriter<T> : IDisposable
ServerSentEvents\ArrayBuffer.cs (1)
29internal struct ArrayBuffer : IDisposable
ServerSentEvents\PooledByteBufferWriter.cs (1)
11internal sealed class PooledByteBufferWriter : IBufferWriter<byte>, IDisposable
Stress.ApiService (1)
TestMetrics.cs (1)
9public class TestMetrics : IDisposable
System.CodeDom (1)
src\runtime\src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
22class TempFileCollection : ICollection, IDisposable
System.Collections.Concurrent (3)
System\Collections\Concurrent\BlockingCollection.cs (1)
45public class BlockingCollection<T> : IEnumerable<T>, ICollection, IDisposable, IReadOnlyCollection<T>
System\Collections\Concurrent\OrderablePartitioner.cs (1)
215private sealed class EnumerableDropIndices : IEnumerable<TSource>, IDisposable
System\Collections\Concurrent\PartitionerStatic.cs (1)
539private sealed class InternalPartitionEnumerable : IEnumerable<KeyValuePair<long, TSource>>, IDisposable
System.Collections.Immutable (4)
System\Collections\Immutable\DisposableEnumeratorAdapter_2.cs (1)
14internal struct DisposableEnumeratorAdapter<T, TEnumerator> : IDisposable
System\Collections\Immutable\ImmutableDictionary_2.Enumerator.cs (1)
16public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDisposable
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (1)
336internal struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDisposable
System\Collections\Immutable\ImmutableHashSet_1.HashBucket.cs (1)
251internal struct Enumerator : IEnumerator<T>, IDisposable
System.CommandLine (1)
Invocation\ProcessTerminationHandler.cs (1)
10internal sealed class ProcessTerminationHandler : IDisposable
System.ComponentModel.Composition (23)
Microsoft\Internal\Lock.Reader.cs (1)
9internal struct ReadLock : IDisposable
Microsoft\Internal\Lock.ReaderWriter.cs (1)
9internal sealed class ReadWriteLock : IDisposable
Microsoft\Internal\Lock.Writer.cs (1)
9internal struct WriteLock : IDisposable
System\ComponentModel\Composition\ExportLifetimeContextOfT.cs (1)
6public sealed class ExportLifetimeContext<T> : IDisposable
System\ComponentModel\Composition\ExportServices.DisposableLazy.cs (2)
10private sealed class DisposableLazy<T, TMetadataView> : Lazy<T, TMetadataView>, IDisposable 28private sealed class DisposableLazy<T> : Lazy<T>, IDisposable
System\ComponentModel\Composition\Hosting\AggregateExportProvider.cs (1)
14public class AggregateExportProvider : ExportProvider, IDisposable
System\ComponentModel\Composition\Hosting\AtomicComposition.cs (1)
35public class AtomicComposition : IDisposable
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogChangeProxy.cs (1)
11public partial class CatalogExportProvider : ExportProvider, IDisposable
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogExport.cs (1)
119private sealed class NonSharedCatalogExport : CatalogExport, IDisposable
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (1)
19public partial class CatalogExportProvider : ExportProvider, IDisposable
System\ComponentModel\Composition\Hosting\CatalogExportProvider.FactoryExport.cs (1)
88private sealed class FactoryExportPart : ComposablePart, IDisposable
System\ComponentModel\Composition\Hosting\CatalogExportProvider.ScopeFactoryExport.cs (1)
29private sealed class ScopeCatalogExport : Export, IDisposable
System\ComponentModel\Composition\Hosting\ComposablePartCatalogCollection.cs (1)
20internal sealed class ComposablePartCatalogCollection : ICollection<ComposablePartCatalog>, INotifyComposablePartCatalogChanged, IDisposable
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (1)
15public class ComposablePartExportProvider : ExportProvider, IDisposable
System\ComponentModel\Composition\Hosting\CompositionContainer.cs (1)
14public partial class CompositionContainer : ExportProvider, ICompositionService, IDisposable
System\ComponentModel\Composition\Hosting\CompositionLock.cs (3)
22internal sealed class CompositionLock : IDisposable 117public sealed class CompositionLockHolder : IDisposable 139private sealed class EmptyLockHolder : IDisposable
System\ComponentModel\Composition\Hosting\CompositionService.cs (1)
15public class CompositionService : ICompositionService, IDisposable
System\ComponentModel\Composition\Hosting\ImportEngine.cs (1)
18public partial class ImportEngine : ICompositionService, IDisposable
System\ComponentModel\Composition\Primitives\ComposablePartCatalog.cs (1)
22public abstract class ComposablePartCatalog : IEnumerable<ComposablePartDefinition>, IDisposable
System\ComponentModel\Composition\ReflectionModel\DisposableReflectionComposablePart.cs (1)
8internal sealed class DisposableReflectionComposablePart : ReflectionComposablePart, IDisposable
System.ComponentModel.Composition.Registration (3)
System\Threading\ReadLock.cs (1)
6internal struct ReadLock : IDisposable
System\Threading\ReadWriteLock.cs (1)
6internal sealed class ReadWriteLock : IDisposable
System\Threading\WriteLock.cs (1)
6internal struct WriteLock : IDisposable
System.ComponentModel.Primitives (1)
System\ComponentModel\EventHandlerList.cs (1)
9public sealed class EventHandlerList : IDisposable
System.ComponentModel.TypeConverter (4)
System\ComponentModel\Design\DesignerTransaction.cs (1)
11public abstract class DesignerTransaction : IDisposable
System\ComponentModel\Design\Serialization\SerializationStore.cs (1)
20public abstract class SerializationStore : IDisposable
System\ComponentModel\Design\ServiceContainer.cs (1)
12public class ServiceContainer : IServiceContainer, IDisposable
System\ComponentModel\License.cs (1)
10public abstract class License : IDisposable
System.Composition.Hosting (3)
System\Composition\Hosting\CompositionHost.cs (1)
19public sealed class CompositionHost : CompositionContext, IDisposable
System\Composition\Hosting\Core\CompositionOperation.cs (1)
14public sealed class CompositionOperation : IDisposable
System\Composition\Hosting\Core\LifetimeContext.cs (1)
27public sealed class LifetimeContext : CompositionContext, IDisposable
System.Composition.Runtime (1)
System\Composition\ExportOfT.cs (1)
11public sealed class Export<T> : IDisposable
System.Configuration.ConfigurationManager (4)
src\runtime\src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
22class TempFileCollection : ICollection, IDisposable
System\Configuration\EmptyImpersonationContext.cs (1)
7internal sealed class EmptyImpersonationContext : IDisposable
System\Configuration\Internal\DummyDisposable.cs (1)
9internal sealed class DummyDisposable : IDisposable
System\Configuration\XmlUtil.cs (1)
23internal sealed class XmlUtil : IDisposable, IConfigErrorInfo
System.Data.Common (3)
System\Data\Common\DbBatch.cs (1)
9public abstract class DbBatch : IDisposable, IAsyncDisposable
System\Data\Common\DbDataSource.cs (1)
11public abstract class DbDataSource : IDisposable, IAsyncDisposable
System\Data\TypeLimiter.cs (1)
125private sealed class Scope : IDisposable
System.Data.OleDb (6)
OleDbConnectionInternal.cs (1)
19internal sealed class OleDbConnectionInternal : DbConnectionInternal, IDisposable
OleDbWrapper.cs (5)
457internal struct IDBInfoWrapper : IDisposable 490internal struct IDBPropertiesWrapper : IDisposable 523internal struct IDBSchemaRowsetWrapper : IDisposable 554internal struct IOpenRowsetWrapper : IDisposable 587internal struct ITransactionJoinWrapper : IDisposable
System.Diagnostics.DiagnosticSource (12)
System\Diagnostics\Activity.cs (1)
59public partial class Activity : IDisposable
System\Diagnostics\ActivityListener.cs (1)
22public sealed class ActivityListener : IDisposable
System\Diagnostics\ActivitySource.cs (1)
13public class ActivitySource : IDisposable
System\Diagnostics\ActivitySourceFactory.cs (1)
16public abstract class ActivitySourceFactory : IDisposable
System\Diagnostics\DiagnosticListener.cs (3)
29public partial class DiagnosticListener : DiagnosticSource, IObservable<KeyValuePair<string, object?>>, IDisposable 267private sealed class DiagnosticSubscription : IDisposable 406internal sealed class AllListenerSubscription : IDisposable
System\Diagnostics\DsesActivitySourceListener.cs (1)
10internal sealed class DsesActivitySourceListener : IDisposable
System\Diagnostics\DsesFilterAndTransform.cs (2)
26internal sealed class DsesFilterAndTransform : IDisposable 551private sealed class ParsedFilterAndPayloadSpecs : IDisposable
System\Diagnostics\Metrics\Meter.cs (1)
16public class Meter : IDisposable
System\Diagnostics\Metrics\MeterListener.cs (1)
17public sealed class MeterListener : IDisposable
System.Diagnostics.EventLog (8)
System\Diagnostics\EventLogInternal.cs (1)
20internal sealed class EventLogInternal : IDisposable, ISupportInitialize
System\Diagnostics\Reader\EventLogConfiguration.cs (1)
44public class EventLogConfiguration : IDisposable
System\Diagnostics\Reader\EventLogPropertySelector.cs (1)
14public class EventLogPropertySelector : IDisposable
System\Diagnostics\Reader\EventLogReader.cs (1)
13public class EventLogReader : IDisposable
System\Diagnostics\Reader\EventLogSession.cs (1)
36public class EventLogSession : IDisposable
System\Diagnostics\Reader\EventLogWatcher.cs (1)
14public class EventLogWatcher : IDisposable
System\Diagnostics\Reader\EventRecord.cs (1)
13public abstract class EventRecord : IDisposable
System\Diagnostics\Reader\ProviderMetadata.cs (1)
16public class ProviderMetadata : IDisposable
System.Diagnostics.PerformanceCounter (5)
System\Diagnostics\PerformanceCounterLib.cs (1)
1370internal sealed class CategorySample : IDisposable
System\Diagnostics\PerformanceData\CounterSet.cs (1)
17public class CounterSet : IDisposable
System\Diagnostics\PerformanceData\CounterSetInstance.cs (1)
13public sealed class CounterSetInstance : IDisposable
System\Diagnostics\PerformanceData\CounterSetInstanceCounterDataSet.cs (1)
102public sealed class CounterSetInstanceCounterDataSet : IDisposable
System\Diagnostics\PerformanceDataRegistryKey.cs (1)
13internal sealed class PerformanceDataRegistryKey : IDisposable
System.Diagnostics.Process (6)
System\Diagnostics\AsyncStreamReader.cs (1)
23internal sealed class AsyncStreamReader : IDisposable
System\Diagnostics\Process.Linux.cs (1)
14public partial class Process : IDisposable
System\Diagnostics\Process.NonUap.cs (1)
10public partial class Process : IDisposable
System\Diagnostics\Process.Unix.cs (1)
18public partial class Process : IDisposable
System\Diagnostics\ProcessWaitState.Unix.cs (2)
44internal sealed class ProcessWaitState : IDisposable 53internal sealed class Holder : IDisposable
System.Diagnostics.StackTrace (1)
System\Diagnostics\StackTraceSymbols.cs (1)
13internal sealed class StackTraceSymbols : IDisposable
System.Diagnostics.TraceSource (1)
System\Diagnostics\TraceListener.cs (1)
18public abstract class TraceListener : MarshalByRefObject, IDisposable
System.DirectoryServices (13)
System\DirectoryServices\ActiveDirectory\ActiveDirectoryInterSiteTransport.cs (1)
9public class ActiveDirectoryInterSiteTransport : IDisposable
System\DirectoryServices\ActiveDirectory\ActiveDirectoryPartition.cs (1)
6public abstract class ActiveDirectoryPartition : IDisposable
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaClass.cs (1)
14public class ActiveDirectorySchemaClass : IDisposable
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaProperty.cs (1)
21public class ActiveDirectorySchemaProperty : IDisposable
System\DirectoryServices\ActiveDirectory\ActiveDirectorySite.cs (1)
29public class ActiveDirectorySite : IDisposable
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLink.cs (1)
12public class ActiveDirectorySiteLink : IDisposable
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLinkBridge.cs (1)
12public class ActiveDirectorySiteLinkBridge : IDisposable
System\DirectoryServices\ActiveDirectory\ActiveDirectorySubnet.cs (1)
9public class ActiveDirectorySubnet : IDisposable
System\DirectoryServices\ActiveDirectory\DirectoryServer.cs (1)
11public abstract class DirectoryServer : IDisposable
System\DirectoryServices\ActiveDirectory\Forest.cs (1)
25public class Forest : IDisposable
System\DirectoryServices\ActiveDirectory\ReplicationConnection.cs (1)
23public class ReplicationConnection : IDisposable
System\DirectoryServices\PropertyCollection.cs (1)
173private sealed class PropertyEnumerator : IDictionaryEnumerator, IDisposable
System\DirectoryServices\SearchResultCollection.cs (1)
16public class SearchResultCollection : MarshalByRefObject, ICollection, IEnumerable, IDisposable
System.DirectoryServices.AccountManagement (9)
System\DirectoryServices\AccountManagement\AD\RangeRetriever.cs (1)
18internal sealed class RangeRetriever : CollectionBase, IEnumerable, IEnumerator, IDisposable
System\DirectoryServices\AccountManagement\AD\SidList.cs (1)
244internal sealed class SidListEntry : IDisposable
System\DirectoryServices\AccountManagement\Context.cs (2)
47internal sealed class CredentialValidator : IDisposable 350public class PrincipalContext : IDisposable
System\DirectoryServices\AccountManagement\FindResult.cs (1)
11public class PrincipalSearchResult<T> : IEnumerable<T>, IEnumerable, IDisposable
System\DirectoryServices\AccountManagement\Principal.cs (1)
15public abstract class Principal : IDisposable
System\DirectoryServices\AccountManagement\PrincipalSearcher.cs (1)
12public class PrincipalSearcher : IDisposable
System\DirectoryServices\AccountManagement\ResultSet.cs (1)
8internal abstract class ResultSet : IDisposable
System\DirectoryServices\AccountManagement\StoreCtx.cs (1)
16internal abstract class StoreCtx : IDisposable
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (1)
22public partial class LdapConnection : DirectoryConnection, IDisposable
System.Drawing.Common (24)
System\Drawing\Brush.cs (1)
8public abstract unsafe class Brush : MarshalByRefObject, ICloneable, IDisposable
System\Drawing\BufferedGraphics.cs (1)
14public sealed class BufferedGraphics : IDisposable
System\Drawing\BufferedGraphicsContext.cs (1)
13public sealed unsafe class BufferedGraphicsContext : IDisposable
System\Drawing\Drawing2D\CustomLineCap.cs (1)
6public unsafe class CustomLineCap : MarshalByRefObject, ICloneable, IDisposable
System\Drawing\Drawing2D\GraphicsPath.cs (1)
9public sealed unsafe class GraphicsPath : MarshalByRefObject, ICloneable, IDisposable
System\Drawing\Drawing2D\GraphicsPathIterator.cs (1)
6public sealed unsafe class GraphicsPathIterator : MarshalByRefObject, IDisposable
System\Drawing\Drawing2D\Matrix.cs (1)
8public sealed unsafe class Matrix : MarshalByRefObject, IDisposable
System\Drawing\Font.cs (1)
19public sealed unsafe class Font : MarshalByRefObject, ICloneable, IDisposable, ISerializable, IPointer<GpFont>
System\Drawing\FontConverter.cs (1)
404public sealed class FontNameConverter : TypeConverter, IDisposable
System\Drawing\FontFamily.cs (1)
12public sealed unsafe class FontFamily : MarshalByRefObject, IDisposable, IPointer<GpFontFamily>
System\Drawing\Graphics.cs (1)
21public sealed unsafe partial class Graphics : MarshalByRefObject, IDisposable, IDeviceContext, IGraphics
System\Drawing\Graphics.EnumerateMetafileDataAdapter.cs (1)
17private sealed class EnumerateMetafileDataAdapter : IDisposable
System\Drawing\GraphicsContext.cs (1)
11internal sealed class GraphicsContext : IDisposable
System\Drawing\Icon.cs (1)
18public sealed unsafe partial class Icon : MarshalByRefObject, ICloneable, IDisposable, ISerializable, IIcon
System\Drawing\Image.cs (1)
22public abstract unsafe class Image : MarshalByRefObject, IImage, IDisposable, ICloneable, ISerializable
System\Drawing\Imaging\CachedBitmap.cs (1)
28public sealed unsafe class CachedBitmap : IDisposable
System\Drawing\Imaging\Effects\Effect.cs (1)
11public abstract unsafe class Effect : IDisposable
System\Drawing\Imaging\EncoderParameter.cs (1)
9public sealed unsafe class EncoderParameter : IDisposable
System\Drawing\Imaging\EncoderParameters.cs (1)
8public sealed class EncoderParameters : IDisposable
System\Drawing\Imaging\ImageAttributes.cs (1)
37public sealed unsafe class ImageAttributes : ICloneable, IDisposable
System\Drawing\Pen.cs (1)
13public sealed unsafe class Pen : MarshalByRefObject, ICloneable, IDisposable, ISystemColorTracker
System\Drawing\Region.cs (1)
8public sealed unsafe class Region : MarshalByRefObject, IDisposable, IPointer<GpRegion>
System\Drawing\StringFormat.cs (1)
13public sealed unsafe class StringFormat : MarshalByRefObject, ICloneable, IDisposable
System\Drawing\Text\FontCollection.cs (1)
9public abstract unsafe class FontCollection : IDisposable, IPointer<GpFontCollection>
System.Formats.Asn1 (2)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptoPool.cs (1)
41internal ref struct CryptoPoolLease : IDisposable
System\Formats\Asn1\AsnWriter.cs (1)
870public readonly struct Scope : IDisposable
System.Formats.Tar (3)
System\Formats\Tar\TarReader.cs (1)
15public sealed class TarReader : IDisposable, IAsyncDisposable
System\Formats\Tar\TarWriter.cs (1)
15public sealed partial class TarWriter : IDisposable, IAsyncDisposable
System\Formats\Tar\TarWriter.Unix.cs (1)
11public sealed partial class TarWriter : IDisposable
System.IO.Compression (14)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
22internal struct ArrayBuffer : IDisposable
System\IO\Compression\DeflateDecoder.cs (1)
13public sealed class DeflateDecoder : IDisposable
System\IO\Compression\DeflateEncoder.cs (1)
13public sealed class DeflateEncoder : IDisposable
System\IO\Compression\DeflateZLib\Deflater.cs (1)
15internal sealed class Deflater : IDisposable
System\IO\Compression\DeflateZLib\Inflater.cs (1)
13internal sealed class Inflater : IDisposable
System\IO\Compression\GZipDecoder.cs (1)
11public sealed class GZipDecoder : IDisposable
System\IO\Compression\GZipEncoder.cs (1)
11public sealed class GZipEncoder : IDisposable
System\IO\Compression\ZipArchive.Async.cs (1)
13public partial class ZipArchive : IDisposable, IAsyncDisposable
System\IO\Compression\ZipArchive.cs (1)
17public partial class ZipArchive : IDisposable, IAsyncDisposable
System\IO\Compression\ZLibDecoder.cs (1)
11public sealed class ZLibDecoder : IDisposable
System\IO\Compression\ZLibEncoder.cs (1)
11public sealed class ZLibEncoder : IDisposable
System\IO\Compression\Zstandard\ZstandardDecoder.cs (1)
16public sealed class ZstandardDecoder : IDisposable
System\IO\Compression\Zstandard\ZstandardDictionary.cs (1)
15public sealed class ZstandardDictionary : IDisposable
System\IO\Compression\Zstandard\ZstandardEncoder.cs (1)
15public sealed class ZstandardEncoder : IDisposable
System.IO.Compression.Brotli (2)
System\IO\Compression\dec\BrotliDecoder.cs (1)
12public struct BrotliDecoder : IDisposable
System\IO\Compression\enc\BrotliEncoder.cs (1)
12public partial struct BrotliEncoder : IDisposable
System.IO.FileSystem.AccessControl (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\DisableMediaInsertionPrompt.cs (1)
16internal struct DisableMediaInsertionPrompt : IDisposable
System.IO.IsolatedStorage (2)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (1)
12public sealed partial class IsolatedStorageFile : IsolatedStorage, IDisposable
System\IO\IsolatedStorage\IsolatedStorageFile.NonMobile.cs (1)
8public sealed partial class IsolatedStorageFile : IsolatedStorage, IDisposable
System.IO.MemoryMappedFiles (2)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (1)
10public partial class MemoryMappedFile : IDisposable
System\IO\MemoryMappedFiles\MemoryMappedView.cs (1)
9internal sealed partial class MemoryMappedView : IDisposable
System.IO.Packaging (2)
System\IO\Packaging\Package.cs (1)
18public abstract class Package : IDisposable
System\IO\Packaging\PackageProperties.cs (1)
32public abstract class PackageProperties : IDisposable
System.Linq.Parallel (2)
System\Linq\Parallel\Channels\AsynchronousChannel.cs (1)
23internal sealed class AsynchronousChannel<T> : IDisposable
System\Linq\Parallel\Utils\Sorting.cs (1)
35internal sealed class SortHelper<TInputOutput, TKey> : SortHelper<TInputOutput>, IDisposable
System.Management (4)
System\Management\InteropClasses\WMIInterop.cs (2)
23internal sealed class IWbemClassObjectFreeThreaded : IDisposable 369internal sealed class IWbemQualifierSetFreeThreaded : IDisposable
System\Management\ManagementObjectCollection.cs (2)
58public class ManagementObjectCollection : ICollection, IEnumerable, IDisposable 400public class ManagementObjectEnumerator : IEnumerator, IDisposable
System.Memory (1)
System\Buffers\MemoryPool.cs (1)
9public abstract class MemoryPool<T> : IDisposable
System.Net.Http (19)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
22internal struct ArrayBuffer : IDisposable
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackDecoder.cs (1)
17internal sealed class QPackDecoder : IDisposable
src\runtime\src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (1)
23internal struct MultiArrayBuffer : IDisposable
System\Net\Http\HttpContent.cs (1)
17public abstract class HttpContent : IDisposable
System\Net\Http\HttpMessageHandler.cs (1)
12public abstract class HttpMessageHandler : IDisposable
System\Net\Http\HttpMessageInvoker.cs (1)
10public class HttpMessageInvoker : IDisposable
System\Net\Http\HttpRequestMessage.cs (1)
12public class HttpRequestMessage : IDisposable
System\Net\Http\HttpResponseMessage.cs (1)
11public class HttpResponseMessage : IDisposable
System\Net\Http\SocketsHttpHandler\ChunkedEncodingWriteStream.cs (1)
10internal sealed partial class HttpConnection : IDisposable
System\Net\Http\SocketsHttpHandler\ConnectionCloseReadStream.cs (1)
10internal sealed partial class HttpConnection : IDisposable
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
25internal sealed partial class HttpConnectionPool : IDisposable
System\Net\Http\SocketsHttpHandler\ContentLengthReadStream.cs (1)
11internal sealed partial class HttpConnection : IDisposable
System\Net\Http\SocketsHttpHandler\ContentLengthWriteStream.cs (1)
11internal sealed partial class HttpConnection : IDisposable
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
23internal sealed class Http3RequestStream : IHttpStreamHeadersHandler, IAsyncDisposable, IDisposable
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (1)
17internal abstract class HttpConnectionBase : IDisposable, IHttpTrace
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (2)
32internal sealed class HttpConnectionPoolManager : IDisposable 225private sealed class NetworkChangeCleanup : IDisposable
System\Net\Http\SocketsHttpHandler\HttpContentWriteStream.cs (1)
11internal sealed partial class HttpConnection : IDisposable
System\Net\Http\SocketsHttpHandler\RawConnectionStream.cs (1)
12internal sealed partial class HttpConnection : IDisposable
System.Net.Http.WinHttpHandler (1)
System\Net\Http\WinHttpRequestState.cs (1)
17internal sealed class WinHttpRequestState : IDisposable
System.Net.HttpListener (3)
System\Net\HttpListener.cs (1)
14public sealed partial class HttpListener : IDisposable
System\Net\HttpListenerResponse.cs (1)
11public sealed partial class HttpListenerResponse : IDisposable
System\Net\Managed\HttpListenerResponse.Managed.cs (1)
38public sealed partial class HttpListenerResponse : IDisposable
System.Net.Mail (8)
System\Net\Mail\AlternateViewCollection.cs (1)
8public sealed class AlternateViewCollection : Collection<AlternateView>, IDisposable
System\Net\Mail\Attachment.cs (1)
11public abstract class AttachmentBase : IDisposable
System\Net\Mail\AttachmentCollection.cs (1)
12public sealed class AttachmentCollection : Collection<Attachment>, IDisposable
System\Net\Mail\LinkedResourceCollection.cs (1)
9public sealed class LinkedResourceCollection : Collection<LinkedResource>, IDisposable
System\Net\Mail\MailMessage.cs (1)
25public class MailMessage : IDisposable
System\Net\Mail\SmtpClient.cs (1)
38public class SmtpClient : IDisposable
System\Net\Mail\SmtpReplyReader.cs (1)
12internal sealed class SmtpReplyReader : IDisposable
System\Net\Mime\MimePart.cs (1)
19internal sealed class MimePart : MimeBasePart, IDisposable
System.Net.NameResolution (3)
System\Net\DnsResolver.cs (1)
25public sealed partial class DnsResolver : IAsyncDisposable, IDisposable
System\Net\DnsResolverPal.Managed.cs (1)
920private readonly struct DnsResponse : IDisposable
System\Net\DnsSocket.cs (1)
26internal sealed class DnsSocket : IDisposable
System.Net.Quic (5)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
22internal struct ArrayBuffer : IDisposable
src\runtime\src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (1)
23internal struct MultiArrayBuffer : IDisposable
src\runtime\src\libraries\Common\src\System\Net\StreamBuffer.cs (1)
13internal sealed class StreamBuffer : IDisposable
System\Net\Quic\Internal\MsQuicBuffers.cs (1)
16internal unsafe struct MsQuicBuffers : IDisposable
System\Net\Quic\Internal\MsQuicTlsSecret.cs (1)
13internal sealed class MsQuicTlsSecret : IDisposable
System.Net.Requests (3)
System\Net\FtpWebResponse.cs (1)
11public class FtpWebResponse : WebResponse, IDisposable
System\Net\TimerThread.cs (1)
43internal abstract class Timer : IDisposable
System\Net\WebResponse.cs (1)
16public abstract class WebResponse : MarshalByRefObject, ISerializable, IDisposable
System.Net.Security (10)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssBuffer.cs (1)
14internal unsafe struct GssBuffer : IDisposable
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
22internal struct ArrayBuffer : IDisposable
src\runtime\src\libraries\Common\src\System\Net\Security\RC4.cs (1)
38internal sealed class RC4 : IDisposable
src\runtime\src\libraries\Common\src\System\Net\Security\SafeCredentialReference.cs (1)
11internal sealed class SafeCredentialReference : CriticalFinalizerObject, IDisposable
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptoPool.cs (1)
41internal ref struct CryptoPoolLease : IDisposable
System\Net\NegotiateAuthenticationPal.cs (1)
11internal abstract partial class NegotiateAuthenticationPal : IDisposable
System\Net\Security\NegotiateAuthentication.cs (1)
17public sealed class NegotiateAuthentication : IDisposable
System\Net\Security\SslAuthenticationOptions.cs (1)
12internal sealed partial class SslAuthenticationOptions : IDisposable
System\Net\Security\TlsContext.cs (1)
42public sealed partial class TlsContext : IDisposable
System\Net\Security\TlsSession.cs (1)
48public abstract partial class TlsSession : IDisposable
System.Net.ServerSentEvents (2)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
22internal struct ArrayBuffer : IDisposable
System\Net\ServerSentEvents\PooledByteBufferWriter.cs (1)
9internal sealed class PooledByteBufferWriter : IBufferWriter<byte>, IDisposable
System.Net.Sockets (7)
System\Net\Sockets\Socket.cs (1)
21public partial class Socket : IDisposable
System\Net\Sockets\SocketAsyncContext.Unix.cs (1)
712private readonly struct LockToken : IDisposable
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
14public partial class SocketAsyncEventArgs : EventArgs, IDisposable
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (1)
11public partial class SocketAsyncEventArgs : EventArgs, IDisposable
System\Net\Sockets\TCPClient.cs (1)
15public class TcpClient : IDisposable
System\Net\Sockets\TCPListener.cs (1)
14public class TcpListener : IDisposable
System\Net\Sockets\UDPClient.cs (1)
14public partial class UdpClient : IDisposable
System.Net.WebSockets (3)
System\Net\WebSockets\Compression\WebSocketDeflater.cs (1)
13internal sealed class WebSocketDeflater : IDisposable
System\Net\WebSockets\Compression\WebSocketInflater.cs (1)
13internal sealed class WebSocketInflater : IDisposable
System\Net\WebSockets\WebSocket.cs (1)
13public abstract class WebSocket : IDisposable
System.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
2749internal ref struct RentedBuffer<T> : IDisposable
System.ObjectModel (1)
System\Collections\ObjectModel\ObservableCollection.cs (1)
298private sealed class SimpleMonitor : IDisposable
System.Private.CoreLib (50)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Array.Enumerators.cs (2)
70internal abstract class SZGenericArrayEnumeratorBase : IDisposable 134internal abstract class GenericEmptyEnumeratorBase : IDisposable, IEnumerator
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\MemoryHandle.cs (1)
11public unsafe struct MemoryHandle : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\CharEnumerator.cs (1)
10public sealed class CharEnumerator : IEnumerator, IEnumerator<char>, IDisposable, ICloneable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\DiagnosticCounter.cs (1)
18public abstract class DiagnosticCounter : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventListener.cs (1)
47public abstract class EventListener : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
51internal class EventProvider : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
218public partial class EventSource : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (1)
15public class BinaryReader : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (1)
16public class BinaryWriter : IDisposable, IAsyncDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (2)
14public abstract partial class Stream : MarshalByRefObject, IDisposable, IAsyncDisposable 1086private sealed class SyncStream : Stream, IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (1)
105private readonly struct ThrowOnReadsScope : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (1)
76private readonly struct ThrowOnWritesScope : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextReader.cs (1)
20public abstract partial class TextReader : MarshalByRefObject, IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (2)
22public abstract partial class TextWriter : MarshalByRefObject, IDisposable, IAsyncDisposable 891internal sealed class SyncTextWriter : TextWriter, IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryAccessor.cs (1)
16public class UnmanagedMemoryAccessor : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\AssemblyBuilder.cs (1)
106private sealed class ForceAllowDynamicCodeScope : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceSet.cs (1)
19public class ResourceSet : IDisposable, IEnumerable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
1994internal readonly struct ComHolder : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CriticalHandle.cs (1)
119public abstract partial class CriticalHandle : CriticalFinalizerObject, IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.T.cs (1)
23public struct GCHandle<T> : IEquatable<GCHandle<T>>, IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (1)
13public struct ComVariant : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PinnedGCHandle.T.cs (1)
24public struct PinnedGCHandle<T> : IEquatable<PinnedGCHandle<T>>, IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.cs (1)
10public sealed partial class PosixSignalRegistration : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeHandle.cs (1)
15public abstract partial class SafeHandle : CriticalFinalizerObject, IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\WeakGCHandle.T.cs (1)
23public struct WeakGCHandle<T> : IEquatable<WeakGCHandle<T>>, IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
619public struct ContextualReflectionScope : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.cs (1)
70public sealed partial class MemoryFailPoint : CriticalFinalizerObject, IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\DeserializationToken.cs (1)
7public readonly struct DeserializationToken : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (1)
11public sealed partial class SecureString : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenRegistration.cs (1)
15public readonly struct CancellationTokenRegistration : IEquatable<CancellationTokenRegistration>, IDisposable, IAsyncDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (1)
26public class CancellationTokenSource : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (2)
20public sealed class ExecutionContext : IDisposable, ISerializable 567public struct AsyncFlowControl : IEquatable<AsyncFlowControl>, IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelLock.cs (1)
15internal sealed class LowLevelLock : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelThreadBlocker.cs (1)
30internal unsafe struct LowLevelThreadBlocker : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ManualResetEventSlim.cs (1)
35public class ManualResetEventSlim : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PeriodicTimer.cs (1)
18public sealed class PeriodicTimer : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PreAllocatedOverlapped.PlatformNotSupported.cs (1)
6public sealed class PreAllocatedOverlapped : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ReaderWriterLockSlim.cs (1)
53public class ReaderWriterLockSlim : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\SemaphoreSlim.cs (1)
27public class SemaphoreSlim : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
114public class Task : IAsyncResult, IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (1)
28public class ThreadLocal<T> : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolBoundHandle.PlatformNotSupported.cs (1)
9public sealed partial class ThreadPoolBoundHandle : IDisposable
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (1)
816public sealed class Timer : MarshalByRefObject, IDisposable, IAsyncDisposable, ITimer
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (1)
11public abstract partial class WaitHandle : MarshalByRefObject, IDisposable
System\Runtime\DependentHandle.cs (1)
6public struct DependentHandle : IDisposable
System\Runtime\InteropServices\CriticalHandle.NativeAot.cs (1)
8public abstract partial class CriticalHandle : CriticalFinalizerObject, IDisposable
System.Private.Windows.Core (22)
System\DisposableBase.cs (1)
9internal abstract class DisposableBase : IDisposable
System\Private\Windows\Ole\DragDropFormat.cs (1)
13internal class DragDropFormat : IDisposable
Windows\Win32\Foundation\BSTR.cs (1)
6internal readonly unsafe partial struct BSTR : IDisposable
Windows\Win32\Graphics\Gdi\BeginPaintScope.cs (1)
18internal class BeginPaintScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\CreateBitmapScope.cs (1)
17internal class CreateBitmapScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\CreateBrushScope.cs (1)
19internal class CreateBrushScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\CreateDcScope.cs (1)
17internal class CreateDcScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\CreatePenScope.cs (1)
18internal class CreatePenScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\HBITMAP.cs (1)
6internal readonly partial struct HBITMAP : IDisposable
Windows\Win32\Graphics\Gdi\HdcHandle.cs (1)
10internal sealed class HdcHandle : IDisposable, IHandle<HDC>
Windows\Win32\Graphics\Gdi\ObjectScope.cs (1)
16internal class ObjectScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\RegionScope.cs (1)
18internal unsafe class RegionScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SelectObjectScope.cs (1)
17internal class SelectObjectScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SelectPaletteScope.cs (1)
16internal class SelectPaletteScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SetBkModeScope.cs (1)
17internal class SetBkModeScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SetMapModeScope.cs (1)
17internal class SetMapModeScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SetRop2Scope.cs (1)
17internal class SetRop2Scope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SetTextAlignmentScope.cs (1)
17internal class SetTextAlignmentScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SetTextColorScope.cs (1)
17internal class SetTextColorScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\System\Com\AgileComPointer.cs (1)
27IDisposable
Windows\Win32\System\Variant\VARIANT.cs (1)
16internal unsafe partial struct VARIANT : IDisposable
Windows\Win32\UI\WindowsAndMessaging\ICONINFO.cs (1)
6internal unsafe partial struct ICONINFO : IDisposable
System.Private.Windows.Core.TestUtilities (4)
FileCleanupTestBase.cs (1)
9public abstract class FileCleanupTestBase : IDisposable
NoAssertContext.cs (1)
11public sealed class NoAssertContext : IDisposable
TempFile.cs (1)
20public sealed class TempFile : IDisposable
ThreadCultureChange.cs (1)
11public sealed class ThreadCultureChange : IDisposable
System.Private.Windows.GdiPlus (1)
Windows\Win32\Graphics\Gdi\DeviceContextHdcScope.cs (1)
24internal class DeviceContextHdcScope : DisposalTracking.Tracker, IDisposable
System.Private.Xml (5)
System\Xml\Core\XmlReader.cs (1)
15public abstract partial class XmlReader : IDisposable
System\Xml\Core\XmlReaderAsync.cs (1)
15public abstract partial class XmlReader : IDisposable
System\Xml\Core\XmlWriter.cs (1)
40public abstract partial class XmlWriter : IDisposable
System\Xml\Core\XmlWriterAsync.cs (1)
12public abstract partial class XmlWriter : IDisposable, IAsyncDisposable
System\Xml\Dom\XmlNodeList.cs (1)
9public abstract class XmlNodeList : IEnumerable, IDisposable
System.Reflection.Metadata (6)
System\Reflection\Internal\MemoryBlocks\AbstractMemoryBlock.cs (1)
13internal abstract class AbstractMemoryBlock : IDisposable
System\Reflection\Internal\MemoryBlocks\MemoryBlockProvider.cs (1)
10internal abstract class MemoryBlockProvider : IDisposable
System\Reflection\Internal\Utilities\CriticalDisposableObject.cs (1)
7internal abstract class CriticalDisposableObject : CriticalFinalizerObject, IDisposable
System\Reflection\Metadata\MetadataReaderProvider.cs (1)
22public sealed class MetadataReaderProvider : IDisposable
System\Reflection\PortableExecutable\PEReader.cs (1)
24public sealed partial class PEReader : IDisposable
System\Reflection\PortableExecutable\PEReader.EmbeddedPortablePdb.cs (1)
22public sealed partial class PEReader : IDisposable
System.Reflection.MetadataLoadContext (1)
System\Reflection\MetadataLoadContext.Apis.cs (1)
97public sealed partial class MetadataLoadContext : IDisposable
System.Runtime.Caching (6)
System\Runtime\Caching\CacheMemoryMonitor.cs (1)
16internal sealed class CacheMemoryMonitor : MemoryMonitor, IDisposable
System\Runtime\Caching\ChangeMonitor.cs (1)
80public abstract class ChangeMonitor : IDisposable
System\Runtime\Caching\MemoryCache.cs (1)
20public class MemoryCache : ObjectCache, IEnumerable, IDisposable
System\Runtime\Caching\MemoryCacheStatistics.cs (1)
17internal sealed class MemoryCacheStatistics : IDisposable
System\Runtime\Caching\MemoryCacheStore.cs (1)
15internal sealed class MemoryCacheStore : IDisposable
System\Runtime\Caching\SRef.cs (1)
28internal sealed class GCHandleRef<T> : IDisposable
System.Runtime.InteropServices.JavaScript (2)
System\Runtime\InteropServices\JavaScript\JSObject.cs (1)
14public partial class JSObject : IDisposable
System\Runtime\InteropServices\JavaScript\JSProxyContext.cs (1)
11internal sealed class JSProxyContext : IDisposable
System.Runtime.Numerics (1)
System\Numerics\BigInteger.RentedBuffer.cs (1)
16internal ref struct RentedBuffer : IDisposable
System.Security.AccessControl (1)
System\Security\AccessControl\Privilege.cs (1)
141private sealed class TlsContents : IDisposable
System.Security.Cryptography (56)
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeBCryptHandle.cs (1)
11internal abstract class SafeBCryptHandle : SafeHandle, IDisposable
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AesGcm.cs (1)
13public sealed partial class AesGcm : IDisposable
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (1)
21public abstract class CompositeMLDsa : IDisposable
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLKem.cs (1)
21public abstract class CompositeMLKem : IDisposable
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptoPool.cs (1)
41internal ref struct CryptoPoolLease : IDisposable
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (1)
27public abstract partial class MLDsa : IDisposable
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (1)
26public abstract partial class MLKem : IDisposable
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (1)
28public abstract partial class SlhDsa : IDisposable
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (1)
28public sealed partial class SP800108HmacCounterKdf : IDisposable
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdfImplementationBase.cs (1)
6internal abstract class SP800108HmacCounterKdfImplementationBase : IDisposable
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellman.cs (1)
23public abstract partial class X25519DiffieHellman : IDisposable
System\Security\Cryptography\AesCcm.cs (1)
12public sealed partial class AesCcm : IDisposable
System\Security\Cryptography\AsymmetricAlgorithm.cs (1)
9public abstract class AsymmetricAlgorithm : IDisposable
System\Security\Cryptography\BasicSymmetricCipher.cs (1)
21internal abstract class BasicSymmetricCipher : IDisposable
System\Security\Cryptography\ChaCha20Poly1305.cs (1)
14public sealed partial class ChaCha20Poly1305 : IDisposable
System\Security\Cryptography\CngKey.Create.cs (1)
16public sealed partial class CngKey : IDisposable
System\Security\Cryptography\CngKey.cs (1)
12public sealed partial class CngKey : IDisposable
System\Security\Cryptography\CngKey.Delete.cs (1)
13public sealed partial class CngKey : IDisposable
System\Security\Cryptography\CngKey.EC.cs (1)
8public sealed partial class CngKey : IDisposable
System\Security\Cryptography\CngKey.Exists.cs (1)
14public sealed partial class CngKey : IDisposable
System\Security\Cryptography\CngKey.Export.cs (1)
13public sealed partial class CngKey : IDisposable
System\Security\Cryptography\CngKey.Import.cs (1)
15public sealed partial class CngKey : IDisposable
System\Security\Cryptography\CngKey.Open.cs (1)
14public sealed partial class CngKey : IDisposable
System\Security\Cryptography\CngKey.OpenHandle.cs (1)
13public sealed partial class CngKey : IDisposable
System\Security\Cryptography\CngKey.Properties.cs (1)
13public sealed partial class CngKey : IDisposable
System\Security\Cryptography\CngKey.StandardProperties.cs (1)
16public sealed partial class CngKey : IDisposable
System\Security\Cryptography\CryptoStream.cs (1)
14public class CryptoStream : Stream, IDisposable
System\Security\Cryptography\DeriveBytes.cs (1)
6public abstract class DeriveBytes : IDisposable
System\Security\Cryptography\ECDiffieHellmanPublicKey.cs (1)
9public abstract partial class ECDiffieHellmanPublicKey : IDisposable
System\Security\Cryptography\ECDiffieHellmanPublicKey.ExportParameters.cs (1)
11public abstract partial class ECDiffieHellmanPublicKey : IDisposable
System\Security\Cryptography\HashAlgorithm.cs (1)
12public abstract class HashAlgorithm : IDisposable, ICryptoTransform
System\Security\Cryptography\HashProvider.cs (1)
12internal abstract class HashProvider : IDisposable
System\Security\Cryptography\IncrementalHash.cs (1)
13public sealed class IncrementalHash : IDisposable
System\Security\Cryptography\Kmac128.cs (1)
20public sealed class Kmac128 : IDisposable
System\Security\Cryptography\Kmac256.cs (1)
20public sealed class Kmac256 : IDisposable
System\Security\Cryptography\KmacXof128.cs (1)
20public sealed class KmacXof128 : IDisposable
System\Security\Cryptography\KmacXof256.cs (1)
20public sealed class KmacXof256 : IDisposable
System\Security\Cryptography\PinAndClear.cs (1)
8internal struct PinAndClear : IDisposable
System\Security\Cryptography\RandomNumberGenerator.cs (1)
12public abstract class RandomNumberGenerator : IDisposable
System\Security\Cryptography\Shake128.cs (1)
20public sealed partial class Shake128 : IDisposable
System\Security\Cryptography\Shake128.Windows.cs (1)
6public sealed partial class Shake128 : IDisposable
System\Security\Cryptography\Shake256.cs (1)
20public sealed partial class Shake256 : IDisposable
System\Security\Cryptography\Shake256.Windows.cs (1)
6public sealed partial class Shake256 : IDisposable
System\Security\Cryptography\SP800108HmacCounterKdf.Windows.cs (1)
11public sealed partial class SP800108HmacCounterKdf : IDisposable
System\Security\Cryptography\SymmetricAlgorithm.cs (1)
10public abstract class SymmetricAlgorithm : IDisposable
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs (1)
15internal sealed partial class CertificatePal : IDisposable, ICertificatePal
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.PrivateKey.cs (1)
11internal sealed partial class CertificatePal : IDisposable, ICertificatePal
System\Security\Cryptography\X509Certificates\ChainPal.Windows.BuildChain.cs (1)
12internal sealed partial class ChainPal : IDisposable, IChainPal
System\Security\Cryptography\X509Certificates\ChainPal.Windows.cs (1)
10internal sealed partial class ChainPal : IDisposable, IChainPal
System\Security\Cryptography\X509Certificates\ChainPal.Windows.GetChainStatusInformation.cs (1)
9internal sealed partial class ChainPal : IDisposable, IChainPal
System\Security\Cryptography\X509Certificates\StorePal.Windows.cs (1)
11internal sealed partial class StorePal : IDisposable, IStorePal, IExportPal, ILoaderPal
System\Security\Cryptography\X509Certificates\StorePal.Windows.Export.cs (1)
12internal sealed partial class StorePal : IDisposable, IStorePal, IExportPal, ILoaderPal
System\Security\Cryptography\X509Certificates\StorePal.Windows.Import.cs (1)
11internal sealed partial class StorePal : IDisposable, IStorePal, IExportPal, ILoaderPal
System\Security\Cryptography\X509Certificates\X509Certificate.cs (1)
16public partial class X509Certificate : IDisposable, IDeserializationCallback, ISerializable
System\Security\Cryptography\X509Certificates\X509Chain.cs (1)
11public class X509Chain : IDisposable
System\Security\Cryptography\X509Certificates\X509Store.cs (1)
8public sealed class X509Store : IDisposable
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\ToBeSignedBuilder.cs (1)
10internal abstract class ToBeSignedBuilder : IDisposable
System.Security.Cryptography.Pkcs (5)
Internal\Cryptography\DecryptorPal.cs (1)
13internal abstract class DecryptorPal : IDisposable
Internal\Cryptography\Pal\Windows\HeapBlockRetainer.cs (1)
18internal sealed class HeapBlockRetainer : IDisposable
Microsoft\Win32\SafeHandles\SafeHeapAllocHandle.cs (1)
11internal sealed class SafeHeapAllocHandle : SafeBuffer, IDisposable
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptoPool.cs (1)
41internal ref struct CryptoPoolLease : IDisposable
System\Security\Cryptography\Pkcs\CmsHash.cs (1)
8internal abstract class CmsHash : IDisposable
System.Security.Permissions (1)
System\Security\SecurityContext.cs (1)
11public sealed partial class SecurityContext : System.IDisposable
System.Security.Principal.Windows (2)
System\Security\Principal\IRCollection.cs (1)
362internal sealed class IdentityReferenceEnumerator : IEnumerator<IdentityReference>, IDisposable
System\Security\Principal\WindowsIdentity.cs (1)
35public class WindowsIdentity : ClaimsIdentity, IDisposable, ISerializable, IDeserializationCallback
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
246internal unsafe class PipeSharedMemory : IDisposable
System.ServiceModel.Primitives (26)
Internals\System\Runtime\AsyncLock.cs (1)
70private struct SafeSemaphoreRelease : IAsyncDisposable, IDisposable
Internals\System\Runtime\InputQueue.cs (1)
12internal sealed class InputQueue<T> : IDisposable where T : class
Internals\System\Runtime\MruCache.cs (1)
10internal class MruCache<TKey, TValue> : IDisposable
Internals\System\Runtime\TaskHelpers.cs (1)
405private class SyncContextScope : IDisposable
System\IdentityModel\Claims\X509CertificateClaimSet.cs (2)
15public class X509CertificateClaimSet : ClaimSet, IIdentityInfo, IPrincipal, IDisposable 521internal class X509Identity : GenericIdentity, IDisposable
System\IdentityModel\Policy\UnconditionalPolicy.cs (1)
19internal class UnconditionalPolicy : IAuthorizationPolicy, IDisposable, ICloneable
System\IdentityModel\Selectors\X509SecurityTokenProvider.cs (1)
13public class X509SecurityTokenProvider : SecurityTokenProvider, IDisposable
System\IdentityModel\Tokens\X509SecurityToken.cs (1)
13public class X509SecurityToken : SecurityToken, IDisposable
System\ServiceModel\ChannelFactory.cs (1)
15public abstract class ChannelFactory : CommunicationObject, IChannelFactory, IDisposable, IAsyncDisposable
System\ServiceModel\Channels\ChannelBindingMessageProperty.cs (1)
10internal sealed class ChannelBindingMessageProperty : IDisposable, IMessageProperty
System\ServiceModel\Channels\DeliveryStrategy.cs (1)
12internal abstract class DeliveryStrategy<ItemType> : IDisposable
System\ServiceModel\Channels\Message.cs (1)
18public abstract class Message : IDisposable
System\ServiceModel\Channels\MessageBuffer.cs (1)
12public abstract class MessageBuffer : IDisposable
System\ServiceModel\Channels\MessageProperties.cs (2)
13public sealed class MessageProperties : IDictionary<string, object>, IDisposable 994internal struct Property : IDisposable
System\ServiceModel\Channels\RequestContext.cs (1)
9public abstract class RequestContext : IDisposable
System\ServiceModel\Channels\RequestContextBase.cs (1)
278internal class RequestContextMessageProperty : IDisposable
System\ServiceModel\ClientBase.cs (1)
18public abstract class ClientBase<TChannel> : ICommunicationObject, IDisposable, IAsyncDisposable
System\ServiceModel\Diagnostics\Activity.cs (1)
10internal class Activity : IDisposable
System\ServiceModel\Diagnostics\ServiceModelActivity.cs (1)
11internal class ServiceModelActivity : IDisposable
System\ServiceModel\OperationContextScope.cs (1)
9public sealed class OperationContextScope : IDisposable
System\ServiceModel\Security\IssuanceTokenProviderState.cs (1)
9internal class IssuanceTokenProviderState : IDisposable
System\ServiceModel\Security\SecurityMessageProperty.cs (1)
13public class SecurityMessageProperty : IMessageProperty, IDisposable
System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
14internal class SecurityContextSecurityToken : SecurityToken, TimeBoundedCache.IExpirableItem, IDisposable
System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
277internal sealed class EnumeratorAdapter : IEnumerator, IDisposable
System.Speech (22)
Internal\ObjectToken\RegistryDataKey.cs (1)
15internal class RegistryDataKey : ISpDataKey, IEnumerable<RegistryDataKey?>, IDisposable
Internal\SapiInterop\SapiGrammar.cs (1)
8internal class SapiGrammar : IDisposable
Internal\SapiInterop\SapiProxy.cs (3)
10internal abstract class SapiProxy(ISpRecognizer recognizer) : IDisposable 56internal class PassThrough : SapiProxy, IDisposable 109internal class MTAThread : SapiProxy, IDisposable
Internal\SapiInterop\SapiRecoContext.cs (1)
8internal class SapiRecoContext : IDisposable
Internal\SapiInterop\SapiRecognizer.cs (1)
11internal class SapiRecognizer : IDisposable
Internal\SapiInterop\SpeechEvent.cs (1)
12internal class SpeechEvent : IDisposable
Internal\SapiInterop\SpStreamWrapper.cs (1)
11internal class SpStreamWrapper : IStream, IDisposable
Internal\StreamMarshaler.cs (1)
10internal sealed class StreamMarshaler : IDisposable
Internal\Synthesis\AudioDeviceOut.cs (2)
14internal class AudioDeviceOut : AudioBase, IDisposable 444private sealed class InItem : IDisposable
Internal\Synthesis\AudioFileOut.cs (1)
14internal class AudioFileOut : AudioBase, IDisposable
Internal\Synthesis\SpeakInfo.cs (1)
115internal class AudioData : IDisposable
Internal\Synthesis\VoiceSynthesis.cs (1)
24internal sealed class VoiceSynthesis : IDisposable
Internal\Synthesis\WaveHeader.cs (1)
9internal sealed class WaveHeader : IDisposable
Recognition\RecognizerBase.cs (2)
22internal class RecognizerBase : IRecognizerInternal, IDisposable, ISpGrammarResourceLoader 3135internal class OperationLock : IDisposable
Recognition\RecognizerInfo.cs (1)
15public class RecognizerInfo : IDisposable
Recognition\SpeechRecognitionEngine.cs (1)
19public class SpeechRecognitionEngine : IDisposable
Recognition\SpeechRecognizer.cs (1)
14public class SpeechRecognizer : IDisposable
Synthesis\SpeechSynthesizer.cs (1)
15public sealed class SpeechSynthesizer : IDisposable
System.Text.Json (7)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
22internal struct ArrayBuffer : IDisposable
src\runtime\src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
13internal sealed class PooledByteBufferWriter : PipeWriter, IDisposable
System\Text\Json\Document\JsonDocument.cs (1)
22public sealed partial class JsonDocument : IDisposable
System\Text\Json\Document\JsonDocument.MetadataDb.cs (1)
86private struct MetadataDb : IDisposable
System\Text\Json\Document\JsonDocument.PropertyNameSet.cs (1)
15private ref struct PropertyNameSet : IDisposable
System\Text\Json\Document\JsonDocument.StackRowStack.cs (1)
16private struct StackRowStack : IDisposable
System\Text\Json\Writer\Utf8JsonWriter.cs (1)
33public sealed partial class Utf8JsonWriter : IDisposable, IAsyncDisposable
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexCompiler.cs (1)
366private struct RentedLocalBuilder : IDisposable
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Emitter.cs (1)
5887private readonly struct FinishEmitBlock(IndentedTextWriter writer, bool faux) : IDisposable
System.Threading (3)
System\Threading\Barrier.cs (1)
95public class Barrier : IDisposable
System\Threading\CountdownEvent.cs (1)
26public class CountdownEvent : IDisposable
System\Threading\HostExecutionContext.cs (1)
6public class HostExecutionContext : IDisposable
System.Threading.RateLimiting (8)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (1)
463public struct Disposer : IDisposable
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
515public struct Disposer : IDisposable
System\Threading\RateLimiting\PartitionedRateLimiter.T.cs (1)
12public abstract class PartitionedRateLimiter<TResource> : IAsyncDisposable, IDisposable
System\Threading\RateLimiting\RateLimiter.cs (1)
11public abstract class RateLimiter : IAsyncDisposable, IDisposable
System\Threading\RateLimiting\RateLimitLease.cs (1)
13public abstract class RateLimitLease : IDisposable
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (1)
577public struct Disposer : IDisposable
System\Threading\RateLimiting\TimerAwaitable.cs (1)
13internal sealed class TimerAwaitable : IDisposable, ICriticalNotifyCompletion
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
515public struct Disposer : IDisposable
System.Threading.Tasks.Dataflow (3)
Internal\ActionOnDispose.cs (3)
54private sealed class NopDisposable : IDisposable 61private sealed class Disposable<T1, T2> : IDisposable 99private sealed class Disposable<T1, T2, T3> : IDisposable
System.Threading.Tasks.Parallel (2)
System\Threading\Tasks\Parallel.ForEachAsync.cs (2)
686private sealed class SyncForEachAsyncState<TSource> : ForEachAsyncState<TSource>, IDisposable 730private sealed class ForAsyncState<T> : ForEachAsyncState<T>, IDisposable
System.Transactions.Local (4)
System\Transactions\InternalTransaction.cs (2)
16internal sealed class InternalTransaction : IDisposable 398internal sealed class FinalizedObject : IDisposable
System\Transactions\Transaction.cs (1)
55public class Transaction : IDisposable, ISerializable
System\Transactions\TransactionScope.cs (1)
37public sealed class TransactionScope : IDisposable
System.Windows.Forms (35)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
28IDisposable,
System\Windows\Forms\ActiveX\AxHost.State.cs (1)
22public class State : ISerializable, IDisposable
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
105private sealed unsafe partial class ActiveXImpl : MarshalByRefObject, IWindowTarget, IDisposable
System\Windows\Forms\ApplicationContext.cs (1)
15public class ApplicationContext : IDisposable
System\Windows\Forms\Components\ImageList\ImageList.NativeImageList.cs (1)
11internal sealed class NativeImageList : IDisposable, IHandle<HIMAGELIST>
System\Windows\Forms\Components\ImageList\ImageListStreamer.cs (1)
12public sealed class ImageListStreamer : ISerializable, IDisposable
System\Windows\Forms\Control.FontHandleWrapper.cs (1)
13internal sealed class FontHandleWrapper : IDisposable
System\Windows\Forms\Control.MetafileDCWrapper.cs (1)
21private class MetafileDCWrapper : IDisposable
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (1)
12public class DataGridViewBand : DataGridViewElement, ICloneable, IDisposable
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
17public abstract partial class DataGridViewCell : DataGridViewElement, ICloneable, IDisposable, IKeyboardToolTip
System\Windows\Forms\Controls\ListView\LisstView.DisposingContext.cs (1)
8private class DisposingContext : IDisposable
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntryCollection.cs (1)
6internal sealed class GridEntryCollection : NonNullCollection<GridEntry>, IDisposable
System\Windows\Forms\Controls\ToolStrips\CachedItemHdcInfo.cs (1)
8internal class CachedItemHdcInfo : IDisposable, IHandle<HDC>
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.cs (1)
13private partial class FeedbackRectangle : IDisposable
System\Windows\Forms\Controls\WebBrowser\HtmlHistory.cs (1)
9public sealed unsafe class HtmlHistory : IDisposable
System\Windows\Forms\Controls\WebBrowser\HtmlShim.cs (1)
17internal abstract class HtmlShim : IDisposable
System\Windows\Forms\Controls\WebBrowser\HtmlShimManager.cs (1)
15internal sealed class HtmlShimManager : IDisposable
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (1)
30IDisposable
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogIcon.cs (1)
30public class TaskDialogIcon : IDisposable
System\Windows\Forms\Input\Cursor.cs (1)
20public sealed class Cursor : IDisposable, ISerializable, IHandle<HICON>, IHandle<HANDLE>, IHandle<HCURSOR>
System\Windows\Forms\Input\MouseHoverTimer.cs (1)
6internal class MouseHoverTimer : IDisposable
System\Windows\Forms\Layout\LayoutTransaction.cs (1)
24internal sealed class LayoutTransaction : IDisposable
System\Windows\Forms\Layout\NullLayoutTransaction.cs (1)
6internal struct NullLayoutTransaction : IDisposable
System\Windows\Forms\Rendering\Animation\AnimatedControlRenderer.cs (1)
12internal abstract class AnimatedControlRenderer : IDisposable
System\Windows\Forms\Rendering\DCMapping.cs (1)
24internal readonly struct DCMapping : IDisposable
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (1)
14public class DrawItemEventArgs : EventArgs, IDisposable, IDeviceContext, IGraphicsHdcProvider, IHdcContext
System\Windows\Forms\Rendering\FontCache.Data.cs (1)
10internal struct Data : IDisposable
System\Windows\Forms\Rendering\GdiCache.ScreenGraphicsScope.cs (1)
15internal class ScreenGraphicsScope : DisposalTracking.Tracker, IDisposable
System\Windows\Forms\Rendering\PaintEventArgs.cs (1)
18public partial class PaintEventArgs : EventArgs, IDisposable, IDeviceContext, IGraphicsHdcProvider, IHdcContext
System\Windows\Forms\Rendering\ScreenDcCache.cs (1)
25internal sealed partial class ScreenDcCache : IDisposable
System\Windows\Forms\Rendering\ScreenDcCache.ScreenDcScope.cs (1)
12internal class ScreenDcScope : DisposalTracking.Tracker, IDisposable
System\Windows\Forms\SuspendPaintingScope.cs (1)
26internal sealed class SuspendPaintingScope : IDisposable
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
872private class ThemeHandle : IDisposable, IHandle<HTHEME>
System\Windows\Forms\WindowsFormsSynchronizationContext.cs (1)
11public sealed class WindowsFormsSynchronizationContext : SynchronizationContext, IDisposable
System\Windows\Forms\WindowSubclassHandler.cs (1)
24internal class WindowSubclassHandler : IDisposable
System.Windows.Forms.Design (20)
System\ComponentModel\Design\DesignerActionService.cs (1)
15public class DesignerActionService : IDisposable
System\ComponentModel\Design\DesignerActionUI.cs (1)
22internal partial class DesignerActionUI : IDisposable
System\ComponentModel\Design\DesignerActionUIService.cs (1)
8public sealed class DesignerActionUIService : IDisposable
System\ComponentModel\Design\DesignSurface.cs (1)
13public class DesignSurface : IDisposable, IServiceProvider
System\ComponentModel\Design\DesignSurfaceManager.cs (1)
10public class DesignSurfaceManager : IServiceProvider, IDisposable
System\ComponentModel\Design\InheritanceService.cs (1)
14public class InheritanceService : IInheritanceService, IDisposable
System\ComponentModel\Design\MenuCommandService.cs (1)
16public class MenuCommandService : IMenuCommandService, IDisposable
System\ComponentModel\Design\ReferenceService.cs (1)
9internal sealed class ReferenceService : IReferenceService, IDisposable
System\ComponentModel\Design\SelectionService.cs (1)
18internal sealed class SelectionService : ISelectionService, IDisposable
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.cs (1)
16public sealed partial class CodeDomLocalizationProvider : IDisposable, IDesignerSerializationProvider
System\ComponentModel\Design\Serialization\ComponentCache.cs (1)
11internal sealed partial class ComponentCache : IDisposable
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
954private sealed class SerializationSession : IDisposable
System\ComponentModel\Design\UndoEngine.cs (1)
18public abstract partial class UndoEngine : IDisposable
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
30public sealed partial class BehaviorService : IDisposable
System\Windows\Forms\Design\Behavior\SelectionManager.cs (1)
16internal sealed class SelectionManager : IDisposable
System\Windows\Forms\Design\CommandSet.cs (1)
24internal partial class CommandSet : IDisposable
System\Windows\Forms\Design\ControlDesigner.DesignerWindowTarget.cs (1)
8private class DesignerWindowTarget : IWindowTarget, IDesignerTarget, IDisposable
System\Windows\Forms\Design\DesignBindingValueUIHandler.cs (1)
14internal partial class DesignBindingValueUIHandler : IDisposable
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (1)
15internal sealed class ToolStripAdornerWindowService : IDisposable
System\Windows\Forms\Design\ToolStripInSituService.cs (1)
15internal class ToolStripInSituService : ISupportInSituService, IDisposable
System.Windows.Forms.Primitives (10)
Microsoft\Office\IMsoComponentManager.NativeAdapter.cs (1)
10internal unsafe class NativeAdapter : Interface, IDisposable
System\Windows\Forms\Animation\HighPrecisionTimer.cs (2)
690private sealed class LoopState : IDisposable 834internal readonly struct TimerRegistration : IDisposable
System\Windows\Forms\Internals\ScaleHelper.DpiAwarenessScope.cs (1)
15private class DpiAwarenessScope : IDisposable
System\Windows\Forms\ObjectCache.cs (1)
9internal abstract class ObjectCache<T> : IDisposable where T : class
System\Windows\Forms\RefCountedCache.CacheEntry.cs (1)
12public abstract class CacheEntry : IDisposable
System\Windows\Forms\RefCountedCache.cs (1)
22internal abstract partial class RefCountedCache<TObject, TCacheEntryData, TKey> : IDisposable
System\Windows\Forms\RefCountedCache.Scope.cs (1)
12internal class Scope : DisposalTracking.Tracker, IDisposable
Windows\Win32\PInvoke.OpenThemeDataScope.cs (1)
18internal class OpenThemeDataScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\System\Com\StandardDispatch.cs (1)
19internal abstract unsafe class StandardDispatch<T> : IDispatch.Interface, IDispatchEx.Interface, IDisposable
System.Xaml (2)
System\Xaml\XamlReader.cs (1)
12public abstract class XamlReader: IDisposable
System\Xaml\XamlWriter.cs (1)
8public abstract class XamlWriter : IDisposable
TestingAppHost1.AppHost (4)
TestingAppHostEntryPointProbe.cs (4)
85public sealed class Probe(string id, Task exited) : IDisposable 97public sealed class BreakpointProbe : IDisposable 127private sealed class ExitSignal(TaskCompletionSource exited) : IDisposable 137private sealed class EmptyDisposable : IDisposable
TestProject.AppHost (1)
TestProgram.cs (1)
14public class TestProgram : IDisposable
UIAutomationClient (1)
System\Windows\Automation\CacheRequest.cs (1)
540internal class CacheRequestActivation : IDisposable
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\CommonGetThemePartSize.cs (1)
10internal class ThemePart: IDisposable
vbc (1)
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
98internal sealed class CompilerServerLogger : ICompilerServerLogger, IDisposable
VBCSCompiler (1)
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
98internal sealed class CompilerServerLogger : ICompilerServerLogger, IDisposable
vstest.console (1)
Internal\ProgressIndicator.cs (1)
14internal sealed class ProgressIndicator : IProgressIndicator, IDisposable
vstest.console.arm64 (1)
src\vstest\src\vstest.console\Internal\ProgressIndicator.cs (1)
14internal sealed class ProgressIndicator : IProgressIndicator, IDisposable
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (1)
1462internal class AvalonAdapter : SWC.DockPanel, IDisposable, IKeyboardInputSite, IAvalonAdapter
System\Windows\Integration\WindowsFormsHost.cs (1)
448private class DummyNativeWindow : NativeWindow, IDisposable
1789 references to IDisposable
aspire (15)
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
638using var registration = changeToken.RegisterChangeCallback(state => ((TaskCompletionSource<bool>)state!).TrySetResult(true), tcs);
Diagnostics\FileLoggerProvider.cs (1)
224public IDisposable? BeginScope<TState>(TState state) where TState : notnull => null;
DotNet\IProcessExecution.cs (1)
10/// be done from a synchronous <see cref="IDisposable.Dispose"/> without blocking.
DotNet\ProcessExecution.cs (3)
38private IDisposable? _detachedUnixLauncherLease; 106IDisposable? detachedUnixLauncherLease = null; 151private async Task<IDisposable?> ResolveDetachedUnixLauncherAsync(CancellationToken cancellationToken)
Interaction\ConsoleInteractionService.cs (4)
247using var promptScope = _logBufferContext.BeginInteractivePromptScope(); 324using var promptScope = _logBufferContext.BeginInteractivePromptScope(); 395using var promptScope = _logBufferContext.BeginInteractivePromptScope(); 683using var promptScope = _logBufferContext.BeginInteractivePromptScope();
Interaction\ConsoleLogBufferContext.cs (1)
26internal IDisposable BeginInteractivePromptScope()
Interaction\SpectreConsoleLoggerProvider.cs (1)
42public IDisposable? BeginScope<TState>(TState state) where TState : notnull => null;
Projects\AppHostServerSession.cs (2)
218(_project as IDisposable)?.Dispose(); 442(_project as IDisposable)?.Dispose();
Utils\NpmInstallDetection.cs (1)
72internal static IDisposable UseEnvironmentForTesting(IReadOnlyDictionary<string, string?> environment)
Aspire.Cli.Tests (19)
Backchannel\AppHostAuxiliaryBackchannelTests.cs (2)
86private readonly List<IDisposable> _disposables = []; 123foreach (var disposable in _disposables)
Commands\PsCommandTests.cs (2)
765private readonly List<IDisposable> _disposables = []; 800foreach (var disposable in _disposables)
Commands\UpdateCommandTests.cs (2)
705using var npmScope = NpmInstallDetection.UseEnvironmentForTesting(CreateNpmInstallEnvironment()); 1185using var npmScope = NpmInstallDetection.UseEnvironmentForTesting(CreateNpmInstallEnvironment());
Interaction\SpectreConsoleLoggerProviderTests.cs (2)
172using var scope = bufferContext.BeginInteractivePromptScope(); 318public IDisposable? SecondScope { get; private set; }
Projects\RunningInstanceManagerTests.cs (2)
67private readonly List<IDisposable> _disposables = []; 108foreach (var disposable in _disposables)
tests\Shared\Logging\TestLogger.cs (1)
25public IDisposable BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\TestLoggerT.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\XunitLoggerProvider.cs (1)
117public IDisposable BeginScope<TState>(TState state) where TState : notnull
TestServices\CapturingLogger.cs (1)
16public IDisposable BeginScope<TState>(TState state) where TState : notnull => NullScope.Instance;
Utils\CliUpdateNotificationServiceTests.cs (1)
293using var npmScope = NpmInstallDetection.UseEnvironmentForTesting(CreateNpmInstallEnvironment());
Utils\NpmInstallDetectionTests.cs (4)
13using var scope = NpmInstallDetection.UseEnvironmentForTesting(new Dictionary<string, string?> 37using var scope = NpmInstallDetection.UseEnvironmentForTesting(new Dictionary<string, string?> 51using var scope = NpmInstallDetection.UseEnvironmentForTesting(new Dictionary<string, string?> 65using var baseline = NpmInstallDetection.UseEnvironmentForTesting(new Dictionary<string, string?>());
Aspire.Dashboard (22)
Components\Controls\Chart\ChartContainer.razor.cs (1)
25private IDisposable? _themeChangedSubscription;
Components\Dialogs\SettingsDialog.razor.cs (1)
20private IDisposable? _themeChangedSubscription;
Components\Layout\MainLayout.razor.cs (2)
29private IDisposable? _themeChangedSubscription; 30private IDisposable? _locationChangingRegistration;
Components\Pages\ConsoleLogs.razor.cs (1)
203private IDisposable? _consoleLogsFiltersChangedSubscription;
Model\BrowserLinkOutgoingPeerResolver.cs (1)
10public IDisposable OnPeerChanges(Func<Task> callback)
Model\ConsoleLogsManager.cs (1)
54public IDisposable OnFiltersChanged(Func<Task> callback)
Model\DashboardSqliteOutgoingPeerResolver.cs (1)
23public IDisposable OnPeerChanges(Func<Task> callback) => NullDisposable.Instance;
Model\IOutgoingPeerResolver.cs (1)
9IDisposable OnPeerChanges(Func<Task> callback);
Model\ResourceOutgoingPeerResolver.cs (1)
307public IDisposable OnPeerChanges(Func<Task> callback)
Model\ThemeManager.cs (1)
114public IDisposable OnThemeChanged(Func<Task> callback)
Otlp\Storage\SqliteTelemetryRepository.cs (2)
29private readonly List<IDisposable> _outgoingPeerSubscriptions = []; 285foreach (var subscription in _outgoingPeerSubscriptions)
ServiceClient\DashboardDataSourcePool.cs (4)
83var runLease = _runStore.TryAcquireRunLease(run); 206private sealed class Entry(DashboardSqliteDatabase database, IDisposable runLease) 209public IDisposable RunLease { get; } = runLease; 269(_resourceRepository.Value as IDisposable)?.Dispose();
ServiceClient\DashboardRunStore.cs (2)
55IDisposable? TryAcquireRunLease(DashboardRunDescriptor run); 314public IDisposable? TryAcquireRunLease(DashboardRunDescriptor run)
Telemetry\TelemetryLoggerProvider.cs (1)
40public IDisposable? BeginScope<TState>(TState state) where TState : notnull => null;
Utils\AsyncLock.cs (2)
17public IDisposable Lock() 28public async ValueTask<IDisposable> LockAsync(CancellationToken cancellationToken = default)
Aspire.Dashboard.Components.Tests (6)
Pages\ConsoleLogsTests.cs (1)
63using var changeHandler = navigationManager.RegisterLocationChangingHandler(c =>
Pages\MetricsTests.cs (1)
358using var changeHandler = navigationManager.RegisterLocationChangingHandler(c =>
Shared\FluentUISetupHelpers.cs (1)
289public IDisposable? TryAcquireRunLease(DashboardRunDescriptor run) => null;
tests\Shared\Logging\TestLogger.cs (1)
25public IDisposable BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\TestLoggerT.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\XunitLoggerProvider.cs (1)
117public IDisposable BeginScope<TState>(TState state) where TState : notnull
Aspire.Dashboard.Tests (16)
Integration\OtlpGrpcServiceTests.cs (1)
200using var monitorRegistration = app.DashboardOptionsMonitor.OnChange((o, n) =>
Model\DashboardDataSourceTests.cs (1)
834using (var releasedRunLease = currentRunStore.TryAcquireRunLease(historicalRun))
Model\TestOptionsMonitor.cs (1)
22public IDisposable? OnChange(Action<T, string?> listener)
OtlpApiKeyAuthenticationHandlerTests.cs (2)
112public IDisposable OnChange(Action<T, string> listener) => throw new NotImplementedException(); 114public IDisposable OnChange(Action<T> listener) => throw new NotImplementedException();
Shared\SqliteRepositoryTestHelpers.cs (1)
83where TRepository : IDisposable
Shared\TestDashboardDataSource.cs (2)
43Func<DashboardRunDescriptor, IDisposable?>? tryAcquireRunLease = null, 64public IDisposable? TryAcquireRunLease(DashboardRunDescriptor run) => tryAcquireRunLease?.Invoke(run);
TelemetryRepositoryTests\TelemetryRepositoryTestBase.cs (2)
87IDisposable owner) : IDisposable 94private sealed class TemporaryDirectoryRepositoryContext(IDisposable repositoryContext, string temporaryDirectory) : IDisposable
TelemetryRepositoryTests\TestOutgoingPeerResolver.cs (1)
24public IDisposable OnPeerChanges(Func<Task> callback)
tests\Shared\Logging\TestLogger.cs (1)
25public IDisposable BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\TestLoggerT.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\XunitLoggerProvider.cs (1)
117public IDisposable BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Telemetry\InMemoryTelemetryRepository.cs (2)
82private readonly List<IDisposable> _peerResolverSubscriptions = new(); 2644foreach (var subscription in _peerResolverSubscriptions)
Aspire.Hosting (21)
ApplicationModel\CustomResourceSnapshot.cs (2)
304(enumeratorX as IDisposable)?.Dispose(); 305(enumeratorY as IDisposable)?.Dispose();
ApplicationModel\ResourceLoggerService.cs (8)
75public IDisposable? BeginScope<TState>(TState state) where TState : notnull 77var scopes = new List<IDisposable>(); 100private sealed class CompositeDisposable(List<IDisposable> disposables) : IDisposable 102private readonly List<IDisposable> _disposables = disposables; 106foreach (var disposable in _disposables) 204internal IDisposable Subscribe(string resourceName, Action<IReadOnlyList<LogLine>> onLogs) 508public IDisposable Subscribe(Action<IReadOnlyList<LogLine>> onLogs) 828IDisposable? ILogger.BeginScope<TState>(TState state) => null;
Backchannel\BackchannelLoggerProvider.cs (1)
81public IDisposable? BeginScope<TState>(TState state) where TState : notnull
Dcp\DcpExecutor.cs (3)
937using var _ = await ConcurrencyUtils.AcquireAllAsync(replicas.Select(r => r.SerializedOpSemaphore), cancellationToken).ConfigureAwait(false); 1139using var _ = await ConcurrencyUtils.AcquireAllAsync([appResource.SerializedOpSemaphore], cancellationToken).ConfigureAwait(false); 1210using var _ = await ConcurrencyUtils.AcquireAllAsync([appResource.SerializedOpSemaphore], cancellationToken).ConfigureAwait(false);
IDistributedApplicationBuilder.cs (1)
275/// type implements <see cref="IDisposable" /> and should be disposed of when it is no longer needed. Note that in
InteractionService.cs (1)
70/// The previous value is restored when the returned <see cref="IDisposable"/> is disposed.
Pipelines\PipelineLoggerProvider.cs (1)
71public IDisposable? BeginScope<TState>(TState state) where TState : notnull =>
ResourceLoggerForwarderService.cs (1)
70using var subscription = resourceLoggerService.Subscribe(resourceId, logEvent =>
Utils\ConcurrencyUtils.cs (1)
40public static async ValueTask<IDisposable> AcquireAllAsync(this IEnumerable<SemaphoreSlim> semaphores, CancellationToken cancellationToken = default)
Utils\FileSystemService.cs (2)
22private readonly ConcurrentDictionary<string, IDisposable> _allocatedItems = new(); 65internal void TrackItem(string path, IDisposable item)
Aspire.Hosting.Docker (2)
src\Shared\Yaml\YamlIEnumerableSkipEmptyObjectGraphVisitor.cs (2)
57using var _ = enumerator as IDisposable;
Aspire.Hosting.EntityFrameworkCore.Tests (1)
EFCoreOperationExecutorTests.cs (1)
244public IDisposable BeginScope<TState>(TState state) where TState : notnull => NullScope.Instance;
Aspire.Hosting.Kubernetes (2)
src\Shared\Yaml\YamlIEnumerableSkipEmptyObjectGraphVisitor.cs (2)
57using var _ = enumerator as IDisposable;
Aspire.Hosting.Radius.Tests (1)
ResourceMapping\ResourceTypeMapperTests.cs (1)
193public IDisposable? BeginScope<TState>(TState state) where TState : notnull => null;
Aspire.Hosting.RemoteHost (1)
Ats\HandleRegistry.cs (1)
174else if (entry.Object is IDisposable disposable)
Aspire.Hosting.RemoteHost.Tests (2)
CapabilityDispatcherTests.cs (1)
2248public IDisposable? NonAtsProperty { get; set; }
RecordingLogger.cs (1)
17public IDisposable BeginScope<TState>(TState state) where TState : notnull => NullScope.Instance;
Aspire.Hosting.Testing (4)
DistributedApplicationEntryPointInvoker.cs (4)
74using var subscription = DiagnosticListener.AllListeners.Subscribe(this); 160private IDisposable? _disposable; 213private IDisposable? _hostingListener; 225using var subscription = DiagnosticListener.AllListeners.Subscribe(observer);
Aspire.Hosting.Testing.Tests (3)
tests\Shared\Logging\TestLogger.cs (1)
25public IDisposable BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\TestLoggerT.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\XunitLoggerProvider.cs (1)
117public IDisposable BeginScope<TState>(TState state) where TState : notnull
Aspire.Hosting.Tests (32)
Dashboard\DashboardResourceTests.cs (1)
894public IDisposable? BeginScope<TState>(TState state) where TState : notnull => null;
Dcp\DcpExecutorTests.cs (14)
1713using var subscription = resourceLoggerService.Subscribe(dcpResourceName, batch => 1782using var subscription = resourceLoggerService.Subscribe(container.Metadata.Name, batch => 1866using var subscription = resourceLoggerService.Subscribe(dcpResourceName, batch => 1959using var subscription = resourceLoggerService.Subscribe(blockingDcpResourceName, _ => { }); 2037using var subscription = resourceLoggerService.Subscribe(container.Metadata.Name, batch => 2117using var subscription = resourceLoggerService.Subscribe(container.Metadata.Name, batch => 2201using var subscription = resourceLoggerService.Subscribe(container.Metadata.Name, batch => 2323IDisposable? firstSubscription = resourceLoggerService.Subscribe(dcpResourceName, AddLogLines); 2324IDisposable? secondSubscription = null; 2479IDisposable? firstSubscription = resourceLoggerService.Subscribe(dcpResourceName, AddLogLines); 2480IDisposable? secondSubscription = null; 2805using var subscription = resourceLoggerService.Subscribe(dcpResourceName, batch => 2986using var subscription = resourceLoggerService.Subscribe(dcpResourceName, _ => { }); 3071using var subscription = resourceLoggerService.Subscribe(dcpResourceName, _ => { });
Dcp\GatedLogger.cs (1)
16public IDisposable? BeginScope<TState>(TState state) where TState : notnull
Dcp\KubernetesServiceTests.cs (8)
30using var disposableFileSystem = fileSystem; 54using var disposableFileSystem = fileSystem; 78using var disposableFileSystem = fileSystem; 101using var disposableFileSystem = fileSystem; 123using var disposableFileSystem = fileSystem; 145using var disposableFileSystem = fileSystem; 179using var disposableFileSystem = fileSystem; 199private static (KubernetesService Service, string KubeconfigPath, IDisposable FileSystem) CreateService(
ResourceLoggerServiceTests.cs (8)
319using var subscription = service.Subscribe(resourceName, logLines.AddRange); 354using var subscription = service.Subscribe(resourceName, logLines.AddRange); 397IDisposable? subscription = null; 461using var subscription = service.Subscribe(resourceName, _ => { }); 511using var subscription = service.Subscribe(resourceName, batch => 554using var subscription = service.Subscribe(resourceName, batch => 602using var stableSubscription = service.Subscribe(resourceName, batch => 623using var subscription = service.Subscribe(resourceName, batch =>
Aspire.Hosting.TestUtilities (3)
tests\Shared\Logging\TestLogger.cs (1)
25public IDisposable BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\TestLoggerT.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\XunitLoggerProvider.cs (1)
117public IDisposable BeginScope<TState>(TState state) where TState : notnull
Aspire.Playground.Tests (3)
tests\Shared\Logging\TestLogger.cs (1)
25public IDisposable BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\TestLoggerT.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\XunitLoggerProvider.cs (1)
117public IDisposable BeginScope<TState>(TState state) where TState : notnull
Aspire.RabbitMQ.Client.Tests (1)
AspireRabbitMQLoggingTests.cs (1)
274public IDisposable? BeginScope<TState>(TState state) where TState : notnull =>
Aspire.RabbitMQ.Client.v6.Tests (1)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQLoggingTests.cs (1)
274public IDisposable? BeginScope<TState>(TState state) where TState : notnull =>
Aspire.StackExchange.Redis (4)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisInstrumentation.cs (4)
29/// <returns><see cref="IDisposable"/> to cancel the registration.</returns> 30public IDisposable AddConnection(IConnectionMultiplexer connection) 38/// <returns><see cref="IDisposable"/> to cancel the registration.</returns> 39public IDisposable AddConnection(string name, IConnectionMultiplexer connection)
Client.ClientBase.IntegrationTests (3)
ChannelBaseTests.4.0.0.cs (1)
241((IDisposable)client).Dispose();
ClientBaseTests.4.0.0.cs (1)
509((IDisposable)client).Dispose();
SessionTests.cs (1)
502private static IDisposable DuplexTestSetupHelper()
csc (1)
src\roslyn\src\Compilers\Shared\BuildClient.cs (1)
317IDisposable? npcs = null;
dotnet (10)
Commands\Run\RunCommand.cs (1)
547using var _ = MSBuildForwardingAppWithoutLogging.SetMSBuildRequiredEnvironmentVariables();
Commands\Run\RunCommandSelector.cs (2)
202using var _ = MSBuildForwardingAppWithoutLogging.SetMSBuildRequiredEnvironmentVariables(); 238using var _ = MSBuildForwardingAppWithoutLogging.SetMSBuildRequiredEnvironmentVariables();
Commands\Run\VirtualProjectBuildingCommand.cs (1)
208IDisposable? environmentScope = null;
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (1)
758using var _ = MSBuildForwardingAppWithoutLogging.SetMSBuildRequiredEnvironmentVariables();
Commands\Test\MTP\MSBuildUtility.cs (2)
37using var _ = MSBuildForwardingAppWithoutLogging.SetMSBuildRequiredEnvironmentVariables(); 89using var _ = MSBuildForwardingAppWithoutLogging.SetMSBuildRequiredEnvironmentVariables();
Commands\Test\MTP\Terminal\TestProgressStateAwareTerminal.cs (1)
110((IDisposable)_cts).Dispose();
MSBuildSession.cs (2)
58using var _ = MSBuildForwardingAppWithoutLogging.SetMSBuildRequiredEnvironmentVariables(); 100using var _ = MSBuildForwardingAppWithoutLogging.SetMSBuildRequiredEnvironmentVariables();
dotnet-format (1)
Logging\SimpleConsoleLogger.cs (1)
58public IDisposable? BeginScope<TState>(TState state) where TState : notnull
dotnet-svcutil-lib (40)
CodeDomFixup\CodeDomVisitors\NameScope.cs (1)
14void IDisposable.Dispose()
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (1)
68void IDisposable.Dispose()
FrameworkFork\Microsoft.Xml\Xml\Core\XmlEventCache.cs (1)
244((IDisposable)writer).Dispose();
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWrappingWriter.cs (1)
248((IDisposable)writer).Dispose();
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNodeList.cs (1)
28void IDisposable.Dispose()
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCountingReader.cs (2)
335IDisposable disposableReader = _innerReader as IDisposable;
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (2)
478if (value is IDisposable) 480((IDisposable)value).Dispose();
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
147SecurityUtils.DisposeIfNecessary(_issuer as IDisposable);
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\UnconditionalPolicy.cs (1)
196SecurityUtils.DisposeIfNecessary(_primaryIdentity as IDisposable);
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (1)
364public static void DisposeIfNecessary(IDisposable obj)
FrameworkFork\System.ServiceModel\System\ServiceModel\ChannelFactory.cs (1)
169void IDisposable.Dispose()
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelBindingMessageProperty.cs (1)
121((IDisposable)_channelBinding).Dispose();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelBindingUtility.cs (2)
63IDisposable disposable = (IDisposable)channelBinding;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (1)
227void IDisposable.Dispose()
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageBuffer.cs (3)
15void IDisposable.Dispose() 100IDisposable disposable = _properties[i].Value as IDisposable;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (2)
880IDisposable disposable = _value as IDisposable;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestContext.cs (1)
24void IDisposable.Dispose()
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestContextBase.cs (1)
297void IDisposable.Dispose()
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (1)
1591void IDisposable.Dispose()
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
661void IDisposable.Dispose()
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SessionConnectionReader.cs (2)
337private static IDisposable CreateProcessActionActivity() 388IDisposable activity = ClientDuplexConnectionReader.CreateProcessActionActivity();
FrameworkFork\System.ServiceModel\System\ServiceModel\ClientBase.cs (3)
188void IDisposable.Dispose() 756void IDisposable.Dispose() 758((IDisposable)_channel).Dispose();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (1)
959return ((!type.IsSealed()) || typeof(IDisposable).IsAssignableFrom(type));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\MessageRpc.cs (4)
352IDisposable disposableParameter = this.ReturnParameter as IDisposable; 374IDisposable disposableParameter = null; 379disposableParameter = obj as IDisposable;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (1)
111IDisposable boundActivity = null;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
170IDisposable boundActivity = null;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (2)
728else if (obj is IDisposable) 730((IDisposable)obj).Dispose();
dotnet-watch (1)
UI\SpectreBuildParametersSelectionPrompt.cs (1)
21=> (console as IDisposable)?.Dispose();
GenerateDocumentationAndConfigFiles (49)
src\roslyn\src\Compilers\Core\Portable\Collections\SmallDictionary.cs (3)
591void IDisposable.Dispose() 708void IDisposable.Dispose() 814void IDisposable.Dispose()
src\roslyn\src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
20/// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
17void IDisposable.Dispose()
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DisposeMethodKind.cs (2)
18/// An override of <see cref="System.IDisposable.Dispose"/>. 40/// A method named Close on a type that implements <see cref="System.IDisposable"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
27where T : class, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
117/// Checks if the given method implements <see cref="IDisposable.Dispose"/> or overrides an implementation of <see cref="IDisposable.Dispose"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (3)
705void IDisposable.Dispose() 822void IDisposable.Dispose() 928void IDisposable.Dispose()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (8)
159public static IDisposable LogBlock(FunctionId functionId, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 165public static IDisposable LogBlock(FunctionId functionId, string? message, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 174public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 183public static IDisposable LogBlock<TArg>(FunctionId functionId, Func<TArg, string> messageGetter, TArg arg, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 192public static IDisposable LogBlock<TArg0, TArg1>(FunctionId functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 201public static IDisposable LogBlock<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 210public static IDisposable LogBlock<TArg0, TArg1, TArg2, TArg3>(FunctionId functionId, Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 218public static IDisposable LogBlock(FunctionId functionId, LogMessage logMessage, CancellationToken token)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
19public static IDisposable CreateLogBlock(ILogger logger, FunctionId functionId, LogMessage message, int blockId, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
581/// Callers should <see cref="IDisposable.Dispose"/> the instance returned. No check is necessary if 582/// <c>default</c> was returned before calling <see cref="IDisposable.Dispose"/>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ConcatImmutableArray`1.cs (1)
53readonly void IDisposable.Dispose()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReferenceCountedDisposable.cs (5)
11/// to a more base type. This can include types that do not implement <see cref="IDisposable"/> if you want to prevent a caller from accidentally 22/// <para>This call is not valid after <see cref="IDisposable.Dispose"/> is called. If this property or the target 23/// object is used concurrently with a call to <see cref="IDisposable.Dispose"/>, it is possible for the code to be 26/// <see cref="IDisposable.Dispose"/> is called is unspecified; code is expected to not use this property or the object 27/// it returns after any code invokes <see cref="IDisposable.Dispose"/>.</para>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (5)
16/// deterministically released (by calling <see cref="IDisposable.Dispose"/>) when the last reference is 36/// call to <see cref="IDisposable.Dispose"/> when the last reference to it is released. However, in the event 50/// <para>Do not call <see cref="IDisposable.Dispose"/> on the target object directly. It will be called 59where T : class, IDisposable 86/// Initializes a new reference counting wrapper around an <see cref="IDisposable"/> object.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
15internal sealed class ReferenceCountedDisposableCache<TKey, TValue> where TValue : class, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
259=> compilation.GetTypeByMetadataName(typeof(IDisposable).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (3)
113: GetIDisposableInterfaceAndDisposeMethod(typeof(IDisposable).FullName!, nameof(IDisposable.Dispose)); 151.GetMembers(nameof(IDisposable.Dispose))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (4)
29private readonly HashSet<IDisposable> _ownedDisposableServices = new(ReferenceEqualityComparer.Instance); 54ImmutableArray<IDisposable> disposableServices; 63foreach (var service in disposableServices) 106if (checkAddDisposable && languageService is IDisposable disposable)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
15where T : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (4)
31private readonly HashSet<IDisposable> _ownedDisposableServices = new(ReferenceEqualityComparer.Instance); 76ImmutableArray<IDisposable> disposableServices; 91foreach (var service in disposableServices) 121if (checkAddDisposable && serviceInstance is IDisposable disposable)
GetDocument.Insider (2)
src\5ff452f563f7a4b9\HostFactoryResolver.cs (2)
205private IDisposable? _disposable; 231using var subscription = DiagnosticListener.AllListeners.Subscribe(this);
ilc (2)
Program.cs (2)
724if (debugInfoProvider is IDisposable) 725((IDisposable)debugInfoProvider).Dispose();
ILCompiler.Compiler (2)
src\runtime\src\coreclr\tools\Common\Pgo\PgoFormat.cs (1)
181void IDisposable.Dispose() { }
src\runtime\src\tools\illink\src\ILLink.Shared\TypeSystemProxy\ParameterCollection.cs (1)
60void IDisposable.Dispose() { }
ILCompiler.DependencyAnalysisFramework (1)
DgmlWriter.cs (1)
98void IDisposable.Dispose()
ILCompiler.ReadyToRun (2)
src\runtime\src\coreclr\tools\Common\Pgo\PgoFormat.cs (1)
181void IDisposable.Dispose() { }
src\runtime\src\tools\illink\src\ILLink.Shared\TypeSystemProxy\ParameterCollection.cs (1)
60void IDisposable.Dispose() { }
illink (2)
ILLink.RoslynAnalyzer (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TypeSystemProxy\ParameterCollection.cs (1)
60void IDisposable.Dispose() { }
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
XunitLoggerProvider.cs (1)
37public IDisposable? BeginScope<TState>(TState state)
Microsoft.AspNetCore (1)
WebApplication.cs (1)
200void IDisposable.Dispose() => _host.Dispose();
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\Infrastructure\MvcDetector.cs (1)
31var members = disposable.GetMembers(nameof(IDisposable.Dispose));
Microsoft.AspNetCore.Authentication.Negotiate (2)
NegotiateHandler.cs (2)
425private void RegisterForConnectionDispose(IDisposable authState) 434((IDisposable)state).Dispose();
Microsoft.AspNetCore.Authorization.Policy (1)
src\aspnetcore\src\Http\Routing\src\DataSourceDependentCache.cs (1)
24private IDisposable? _disposable;
Microsoft.AspNetCore.Components (8)
NavigationManager.cs (2)
575/// <returns>An <see cref="IDisposable"/> that can be disposed to unregister the location changing handler.</returns> 576public IDisposable RegisterLocationChangingHandler(Func<LocationChangingContext, ValueTask> locationChangingHandler)
OwningComponentBase.cs (2)
48void IDisposable.Dispose() 62if (disposing && _scope.HasValue && _scope.Value is IDisposable disposable)
Rendering\ComponentState.cs (3)
322(Component as IDisposable)?.Dispose(); 329((IDisposable)_nextRenderTree).Dispose(); 330((IDisposable)CurrentRenderTree).Dispose();
RenderTree\Renderer.cs (1)
1237/// <param name="disposing"><see langword="true"/> if this method is being invoked by <see cref="IDisposable.Dispose"/>, otherwise <see langword="false"/>.</param>
Microsoft.AspNetCore.Components.AI (7)
Components\ConversationTurnRenderer.cs (1)
15private readonly IDisposable? _blockAddedSub;
Components\MessageInput.cs (1)
22private IDisposable? _statusSub;
Components\MessageList.cs (2)
21private IDisposable? _turnAddedSub; 22private IDisposable? _statusChangedSub;
Engine\AgentContext.cs (3)
137public IDisposable RegisterOnTurnAdded(Action<ConversationTurn> callback) 149public IDisposable RegisterOnStatusChanged(Action<ConversationStatus> callback) 161public IDisposable RegisterOnBlockAdded(Action<ConversationTurn, ContentBlock> callback)
Microsoft.AspNetCore.Components.Authorization (1)
_generated\0\CascadingAuthenticationState_razor.g.cs (1)
103void IDisposable.Dispose()
Microsoft.AspNetCore.Components.Endpoints (2)
Builder\RazorComponentEndpointDataSource.cs (1)
33private IDisposable? _disposableChangeToken; // THREADING: protected by _lock
FormMapping\FormDataReader.cs (1)
308void IDisposable.Dispose() => _enumerator.Dispose();
Microsoft.AspNetCore.Components.Forms (3)
DataAnnotationsValidator.cs (2)
11private IDisposable? _subscriptions; 65void IDisposable.Dispose()
EditContextDataAnnotationsExtensions.cs (1)
29public static IDisposable EnableDataAnnotationsValidation(this EditContext editContext, IServiceProvider serviceProvider)
Microsoft.AspNetCore.Components.Server (1)
Circuits\RevalidatingServerAuthenticationStateProvider.cs (1)
110void IDisposable.Dispose()
Microsoft.AspNetCore.Components.Web (11)
Forms\InputBase.cs (1)
411void IDisposable.Dispose()
Forms\InputFile.cs (2)
102/// <param name="disposing"><see langword="true"/> if called within <see cref="IDisposable.Dispose"/>.</param> 111void IDisposable.Dispose()
Forms\InputFile\InputFileJsCallbacksRelay.cs (1)
13public IDisposable DotNetReference { get; }
Forms\Mapping\EditContextFormMappingExtensions.cs (1)
12public static IDisposable EnableFormMappingContextExtensions(this EditContext context, FormMappingContext mappingContext)
Forms\Mapping\FormMappingValidator.cs (2)
11private IDisposable? _subscriptions; 53void IDisposable.Dispose()
Forms\ValidationMessage.cs (2)
137/// <param name="disposing"><see langword="true"/> if called within <see cref="IDisposable.Dispose"/>.</param> 142void IDisposable.Dispose()
Forms\ValidationSummary.cs (1)
146void IDisposable.Dispose()
Routing\NavigationLock.cs (1)
17private IDisposable? _locationChangingRegistration;
Microsoft.AspNetCore.Components.WebAssembly (6)
Hosting\WebAssemblyHost.cs (1)
106else if (_services is IDisposable disposableServices)
Hosting\WebAssemblyHostConfiguration.cs (4)
21private readonly List<IDisposable> _changeTokenRegistrations = new List<IDisposable>(); 181foreach (var registration in _changeTokenRegistrations) 189(provider as IDisposable)?.Dispose();
Services\WebAssemblyConsoleLogger.cs (1)
34public IDisposable? BeginScope<TState>(TState state) where TState : notnull
Microsoft.AspNetCore.Components.WebAssembly.Authentication (1)
Services\AuthorizationMessageHandler.cs (1)
127void IDisposable.Dispose()
Microsoft.AspNetCore.Cryptography.Internal (1)
WeakReferenceHelpers.cs (1)
13where T : class, IDisposable
Microsoft.AspNetCore.DataProtection (1)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorConfiguration.cs (1)
55(encryptor as IDisposable)?.Dispose();
Microsoft.AspNetCore.Hosting (3)
Internal\HostingApplication.cs (1)
131public IDisposable? Scope { get; set; }
Internal\HostingApplicationDiagnostics.cs (1)
597public static IDisposable? RequestScope(ILogger logger, HttpContext httpContext)
Internal\WebHost.cs (1)
343case IDisposable disposable:
Microsoft.AspNetCore.Http (2)
Features\RequestServicesFeature.cs (1)
67case IDisposable disposable:
Internal\BufferingHelper.cs (1)
27public static MultipartSection EnableRewind(this MultipartSection section, Action<IDisposable> registerForDispose,
Microsoft.AspNetCore.Http.Abstractions (4)
Features\IConnectionAuthenticationRefreshFeature.cs (2)
27/// <returns>An <see cref="IDisposable"/> that can be disposed to unregister the callback.</returns> 34IDisposable OnAuthenticationRefreshed(Action<AuthenticationRefreshContext, object?> callback, object? state);
HttpResponse.cs (2)
27else if (state is IDisposable disposable) 116public virtual void RegisterForDispose(IDisposable disposable) => OnCompleted(_disposeDelegate, disposable);
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionContext.cs (2)
282public IDisposable OnAuthenticationRefreshed(Action<AuthenticationRefreshContext, object?> callback, object? state) 660(identity as IDisposable)?.Dispose();
Microsoft.AspNetCore.Http.Extensions (1)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\FormDataReader.cs (1)
308void IDisposable.Dispose() => _enumerator.Dispose();
Microsoft.AspNetCore.InternalTesting (15)
AssemblyTestLog.cs (7)
59public IDisposable StartTestLog(ITestOutputHelper output, string className, out ILoggerFactory loggerFactory, [CallerMemberName] string testName = null) => 63public IDisposable StartTestLog(ITestOutputHelper output, string className, out ILoggerFactory loggerFactory, LogLevel minLogLevel, [CallerMemberName] string testName = null) => 66internal IDisposable StartTestLog(ITestOutputHelper output, string className, out ILoggerFactory loggerFactory, LogLevel minLogLevel, out string resolvedTestName, out string logOutputDirectory, [CallerMemberName] string testName = null) 76var scope = logger.BeginScope("Test: {testName}", testName); 88(serviceProvider as IDisposable)?.Dispose(); 299void IDisposable.Dispose() 301(_serviceProvider as IDisposable)?.Dispose();
LoggedTest\LoggedTestBase.cs (3)
22private IDisposable _testLog; 49public IDisposable StartLog(out ILoggerFactory loggerFactory, [CallerMemberName] string testName = null) => StartLog(out loggerFactory, LogLevel.Debug, testName); 53public IDisposable StartLog(out ILoggerFactory loggerFactory, LogLevel minLogLevel, [CallerMemberName] string testName = null)
Logging\TestLogger.cs (1)
29public IDisposable BeginScope<TState>(TState state)
Logging\TestLoggerT.cs (1)
17public IDisposable BeginScope<TState>(TState state)
Logging\XunitLoggerProvider.cs (1)
119public IDisposable BeginScope<TState>(TState state)
xunit\AspNetTestAssemblyRunner.cs (2)
88foreach (var disposable in Fixtures.OfType<IDisposable>())
Microsoft.AspNetCore.JsonPatch.SystemTextJson (4)
Helpers\JsonUtilities.cs (4)
29using var docA = TryGetJsonElement(a, serializerOptions, out var elementA); 30using var docB = TryGetJsonElement(b, serializerOptions, out var elementB); 35private static IDisposable TryGetJsonElement(object item, JsonSerializerOptions serializerOptions, out JsonElement element) 37IDisposable result = null;
Microsoft.AspNetCore.Mvc.Analyzers (1)
TopLevelParameterNameAnalyzer.cs (1)
278var members = disposable?.GetMembers(nameof(IDisposable.Dispose));
Microsoft.AspNetCore.Mvc.Core (15)
ApplicationModels\DefaultApplicationModelProvider.cs (2)
692(typeof(IDisposable).IsAssignableFrom(declaringType) && 693declaringType.GetInterfaceMap(typeof(IDisposable)).TargetMethods[0] == baseMethodInfo);
Controllers\ControllerActivatorProvider.cs (3)
72if (typeof(IDisposable).GetTypeInfo().IsAssignableFrom(descriptor.ControllerTypeInfo)) 95if (typeof(IDisposable).GetTypeInfo().IsAssignableFrom(descriptor.ControllerTypeInfo)) 107((IDisposable)controller).Dispose();
Controllers\DefaultControllerActivator.cs (1)
58if (controller is IDisposable disposable)
Infrastructure\ResourceInvoker.cs (6)
69var scope = _logger.ActionScope(_actionContext.ActionDescriptor); 88static async Task Awaited(ResourceInvoker invoker, Task task, IDisposable? scope) 113var actionScope = logger.ActionScope(actionContext.ActionDescriptor); 146internal ValueTask ReleaseResourcesCore(IDisposable? scope) 165static async ValueTask HandleAsyncReleaseErrors(ValueTask releaseResult, IDisposable? scope) 180static ValueTask HandleReleaseErrors(IDisposable? scope, Exception? releaseException)
MvcCoreLoggerExtensions.cs (1)
20public static IDisposable? ActionScope(this ILogger logger, ActionDescriptor action)
Routing\ActionEndpointDataSourceBase.cs (1)
31private IDisposable? _disposable;
src\aspnetcore\src\Http\Routing\src\DataSourceDependentCache.cs (1)
24private IDisposable? _disposable;
Microsoft.AspNetCore.Mvc.RazorPages (6)
Infrastructure\DefaultPageActivatorProvider.cs (3)
40if (typeof(IDisposable).GetTypeInfo().IsAssignableFrom(actionDescriptor.PageTypeInfo)) 57if (typeof(IDisposable).GetTypeInfo().IsAssignableFrom(actionDescriptor.PageTypeInfo)) 86((IDisposable)page).Dispose();
Infrastructure\DefaultPageModelActivatorProvider.cs (3)
40if (typeof(IDisposable).GetTypeInfo().IsAssignableFrom(actionDescriptor.ModelTypeInfo)) 57if (typeof(IDisposable).GetTypeInfo().IsAssignableFrom(actionDescriptor.ModelTypeInfo)) 70((IDisposable)page).Dispose();
Microsoft.AspNetCore.Mvc.TagHelpers (1)
PartialTagHelper.cs (1)
210using (view as IDisposable)
Microsoft.AspNetCore.Mvc.Testing (2)
src\5ff452f563f7a4b9\HostFactoryResolver.cs (2)
205private IDisposable? _disposable; 231using var subscription = DiagnosticListener.AllListeners.Subscribe(this);
Microsoft.AspNetCore.Mvc.ViewFeatures (8)
HtmlHelper.cs (1)
541using (view as IDisposable)
PartialViewResultExecutor.cs (1)
156using (view as IDisposable)
TempDataDictionary.cs (1)
311void IDisposable.Dispose()
TemplateRenderer.cs (1)
120using (view as IDisposable)
ViewComponents\DefaultViewComponentActivator.cs (1)
68if (viewComponent is IDisposable disposable)
ViewComponents\DefaultViewComponentInvoker.cs (1)
233public static IDisposable? ViewComponentScope(ILogger logger, ViewComponentContext context)
ViewComponents\ViewViewComponentResult.cs (1)
109using (view as IDisposable)
ViewResultExecutor.cs (1)
150using (view as IDisposable)
Microsoft.AspNetCore.OpenApi (3)
Transformers\TypeBasedOpenApiDocumentTransformer.cs (1)
36else if (transformer is IDisposable disposable)
Transformers\TypeBasedTransforrmerExtensions.cs (2)
9/// Supports disposing of factory-based transformers that implement <see cref="IDisposable"/> or <see cref="IAsyncDisposable"/> 22else if (transformer is IDisposable disposable)
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
17void IDisposable.Dispose()
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\PooledArrayBuilderExtensions.cs (1)
16/// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to
Microsoft.AspNetCore.Routing (10)
CompositeEndpointDataSource.cs (8)
25private List<IDisposable>? _changeTokenRegistrations; 106List<IDisposable>? disposables = null; 119if (dataSource is IDisposable disposableDataSource) 121disposables ??= new List<IDisposable>(); 128disposables ??= new List<IDisposable>(); 137foreach (var disposable in disposables) 193List<IDisposable>? oldChangeTokenRegistrations = null; 231foreach (var registration in oldChangeTokenRegistrations)
DataSourceDependentCache.cs (1)
24private IDisposable? _disposable;
RouteGroupBuilder.cs (1)
84(dataSource as IDisposable)?.Dispose();
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\CertificatePathWatcher.cs (5)
140var disposable = ChangeToken.OnChange( 270void IDisposable.Dispose() 294public void Dispose() => (FileProvider as IDisposable)?.Dispose(); 297private sealed class FileWatchMetadata(IDisposable disposable) : IDisposable 299public readonly IDisposable Disposable = disposable;
Internal\Http3\Http3Stream.cs (1)
802if (_context.StreamContext is IDisposable disposableStream)
Internal\Infrastructure\KestrelConnection.cs (1)
172protected IDisposable? BeginConnectionScope(BaseConnectionContext connectionContext)
Internal\Infrastructure\KestrelTrace.cs (1)
30public IDisposable? BeginScope<TState>(TState state) where TState : notnull => _generalLogger.BeginScope(state);
Internal\KestrelServerImpl.cs (1)
34private IDisposable? _configChangedRegistration;
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (2)
Connection\DirectTlsConnectionListener.cs (2)
39private readonly IDisposable? _ownedServerContexts; 67IDisposable? ownedServerContexts = null,
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Internal\NamedPipeConnectionListener.cs (1)
180(_namedPipeServerStreamPool as IDisposable)?.Dispose();
Microsoft.AspNetCore.SignalR.Client.Core (48)
HubConnection.cs (4)
385public virtual IDisposable On(string methodName, Type[] parameterTypes, Func<object?[], object, Task<object?>> handler, object state) 418public virtual IDisposable On(string methodName, Type[] parameterTypes, Func<object?[], object, Task> handler, object state) 929(_serviceProvider as IDisposable)?.Dispose(); 2606using var _ = CancellationTokenUtils.CreateLinkedToken(cancellationToken, connectionToken, out var linkedToken);
HubConnectionExtensions.cs (20)
15private static IDisposable On(this HubConnection hubConnection, string methodName, Type[] parameterTypes, Action<object?[]> handler) 32public static IDisposable On(this HubConnection hubConnection, string methodName, Action handler) 47public static IDisposable On<T1>(this HubConnection hubConnection, string methodName, Action<T1> handler) 65public static IDisposable On<T1, T2>(this HubConnection hubConnection, string methodName, Action<T1, T2> handler) 84public static IDisposable On<T1, T2, T3>(this HubConnection hubConnection, string methodName, Action<T1, T2, T3> handler) 104public static IDisposable On<T1, T2, T3, T4>(this HubConnection hubConnection, string methodName, Action<T1, T2, T3, T4> handler) 125public static IDisposable On<T1, T2, T3, T4, T5>(this HubConnection hubConnection, string methodName, Action<T1, T2, T3, T4, T5> handler) 147public static IDisposable On<T1, T2, T3, T4, T5, T6>(this HubConnection hubConnection, string methodName, Action<T1, T2, T3, T4, T5, T6> handler) 170public static IDisposable On<T1, T2, T3, T4, T5, T6, T7>(this HubConnection hubConnection, string methodName, Action<T1, T2, T3, T4, T5, T6, T7> handler) 194public static IDisposable On<T1, T2, T3, T4, T5, T6, T7, T8>(this HubConnection hubConnection, string methodName, Action<T1, T2, T3, T4, T5, T6, T7, T8> handler) 211public static IDisposable On(this HubConnection hubConnection, string methodName, Type[] parameterTypes, Func<object?[], Task> handler) 227public static IDisposable On(this HubConnection hubConnection, string methodName, Func<Task> handler) 242public static IDisposable On<T1>(this HubConnection hubConnection, string methodName, Func<T1, Task> handler) 260public static IDisposable On<T1, T2>(this HubConnection hubConnection, string methodName, Func<T1, T2, Task> handler) 279public static IDisposable On<T1, T2, T3>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, Task> handler) 299public static IDisposable On<T1, T2, T3, T4>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, Task> handler) 320public static IDisposable On<T1, T2, T3, T4, T5>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, Task> handler) 342public static IDisposable On<T1, T2, T3, T4, T5, T6>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, T6, Task> handler) 365public static IDisposable On<T1, T2, T3, T4, T5, T6, T7>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, T6, T7, Task> handler) 389public static IDisposable On<T1, T2, T3, T4, T5, T6, T7, T8>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, T6, T7, T8, Task> handler)
HubConnectionExtensions.OnResult.cs (20)
18private static IDisposable On<TResult>(this HubConnection hubConnection, string methodName, Type[] parameterTypes, Func<object?[], TResult> handler) 37public static IDisposable On<TResult>(this HubConnection hubConnection, string methodName, Type[] parameterTypes, Func<object?[], Task<TResult>> handler) 55public static IDisposable On<TResult>(this HubConnection hubConnection, string methodName, Func<Task<TResult>> handler) 71public static IDisposable On<TResult>(this HubConnection hubConnection, string methodName, Func<TResult> handler) 88public static IDisposable On<T1, TResult>(this HubConnection hubConnection, string methodName, Func<T1, TResult> handler) 108public static IDisposable On<T1, T2, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, TResult> handler) 129public static IDisposable On<T1, T2, T3, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, TResult> handler) 151public static IDisposable On<T1, T2, T3, T4, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, TResult> handler) 174public static IDisposable On<T1, T2, T3, T4, T5, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, TResult> handler) 198public static IDisposable On<T1, T2, T3, T4, T5, T6, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, T6, TResult> handler) 223public static IDisposable On<T1, T2, T3, T4, T5, T6, T7, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, T6, T7, TResult> handler) 249public static IDisposable On<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> handler) 268public static IDisposable On<T1, TResult>(this HubConnection hubConnection, string methodName, Func<T1, Task<TResult>> handler) 288public static IDisposable On<T1, T2, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, Task<TResult>> handler) 309public static IDisposable On<T1, T2, T3, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, Task<TResult>> handler) 331public static IDisposable On<T1, T2, T3, T4, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, Task<TResult>> handler) 354public static IDisposable On<T1, T2, T3, T4, T5, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, Task<TResult>> handler) 378public static IDisposable On<T1, T2, T3, T4, T5, T6, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, T6, Task<TResult>> handler) 403public static IDisposable On<T1, T2, T3, T4, T5, T6, T7, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, T6, T7, Task<TResult>> handler) 429public static IDisposable On<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, T6, T7, T8, Task<TResult>> handler)
src\aspnetcore\src\SignalR\common\Shared\CreateLinkedToken.cs (1)
14internal static IDisposable? CreateLinkedToken(CancellationToken token1, CancellationToken token2, out CancellationToken linkedToken)
src\aspnetcore\src\SignalR\common\Shared\MessageBuffer.cs (2)
144using var _ = CancellationTokenUtils.CreateLinkedToken(cts.Token, cancellationToken, out var linkedToken); 314((IDisposable)_timer).Dispose();
src\aspnetcore\src\SignalR\common\Shared\TimerAwaitable.cs (1)
109void IDisposable.Dispose()
Microsoft.AspNetCore.SignalR.Core (10)
DefaultHubLifetimeManager.cs (1)
350using var _ = CancellationTokenUtils.CreateLinkedToken(cancellationToken,
HubConnectionContext.cs (2)
366using var _ = CancellationTokenUtils.CreateLinkedToken(connectionToken, cancellationToken, out var linkedToken); 405using var _ = CancellationTokenUtils.CreateLinkedToken(hubConnectionContext.ConnectionAborted, cancellationToken, out var linkedToken);
HubConnectionHandler.cs (1)
155IDisposable? authenticationRefreshedRegistration = null;
Internal\AsyncDisposableExtensions.cs (1)
9public static ValueTask DisposeAsync(this IDisposable disposable)
Internal\HubFilterFactory.cs (1)
79if (filter is IDisposable disposable)
Internal\HubReflectionHelper.cs (1)
15var excludedInterfaceMethods = hubType.GetInterfaceMap(typeof(IDisposable)).TargetMethods;
src\aspnetcore\src\SignalR\common\Shared\CreateLinkedToken.cs (1)
14internal static IDisposable? CreateLinkedToken(CancellationToken token1, CancellationToken token2, out CancellationToken linkedToken)
src\aspnetcore\src\SignalR\common\Shared\MessageBuffer.cs (2)
144using var _ = CancellationTokenUtils.CreateLinkedToken(cts.Token, cancellationToken, out var linkedToken); 314((IDisposable)_timer).Dispose();
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
RedisHubLifetimeManager.cs (1)
390using var _ = CancellationTokenUtils.CreateLinkedToken(cancellationToken,
src\aspnetcore\src\SignalR\common\Shared\CreateLinkedToken.cs (1)
14internal static IDisposable? CreateLinkedToken(CancellationToken token1, CancellationToken token2, out CancellationToken linkedToken)
Microsoft.AspNetCore.SpaProxy (1)
SpaProxyLaunchManager.cs (1)
372void IDisposable.Dispose()
Microsoft.AspNetCore.SpaServices.Extensions (2)
Npm\NodeScriptRunner.cs (2)
64applicationStoppingToken.Register(((IDisposable)this).Dispose); 145void IDisposable.Dispose()
Microsoft.AspNetCore.TestHost (2)
src\5ff452f563f7a4b9\HostFactoryResolver.cs (2)
205private IDisposable? _disposable; 231using var subscription = DiagnosticListener.AllListeners.Subscribe(this);
Microsoft.Build (33)
BackEnd\Components\Communications\NodeManager.cs (4)
182if (_inProcNodeProvider != null && _inProcNodeProvider is IDisposable) 184((IDisposable)_inProcNodeProvider).Dispose(); 187if (_outOfProcNodeProvider != null && _outOfProcNodeProvider is IDisposable) 189((IDisposable)_outOfProcNodeProvider).Dispose();
BackEnd\Components\Logging\LoggingService.cs (1)
1903using var assemblyLoadTracker = AssemblyLoadsTracker.StartTracking(this, AssemblyLoadingContext.LoggerInitialization, UnwrapLoggerType(logger).GetType());
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (5)
41public static IDisposable StartTracking( 48public static IDisposable StartTracking( 55public static IDisposable StartTracking( 79private static IDisposable StartTracking( 170public static readonly IDisposable Instance = new EmptyDisposable();
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
225IDisposable disposable = _taskExecutionHost as IDisposable; 680using var assemblyLoadsTracker = AssemblyLoadsTracker.StartTracking(taskLoggingContext, AssemblyLoadingContext.TaskRun, _taskExecutionHost?.TaskInstance?.GetType());
Evaluation\Evaluator.cs (2)
679using var assemblyLoadsTracker = 1885using var assemblyLoadsTracker = AssemblyLoadsTracker.StartTracking(_evaluationLoggingContext, AssemblyLoadingContext.SdkResolution, _sdkResolverService.GetType());
Evaluation\Profiler\EvaluationProfiler.cs (6)
28/// If <param name="shouldTrackElements"/> is false, then requesting to track a given element has no effect and a null <see cref="IDisposable"/> is returned. 42public IDisposable TrackPass(EvaluationPass evaluationPass, string passDescription = null) 52public IDisposable TrackFile(string file) 59public IDisposable TrackGlob(string rootDirectory, string glob, ISet<string> excludePatterns) 70public IDisposable TrackElement(ProjectElement element) 77public IDisposable TrackCondition(IElementLocation location, string condition)
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
264using var assemblyLoadsTracker = AssemblyLoadsTracker.StartTracking(targetLoggingContext, AssemblyLoadingContext.TaskRun, assemblyName);
Logging\BinaryLogger\BuildEventArgsWriter.cs (6)
155using var redirectionScope = RedirectWritesToOriginalWriter(); 267using var redirection = RedirectWritesToOriginalWriter(); 279private IDisposable RedirectWritesToOriginalWriter() 284private IDisposable RedirectWritesToDifferentWriter(BinaryWriter inScopeWriter, BinaryWriter afterScopeWriter) 1253using (var _ = RedirectWritesToDifferentWriter(nameValueListBw, binaryWriter)) 1377using var redirectionScope = RedirectWritesToOriginalWriter();
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
647(projectConfigurationDescription as IDisposable)?.Dispose();
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\TemporaryArrayExtensions.cs (1)
20/// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to
src\msbuild\artifacts\.packages\microsoft.codeanalysis.pooledobjects\5.0.0-1.25277.114\contentFiles\cs\netstandard2.0\PooledDisposer.cs (1)
17void IDisposable.Dispose()
src\msbuild\src\Shared\RegisteredTaskObjectCacheBase.cs (2)
147IDisposable disposable = obj as IDisposable;
Microsoft.Build.Tasks.Core (1)
ManifestUtil\MetadataReader.cs (1)
281void IDisposable.Dispose()
Microsoft.CodeAnalysis (15)
Collections\SmallDictionary.cs (3)
591void IDisposable.Dispose() 708void IDisposable.Dispose() 814void IDisposable.Dispose()
MetadataReference\MetadataReference.cs (4)
110/// to create an <see cref="IDisposable"/> metadata object and 152/// to create an <see cref="IDisposable"/> metadata object and 194/// to create an <see cref="IDisposable"/> metadata object and 236/// to create an <see cref="IDisposable"/> metadata object and
MetadataReference\PortableExecutableReference.cs (1)
163/// contains. This copy does not need to be <see cref="IDisposable.Dispose"/>d.
PEWriter\PooledBlobBuilder.cs (1)
90void IDisposable.Dispose()
SpecialType.cs (1)
201/// Indicates that the type is <see cref="IDisposable"/>.
src\roslyn\src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
20/// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
17void IDisposable.Dispose()
Syntax\SyntaxList`1.Enumerator.cs (1)
84void IDisposable.Dispose()
Syntax\SyntaxNodeOrTokenList.cs (1)
589void IDisposable.Dispose()
Text\TextLineCollection.cs (1)
149void IDisposable.Dispose()
Microsoft.CodeAnalysis.Analyzers (49)
src\roslyn\src\Compilers\Core\Portable\Collections\SmallDictionary.cs (3)
591void IDisposable.Dispose() 708void IDisposable.Dispose() 814void IDisposable.Dispose()
src\roslyn\src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
20/// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
17void IDisposable.Dispose()
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DisposeMethodKind.cs (2)
18/// An override of <see cref="System.IDisposable.Dispose"/>. 40/// A method named Close on a type that implements <see cref="System.IDisposable"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
27where T : class, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
117/// Checks if the given method implements <see cref="IDisposable.Dispose"/> or overrides an implementation of <see cref="IDisposable.Dispose"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (3)
705void IDisposable.Dispose() 822void IDisposable.Dispose() 928void IDisposable.Dispose()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (8)
159public static IDisposable LogBlock(FunctionId functionId, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 165public static IDisposable LogBlock(FunctionId functionId, string? message, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 174public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 183public static IDisposable LogBlock<TArg>(FunctionId functionId, Func<TArg, string> messageGetter, TArg arg, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 192public static IDisposable LogBlock<TArg0, TArg1>(FunctionId functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 201public static IDisposable LogBlock<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 210public static IDisposable LogBlock<TArg0, TArg1, TArg2, TArg3>(FunctionId functionId, Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 218public static IDisposable LogBlock(FunctionId functionId, LogMessage logMessage, CancellationToken token)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
19public static IDisposable CreateLogBlock(ILogger logger, FunctionId functionId, LogMessage message, int blockId, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
581/// Callers should <see cref="IDisposable.Dispose"/> the instance returned. No check is necessary if 582/// <c>default</c> was returned before calling <see cref="IDisposable.Dispose"/>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ConcatImmutableArray`1.cs (1)
53readonly void IDisposable.Dispose()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReferenceCountedDisposable.cs (5)
11/// to a more base type. This can include types that do not implement <see cref="IDisposable"/> if you want to prevent a caller from accidentally 22/// <para>This call is not valid after <see cref="IDisposable.Dispose"/> is called. If this property or the target 23/// object is used concurrently with a call to <see cref="IDisposable.Dispose"/>, it is possible for the code to be 26/// <see cref="IDisposable.Dispose"/> is called is unspecified; code is expected to not use this property or the object 27/// it returns after any code invokes <see cref="IDisposable.Dispose"/>.</para>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (5)
16/// deterministically released (by calling <see cref="IDisposable.Dispose"/>) when the last reference is 36/// call to <see cref="IDisposable.Dispose"/> when the last reference to it is released. However, in the event 50/// <para>Do not call <see cref="IDisposable.Dispose"/> on the target object directly. It will be called 59where T : class, IDisposable 86/// Initializes a new reference counting wrapper around an <see cref="IDisposable"/> object.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
15internal sealed class ReferenceCountedDisposableCache<TKey, TValue> where TValue : class, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
259=> compilation.GetTypeByMetadataName(typeof(IDisposable).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (3)
113: GetIDisposableInterfaceAndDisposeMethod(typeof(IDisposable).FullName!, nameof(IDisposable.Dispose)); 151.GetMembers(nameof(IDisposable.Dispose))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (4)
29private readonly HashSet<IDisposable> _ownedDisposableServices = new(ReferenceEqualityComparer.Instance); 54ImmutableArray<IDisposable> disposableServices; 63foreach (var service in disposableServices) 106if (checkAddDisposable && languageService is IDisposable disposable)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
15where T : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (4)
31private readonly HashSet<IDisposable> _ownedDisposableServices = new(ReferenceEqualityComparer.Instance); 76ImmutableArray<IDisposable> disposableServices; 91foreach (var service in disposableServices) 121if (checkAddDisposable && serviceInstance is IDisposable disposable)
Microsoft.CodeAnalysis.AnalyzerUtilities (38)
src\roslyn\src\Compilers\Core\Portable\Collections\SmallDictionary.cs (3)
591void IDisposable.Dispose() 708void IDisposable.Dispose() 814void IDisposable.Dispose()
src\roslyn\src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
20/// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
17void IDisposable.Dispose()
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DisposeMethodKind.cs (2)
18/// An override of <see cref="System.IDisposable.Dispose"/>. 40/// A method named Close on a type that implements <see cref="System.IDisposable"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
27where T : class, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
117/// Checks if the given method implements <see cref="IDisposable.Dispose"/> or overrides an implementation of <see cref="IDisposable.Dispose"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (3)
705void IDisposable.Dispose() 822void IDisposable.Dispose() 928void IDisposable.Dispose()
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
4112/// <see cref="INamedTypeSymbol"/> for <see cref="System.IDisposable"/>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (8)
159public static IDisposable LogBlock(FunctionId functionId, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 165public static IDisposable LogBlock(FunctionId functionId, string? message, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 174public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 183public static IDisposable LogBlock<TArg>(FunctionId functionId, Func<TArg, string> messageGetter, TArg arg, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 192public static IDisposable LogBlock<TArg0, TArg1>(FunctionId functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 201public static IDisposable LogBlock<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 210public static IDisposable LogBlock<TArg0, TArg1, TArg2, TArg3>(FunctionId functionId, Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 218public static IDisposable LogBlock(FunctionId functionId, LogMessage logMessage, CancellationToken token)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
19public static IDisposable CreateLogBlock(ILogger logger, FunctionId functionId, LogMessage message, int blockId, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
581/// Callers should <see cref="IDisposable.Dispose"/> the instance returned. No check is necessary if 582/// <c>default</c> was returned before calling <see cref="IDisposable.Dispose"/>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ConcatImmutableArray`1.cs (1)
53readonly void IDisposable.Dispose()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReferenceCountedDisposable.cs (5)
11/// to a more base type. This can include types that do not implement <see cref="IDisposable"/> if you want to prevent a caller from accidentally 22/// <para>This call is not valid after <see cref="IDisposable.Dispose"/> is called. If this property or the target 23/// object is used concurrently with a call to <see cref="IDisposable.Dispose"/>, it is possible for the code to be 26/// <see cref="IDisposable.Dispose"/> is called is unspecified; code is expected to not use this property or the object 27/// it returns after any code invokes <see cref="IDisposable.Dispose"/>.</para>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (5)
16/// deterministically released (by calling <see cref="IDisposable.Dispose"/>) when the last reference is 36/// call to <see cref="IDisposable.Dispose"/> when the last reference to it is released. However, in the event 50/// <para>Do not call <see cref="IDisposable.Dispose"/> on the target object directly. It will be called 59where T : class, IDisposable 86/// Initializes a new reference counting wrapper around an <see cref="IDisposable"/> object.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
15internal sealed class ReferenceCountedDisposableCache<TKey, TValue> where TValue : class, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
259=> compilation.GetTypeByMetadataName(typeof(IDisposable).FullName!);
Microsoft.CodeAnalysis.CodeStyle (29)
src\roslyn\src\Compilers\Core\Portable\Collections\SmallDictionary.cs (3)
591void IDisposable.Dispose() 708void IDisposable.Dispose() 814void IDisposable.Dispose()
src\roslyn\src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
20/// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
17void IDisposable.Dispose()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (8)
159public static IDisposable LogBlock(FunctionId functionId, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 165public static IDisposable LogBlock(FunctionId functionId, string? message, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 174public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 183public static IDisposable LogBlock<TArg>(FunctionId functionId, Func<TArg, string> messageGetter, TArg arg, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 192public static IDisposable LogBlock<TArg0, TArg1>(FunctionId functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 201public static IDisposable LogBlock<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 210public static IDisposable LogBlock<TArg0, TArg1, TArg2, TArg3>(FunctionId functionId, Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 218public static IDisposable LogBlock(FunctionId functionId, LogMessage logMessage, CancellationToken token)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
19public static IDisposable CreateLogBlock(ILogger logger, FunctionId functionId, LogMessage message, int blockId, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
581/// Callers should <see cref="IDisposable.Dispose"/> the instance returned. No check is necessary if 582/// <c>default</c> was returned before calling <see cref="IDisposable.Dispose"/>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ConcatImmutableArray`1.cs (1)
53readonly void IDisposable.Dispose()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReferenceCountedDisposable.cs (5)
11/// to a more base type. This can include types that do not implement <see cref="IDisposable"/> if you want to prevent a caller from accidentally 22/// <para>This call is not valid after <see cref="IDisposable.Dispose"/> is called. If this property or the target 23/// object is used concurrently with a call to <see cref="IDisposable.Dispose"/>, it is possible for the code to be 26/// <see cref="IDisposable.Dispose"/> is called is unspecified; code is expected to not use this property or the object 27/// it returns after any code invokes <see cref="IDisposable.Dispose"/>.</para>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (5)
16/// deterministically released (by calling <see cref="IDisposable.Dispose"/>) when the last reference is 36/// call to <see cref="IDisposable.Dispose"/> when the last reference to it is released. However, in the event 50/// <para>Do not call <see cref="IDisposable.Dispose"/> on the target object directly. It will be called 59where T : class, IDisposable 86/// Initializes a new reference counting wrapper around an <see cref="IDisposable"/> object.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
15internal sealed class ReferenceCountedDisposableCache<TKey, TValue> where TValue : class, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
259=> compilation.GetTypeByMetadataName(typeof(IDisposable).FullName!);
Microsoft.CodeAnalysis.CodeStyle.Fixes (14)
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
251foreach (var member in idisposable.GetMembers(nameof(IDisposable.Dispose)))
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
197g.IdentifierName(nameof(IDisposable.Dispose)),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (3)
113: GetIDisposableInterfaceAndDisposeMethod(typeof(IDisposable).FullName!, nameof(IDisposable.Dispose)); 151.GetMembers(nameof(IDisposable.Dispose))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (4)
29private readonly HashSet<IDisposable> _ownedDisposableServices = new(ReferenceEqualityComparer.Instance); 54ImmutableArray<IDisposable> disposableServices; 63foreach (var service in disposableServices) 106if (checkAddDisposable && languageService is IDisposable disposable)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
15where T : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (4)
31private readonly HashSet<IDisposable> _ownedDisposableServices = new(ReferenceEqualityComparer.Instance); 76ImmutableArray<IDisposable> disposableServices; 91foreach (var service in disposableServices) 121if (checkAddDisposable && serviceInstance is IDisposable disposable)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
109g.IdentifierName(nameof(IDisposable.Dispose)),
Microsoft.CodeAnalysis.CSharp.Features (1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
109g.IdentifierName(nameof(IDisposable.Dispose)),
Microsoft.CodeAnalysis.Extensions.Package (3)
Compilation\CompilationExtensions.cs (1)
259=> compilation.GetTypeByMetadataName(typeof(IDisposable).FullName!);
src\roslyn\src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
20/// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
17void IDisposable.Dispose()
Microsoft.CodeAnalysis.Features (28)
CodeFixes\Service\CodeFixService.cs (4)
98using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.CodeFix_Summary, $"Pri{priority.GetPriorityInt()}.{nameof(GetMostSevereFixAsync)}"); 176using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.CodeFix_Summary, $"Pri{priority.GetPriorityInt()}"); 289using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.CodeFix_Summary, $"{nameof(GetDocumentFixAllForIdInSpanAsync)}"); 537using var _ = TelemetryLogging.LogBlockTime(FunctionId.CodeFix_Delay, logMessage, CodeFixTelemetryDelay);
Copilot\CopilotChangeAnalysisUtilities.cs (1)
68public static IDisposable LogCopilotChangeAnalysis(
Debugging\DebugInformationReaderProvider.cs (1)
95if (symReader is IDisposable disposable)
Diagnostics\Service\DiagnosticAnalyzerService_GetDiagnosticsForSpan.cs (1)
94using var _4 = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.RequestDiagnostics_Summary, $"Pri{priority.GetPriorityInt()}");
Diagnostics\Service\DocumentAnalysisExecutor.cs (2)
219using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.RequestDiagnostics_Summary, $"{nameof(GetSyntaxDiagnosticsInProcessAsync)}.{nameof(GetAnalysisResultInProcessAsync)}"); 255using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.RequestDiagnostics_Summary, $"{nameof(GetSemanticDiagnosticsInProcessAsync)}.{nameof(GetAnalysisResultInProcessAsync)}");
EditAndContinue\DebuggingSession.cs (4)
79private readonly Dictionary<Guid, (IDisposable metadata, IDisposable pdb)> _initialBaselineModuleReaders = []; 972public ImmutableArray<IDisposable> GetBaselineModuleReaders() 976return [.. instance._initialBaselineModuleReaders.Values.SelectMany(entry => new IDisposable[] { entry.metadata, entry.pdb })];
EditAndContinue\Remote\DebuggingSessionProxy.cs (1)
15internal sealed class DebuggingSessionProxy(SolutionServices services, IDisposable? connection, DebuggingSessionId sessionId) : IActiveStatementSpanFactory, IDisposable
ExternalAccess\UnitTesting\Notification\AbstractGlobalOperationNotificationService.cs (2)
20private readonly HashSet<IDisposable> _registrations = []; 59public IDisposable Start(string operation)
ExternalAccess\UnitTesting\Notification\IGlobalOperationNotificationService.cs (1)
28IDisposable Start(string operation);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerProgressReporter.cs (1)
63public IDisposable GetEvaluatingScope()
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (1)
154using var evaluating = _registration.ProgressReporter.GetEvaluatingScope();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
286private static void ClearQueueWorker<TKey, TValue>(SemaphoreSlim gate, Dictionary<TKey, TValue> map, Func<TValue, IDisposable> disposerSelector)
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (1)
302if (syntaxFacts.GetIdentifierOfSimpleName(name).ValueText != nameof(IDisposable.Dispose))
MetadataAsSource\TelemetryMessage.cs (1)
20private readonly IDisposable _logBlock;
NavigateTo\NavigateToSearcher.cs (1)
144using var navigateToSearch = Logger.LogBlock(FunctionId.NavigateTo_Search, KeyValueLogMessage.Create(LogType.UserAction), cancellationToken);
Shared\Utilities\IUIContextActivationService.cs (1)
14IDisposable ExecuteWhenActivated(Guid uiContext, Action action);
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
251foreach (var member in idisposable.GetMembers(nameof(IDisposable.Dispose)))
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
197g.IdentifierName(nameof(IDisposable.Dispose)),
ValueTracking\ValueTrackingService.cs (2)
32using var logger = Logger.LogBlock(FunctionId.ValueTracking_TrackValueSource, cancellationToken, LogLevel.Information); 62using var logger = Logger.LogBlock(FunctionId.ValueTracking_TrackValueSource, cancellationToken, LogLevel.Information);
Microsoft.CodeAnalysis.NetAnalyzers (10)
Microsoft.CodeQuality.Analyzers\QualityGuidelines\DoNotPassDisposablesIntoUnawaitedTasks.cs (1)
103is IInvocationOperation { TargetMethod.Name: nameof(IDisposable.Dispose) }, out var disposeCalls);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\DisposeMethodKind.cs (2)
17/// An override of <see cref="System.IDisposable.Dispose"/>. 39/// A method named Close on a type that implements <see cref="System.IDisposable"/>.
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
96where T : class, IDisposable
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
180/// Checks if the given method implements <see cref="IDisposable.Dispose"/> or overrides an implementation of <see cref="IDisposable.Dispose"/>.
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\SmallDictionary.cs (3)
703void IDisposable.Dispose() 820void IDisposable.Dispose() 926void IDisposable.Dispose()
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
4109/// <see cref="INamedTypeSymbol"/> for <see cref="System.IDisposable"/>
Microsoft.CodeAnalysis.Razor.Compiler (2)
Language\Syntax\SyntaxList`1.Enumerator.cs (1)
66void IDisposable.Dispose()
Language\TagHelperObjectBuilderCollection`2.Enumerator.cs (1)
50readonly void IDisposable.Dispose()
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
114using var scope = _logger.BeginScope("Encoding");
Microsoft.CodeAnalysis.ResxSourceGenerator (37)
src\roslyn\src\Compilers\Core\Portable\Collections\SmallDictionary.cs (3)
591void IDisposable.Dispose() 708void IDisposable.Dispose() 814void IDisposable.Dispose()
src\roslyn\src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
20/// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
17void IDisposable.Dispose()
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DisposeMethodKind.cs (2)
18/// An override of <see cref="System.IDisposable.Dispose"/>. 40/// A method named Close on a type that implements <see cref="System.IDisposable"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
27where T : class, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
117/// Checks if the given method implements <see cref="IDisposable.Dispose"/> or overrides an implementation of <see cref="IDisposable.Dispose"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (3)
705void IDisposable.Dispose() 822void IDisposable.Dispose() 928void IDisposable.Dispose()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (8)
159public static IDisposable LogBlock(FunctionId functionId, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 165public static IDisposable LogBlock(FunctionId functionId, string? message, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 174public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 183public static IDisposable LogBlock<TArg>(FunctionId functionId, Func<TArg, string> messageGetter, TArg arg, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 192public static IDisposable LogBlock<TArg0, TArg1>(FunctionId functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 201public static IDisposable LogBlock<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 210public static IDisposable LogBlock<TArg0, TArg1, TArg2, TArg3>(FunctionId functionId, Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 218public static IDisposable LogBlock(FunctionId functionId, LogMessage logMessage, CancellationToken token)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
19public static IDisposable CreateLogBlock(ILogger logger, FunctionId functionId, LogMessage message, int blockId, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
581/// Callers should <see cref="IDisposable.Dispose"/> the instance returned. No check is necessary if 582/// <c>default</c> was returned before calling <see cref="IDisposable.Dispose"/>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ConcatImmutableArray`1.cs (1)
53readonly void IDisposable.Dispose()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReferenceCountedDisposable.cs (5)
11/// to a more base type. This can include types that do not implement <see cref="IDisposable"/> if you want to prevent a caller from accidentally 22/// <para>This call is not valid after <see cref="IDisposable.Dispose"/> is called. If this property or the target 23/// object is used concurrently with a call to <see cref="IDisposable.Dispose"/>, it is possible for the code to be 26/// <see cref="IDisposable.Dispose"/> is called is unspecified; code is expected to not use this property or the object 27/// it returns after any code invokes <see cref="IDisposable.Dispose"/>.</para>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (5)
16/// deterministically released (by calling <see cref="IDisposable.Dispose"/>) when the last reference is 36/// call to <see cref="IDisposable.Dispose"/> when the last reference to it is released. However, in the event 50/// <para>Do not call <see cref="IDisposable.Dispose"/> on the target object directly. It will be called 59where T : class, IDisposable 86/// Initializes a new reference counting wrapper around an <see cref="IDisposable"/> object.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
15internal sealed class ReferenceCountedDisposableCache<TKey, TValue> where TValue : class, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
259=> compilation.GetTypeByMetadataName(typeof(IDisposable).FullName!);
Microsoft.CodeAnalysis.Scripting (4)
Hosting\AssemblyLoader\ShadowCopy.cs (2)
23private readonly IDisposable _stream; 25internal FileShadowCopy(IDisposable stream, string originalPath, string fullPath)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (2)
584IDisposable disposable = enumerator as IDisposable;
Microsoft.CodeAnalysis.Workspaces (59)
CodeActions\CodeAction.cs (1)
266using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.SuggestedAction_Preview_Summary, $"Total");
ExternalAccess\Pythia\Api\PythiaObjectPool.cs (3)
14public static IDisposable GetInstance<T>(out T instance) where T : class, new() 21public static IDisposable GetInstance<T>(out Stack<T> instance) 28public static IDisposable GetInstance<T>(out HashSet<T> instance)
ExternalAccess\UnitTesting\Api\UnitTestingWorkspaceExtensions.cs (2)
11public static IDisposable RegisterTextDocumentOpenedEventHandler(this Workspace workspace, Action<UnitTestingTextDocumentEventArgsWrapper> action) 14public static IDisposable RegisterTextDocumentClosedEventHandler(this Workspace workspace, Action<UnitTestingTextDocumentEventArgsWrapper> action)
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (1)
136=> methodSymbol.Name == nameof(IDisposable.Dispose);
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (1)
54void IDisposable.Dispose()
Shared\TestHooks\TaskExtensions.cs (2)
30public static Task CompletesTrackingOperation(this Task task, IDisposable token) 39static async Task CompletesTrackingOperationSlow(Task task, IDisposable token)
src\roslyn\src\Compilers\Core\Portable\Collections\SmallDictionary.cs (3)
591void IDisposable.Dispose() 708void IDisposable.Dispose() 814void IDisposable.Dispose()
src\roslyn\src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
20/// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
17void IDisposable.Dispose()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (8)
159public static IDisposable LogBlock(FunctionId functionId, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 165public static IDisposable LogBlock(FunctionId functionId, string? message, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 174public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 183public static IDisposable LogBlock<TArg>(FunctionId functionId, Func<TArg, string> messageGetter, TArg arg, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 192public static IDisposable LogBlock<TArg0, TArg1>(FunctionId functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 201public static IDisposable LogBlock<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 210public static IDisposable LogBlock<TArg0, TArg1, TArg2, TArg3>(FunctionId functionId, Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 218public static IDisposable LogBlock(FunctionId functionId, LogMessage logMessage, CancellationToken token)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
19public static IDisposable CreateLogBlock(ILogger logger, FunctionId functionId, LogMessage message, int blockId, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
581/// Callers should <see cref="IDisposable.Dispose"/> the instance returned. No check is necessary if 582/// <c>default</c> was returned before calling <see cref="IDisposable.Dispose"/>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ConcatImmutableArray`1.cs (1)
53readonly void IDisposable.Dispose()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReferenceCountedDisposable.cs (5)
11/// to a more base type. This can include types that do not implement <see cref="IDisposable"/> if you want to prevent a caller from accidentally 22/// <para>This call is not valid after <see cref="IDisposable.Dispose"/> is called. If this property or the target 23/// object is used concurrently with a call to <see cref="IDisposable.Dispose"/>, it is possible for the code to be 26/// <see cref="IDisposable.Dispose"/> is called is unspecified; code is expected to not use this property or the object 27/// it returns after any code invokes <see cref="IDisposable.Dispose"/>.</para>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (5)
16/// deterministically released (by calling <see cref="IDisposable.Dispose"/>) when the last reference is 36/// call to <see cref="IDisposable.Dispose"/> when the last reference to it is released. However, in the event 50/// <para>Do not call <see cref="IDisposable.Dispose"/> on the target object directly. It will be called 59where T : class, IDisposable 86/// Initializes a new reference counting wrapper around an <see cref="IDisposable"/> object.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
15internal sealed class ReferenceCountedDisposableCache<TKey, TValue> where TValue : class, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
259=> compilation.GetTypeByMetadataName(typeof(IDisposable).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (3)
113: GetIDisposableInterfaceAndDisposeMethod(typeof(IDisposable).FullName!, nameof(IDisposable.Dispose)); 151.GetMembers(nameof(IDisposable.Dispose))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (4)
29private readonly HashSet<IDisposable> _ownedDisposableServices = new(ReferenceEqualityComparer.Instance); 54ImmutableArray<IDisposable> disposableServices; 63foreach (var service in disposableServices) 106if (checkAddDisposable && languageService is IDisposable disposable)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
15where T : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (4)
31private readonly HashSet<IDisposable> _ownedDisposableServices = new(ReferenceEqualityComparer.Instance); 76ImmutableArray<IDisposable> disposableServices; 91foreach (var service in disposableServices) 121if (checkAddDisposable && serviceInstance is IDisposable disposable)
Telemetry\ITelemetryBlockLog.cs (1)
18IDisposable? LogBlockTime(KeyValueLogMessage logMessage, int minThresholdMs = -1);
Telemetry\TelemetryLogging.cs (2)
51public static IDisposable? LogBlockTime(FunctionId functionId, KeyValueLogMessage logMessage, int minThresholdMs = -1) 90public static IDisposable? LogBlockTimeAggregatedHistogram(FunctionId functionId, TelemetryLoggingInterpolatedStringHandler metricName, int minThresholdMs = -1)
Workspace\Host\HostLanguageServices.cs (1)
15/// <para>Language services which implement <see cref="IDisposable"/> are considered ownable, in which case the
Workspace\Host\HostWorkspaceServices.cs (1)
18/// <para>Workspace services which implement <see cref="IDisposable"/> are considered ownable, in which case the
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (1)
25/// Once this set is dropped, the loader will be explicitly <see cref="IDisposable.Dispose"/>'d in its finalizer.
Workspace\Workspace_EventsLegacy.cs (2)
17private readonly Dictionary<(object eventHandler, WorkspaceEventType eventType), (int adviseCount, IDisposable disposer)> _disposableEventHandlers = new(); 130IDisposable? disposer = null;
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\DiagnosticReporterLoggerProvider.cs (1)
30public IDisposable? BeginScope<TState>(TState state) where TState : notnull
Microsoft.Data.Analysis.Tests (1)
test\Microsoft.ML.TestFramework\BaseTestClass.cs (1)
78void IDisposable.Dispose()
Microsoft.Diagnostics.NETCore.Client (1)
HandleableCollection.cs (1)
257if (item is IDisposable disposable)
Microsoft.DotNet.Cli.Utils (3)
MSBuildForwardingAppWithoutLogging.cs (3)
210using var _ = SetEnvironmentVariables(_msbuildRequiredEnvironmentVariables); 232internal static IDisposable SetMSBuildRequiredEnvironmentVariables() 235private static IDisposable SetEnvironmentVariables(IEnumerable<KeyValuePair<string, string?>> environmentVariables)
Microsoft.DotNet.HotReload.Watch (4)
src\sdk\src\Dotnet.Watch\AspireService\Helpers\LoggerProvider.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\WebServerHost.cs (1)
11internal sealed class WebServerHost(IDisposable listener, ImmutableArray<string> endPoints, string virtualDirectory) : IDisposable
UI\IReporter.cs (1)
121public IDisposable? BeginScope<TState>(TState state) where TState : notnull
Utilities\Disposables.cs (1)
20((IDisposable)disposable).Dispose();
Microsoft.Extensions.AI.Abstractions (2)
Functions\AIFunctionFactory.cs (2)
408/// will be invoked. If the returned instance is <see cref="IAsyncDisposable"/> or <see cref="IDisposable"/>, it will be disposed of 692else if (target is IDisposable d)
Microsoft.Extensions.AI.Abstractions.Tests (3)
TestChatClient.cs (1)
38void IDisposable.Dispose()
TestEmbeddingGenerator.cs (1)
35void IDisposable.Dispose()
TestHostedFileClient.cs (1)
72void IDisposable.Dispose()
Microsoft.Extensions.AI.Integration.Tests (2)
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestChatClient.cs (1)
38void IDisposable.Dispose()
QuantizationEmbeddingGenerator.cs (1)
29void IDisposable.Dispose() => _floatService.Dispose();
Microsoft.Extensions.AI.OpenAI (7)
OpenAIAssistantsChatClient.cs (1)
317void IDisposable.Dispose()
OpenAIChatClient.cs (1)
130void IDisposable.Dispose()
OpenAIEmbeddingGenerator.cs (1)
97void IDisposable.Dispose()
OpenAIImageGenerator.cs (1)
92void IDisposable.Dispose()
OpenAIResponsesChatClient.cs (1)
709void IDisposable.Dispose()
OpenAISpeechToTextClient.cs (1)
169void IDisposable.Dispose()
OpenAITextToSpeechClient.cs (1)
152void IDisposable.Dispose()
Microsoft.Extensions.AI.Templates.Tests (1)
XunitLoggerProvider.cs (1)
37public IDisposable? BeginScope<TState>(TState state)
Microsoft.Extensions.AI.Tests (3)
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestChatClient.cs (1)
38void IDisposable.Dispose()
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestEmbeddingGenerator.cs (1)
35void IDisposable.Dispose()
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestHostedFileClient.cs (1)
72void IDisposable.Dispose()
Microsoft.Extensions.AsyncState.Tests (2)
AsyncContextTests.cs (2)
173var context = new AsyncContext<IDisposable>(state); 174var obj = new Mock<IDisposable>();
Microsoft.Extensions.Caching.Hybrid.Tests (3)
LogCollector.cs (2)
107void IDisposable.Dispose() 114IDisposable? ILogger.BeginScope<TState>(TState state) => null;
UnreliableL2Tests.cs (1)
123private static IDisposable GetServices(out HybridCache hc, out MemoryCache l1,
Microsoft.Extensions.Caching.Memory (5)
CacheEntry.CacheEntryTokens.cs (5)
21private List<IDisposable>? _expirationTokenRegistrations; 39_expirationTokenRegistrations ??= new List<IDisposable>(1); 40IDisposable registration = expirationToken.RegisterChangeCallback((Action<object?>)ExpirationCallback, cacheEntry); 91List<IDisposable>? registrations = _expirationTokenRegistrations; 97IDisposable registration = registrations[i];
Microsoft.Extensions.Configuration (10)
ChainedConfigurationProvider.cs (1)
111(_config as IDisposable)?.Dispose();
ConfigurationManager.cs (2)
37private readonly List<IDisposable> _changeTokenRegistrations = new(); 162foreach (IDisposable registration in _changeTokenRegistrations)
ConfigurationReloadToken.cs (1)
37public IDisposable RegisterChangeCallback(Action<object?> callback, object? state)
ConfigurationRoot.cs (4)
20private readonly List<IDisposable> _changeTokenRegistrations; 32_changeTokenRegistrations = new List<IDisposable>(providers.Count); 102foreach (IDisposable registration in _changeTokenRegistrations) 110(provider as IDisposable)?.Dispose();
ReferenceCountedProviders.cs (1)
73(provider as IDisposable)?.Dispose();
src\runtime\src\libraries\Common\src\Extensions\ChangeCallbackRegistrar.cs (1)
22internal static IDisposable UnsafeRegisterChangeCallback<T>(Action<object?> callback, object? state, CancellationToken token, Action<T> onFailure, T onFailureState)
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
EnvironmentVariablesConfigurationProvider.cs (1)
148(e as IDisposable)?.Dispose();
Microsoft.Extensions.Configuration.FileExtensions (2)
FileConfigurationProvider.cs (2)
21private readonly IDisposable? _changeTokenRegistration; 236/// <param name="disposing"><c>true</c> if invoked from <see cref="IDisposable.Dispose"/>.</param>
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationProvider.cs (1)
17private readonly IDisposable? _changeTokenRegistration;
Microsoft.Extensions.DataIngestion.Tests (2)
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestChatClient.cs (1)
38void IDisposable.Dispose()
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestEmbeddingGenerator.cs (1)
35void IDisposable.Dispose()
Microsoft.Extensions.DependencyInjection (9)
ServiceLookup\ServiceCallSite.cs (1)
28typeof(IDisposable).IsAssignableFrom(ImplementationType) ||
ServiceLookup\ServiceProviderEngineScope.cs (5)
86if (ReferenceEquals(this, service) || !(service is IDisposable || service is IAsyncDisposable)) 108if (service is IDisposable disposable) 144if (disposableEntry is IDisposable disposable) 195((IDisposable)disposable).Dispose(); 239((IDisposable)disposable).Dispose();
ServiceProvider.cs (3)
173/// Disposes the service provider and all resolved services that implement <see cref="IDisposable"/>. 177/// <see cref="IAsyncDisposable"/> but not <see cref="IDisposable"/>, this method throws an 189/// Asynchronously disposes the service provider and all resolved services that implement <see cref="IDisposable"/> or <see cref="IAsyncDisposable"/>.
Microsoft.Extensions.DependencyInjection.Abstractions (1)
IServiceScope.cs (1)
12/// The <see cref="System.IDisposable.Dispose"/> method ends the scope lifetime. Once Dispose
Microsoft.Extensions.Diagnostics (2)
Metrics\MetricsSubscriptionManager.cs (1)
15private readonly IDisposable? _changeTokenRegistration;
Tracing\DefaultActivitySourceFactory.cs (1)
18private readonly IDisposable? _changeTokenRegistration;
Microsoft.Extensions.Diagnostics.Abstractions (1)
Tracing\ActivityListenerBuilder.cs (1)
17/// or <see cref="IDisposable.Dispose"/>: subscription filtering is owned by the rule set, and the lifetime of the
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogger.cs (1)
62public IDisposable? BeginScope<TState>(TState state)
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Logging\FakeLoggerTests.cs (2)
275using var s1 = logger.BeginScope(42); 276using var s2 = logger.BeginScope("Hello World");
Microsoft.Extensions.FileProviders.Abstractions (1)
NullChangeToken.cs (1)
39public IDisposable RegisterChangeCallback(Action<object?> callback, object? state)
Microsoft.Extensions.FileProviders.Physical (4)
PhysicalFileProvider.cs (1)
204/// <param name="disposing"><see langword="true"/> if invoked from <see cref="IDisposable.Dispose"/>; otherwise, <see langword="false"/>.</param>
PhysicalFilesWatcher.cs (1)
306/// <param name="disposing"><see langword="true"/> if invoked from <see cref="IDisposable.Dispose"/>; otherwise, <see langword="false"/>.</param>
PollingFileChangeToken.cs (1)
130public IDisposable RegisterChangeCallback(Action<object?> callback, object? state)
PollingWildCardChangeToken.cs (1)
198IDisposable IChangeToken.RegisterChangeCallback(Action<object?> callback, object? state)
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
563case IDisposable disposable:
Microsoft.Extensions.Hosting.WindowsServices (1)
WindowsServiceLifetime.cs (1)
179/// <param name="disposing"><see langword="true" /> only when called from <see cref="IDisposable.Dispose"/>; otherwise, <see langword="false" />.</param>
Microsoft.Extensions.Http (3)
DependencyInjection\HttpClientBuilderExtensions.cs (1)
665/// instances being captured by DI as both implement <see cref="IDisposable"/>. This might lead to memory leaks if the client is resolved multiple times within a
Logging\LogHelper.cs (2)
51private static readonly Func<ILogger, HttpMethod, string?, IDisposable?> _beginRequestPipelineScope = LoggerMessage.DefineScope<HttpMethod, string?>("HTTP {HttpMethod} {Uri}"); 105public static IDisposable? BeginRequestPipelineScope(this ILogger logger, HttpRequestMessage request, out string? formattedUri)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (2)
DropMessageLogger.cs (1)
16public IDisposable? BeginScope<TState>(TState state)
StaticOptionsMonitor.cs (1)
21public IDisposable OnChange(Action<T, string> listener)
Microsoft.Extensions.Http.Polly (1)
PolicyHttpMessageHandler.cs (1)
161if (request.Properties.TryGetValue(PriorResponseKey, out var priorResult) && priorResult is IDisposable disposable)
Microsoft.Extensions.Http.Resilience (1)
Internal\RequestMessageSnapshot.cs (1)
72void IDisposable.Dispose() => _snapshots.Return(this);
Microsoft.Extensions.Logging (11)
Logger.cs (6)
116public IDisposable? BeginScope<TState>(TState state) where TState : notnull 277private IDisposable? _disposable0; 278private IDisposable? _disposable1; 279private readonly IDisposable?[]? _disposable; 285_disposable = new IDisposable[count - 2]; 289public void SetDisposable(int index, IDisposable? disposable)
LoggerFactory.cs (1)
27private readonly IDisposable? _changeTokenRegistration;
LoggerFactoryScopeProvider.cs (1)
91public IDisposable Push(object? state)
LoggerInformation.cs (1)
60public IDisposable? CreateScope<TState>(TState state) where TState : notnull
src\runtime\src\libraries\Common\src\Extensions\Logging\NullExternalScopeProvider.cs (1)
28IDisposable IExternalScopeProvider.Push(object? state)
StaticFilterOptionsMonitor.cs (1)
16public IDisposable? OnChange(Action<LoggerFilterOptions, string> listener) => null;
Microsoft.Extensions.Logging.Abstractions (17)
IExternalScopeProvider.cs (2)
26/// <returns>The <see cref="IDisposable"/> token that removes scope on dispose.</returns> 27IDisposable Push(object? state);
ILogger.cs (2)
37/// <returns>An <see cref="IDisposable"/> that ends the logical operation scope on dispose.</returns> 38IDisposable? BeginScope<TState>(TState state) where TState : notnull;
LoggerExtensions.cs (1)
503public static IDisposable? BeginScope(
LoggerExternalScopeProvider.cs (1)
38public IDisposable Push(object? state)
LoggerMessage.cs (7)
21public static Func<ILogger, IDisposable?> DefineScope(string formatString) 36public static Func<ILogger, T1, IDisposable?> DefineScope<T1>(string formatString) 50public static Func<ILogger, T1, T2, IDisposable?> DefineScope<T1, T2>(string formatString) 65public static Func<ILogger, T1, T2, T3, IDisposable?> DefineScope<T1, T2, T3>(string formatString) 81public static Func<ILogger, T1, T2, T3, T4, IDisposable?> DefineScope<T1, T2, T3, T4>(string formatString) 98public static Func<ILogger, T1, T2, T3, T4, T5, IDisposable?> DefineScope<T1, T2, T3, T4, T5>(string formatString) 116public static Func<ILogger, T1, T2, T3, T4, T5, T6, IDisposable?> DefineScope<T1, T2, T3, T4, T5, T6>(string formatString)
LoggerT.cs (1)
33IDisposable? ILogger.BeginScope<TState>(TState state)
NullLogger.cs (1)
26public IDisposable BeginScope<TState>(TState state) where TState : notnull
NullLoggerT.cs (1)
20public IDisposable BeginScope<TState>(TState state) where TState : notnull
src\runtime\src\libraries\Common\src\Extensions\Logging\NullExternalScopeProvider.cs (1)
28IDisposable IExternalScopeProvider.Push(object? state)
Microsoft.Extensions.Logging.AzureAppServices (2)
BatchingLogger.cs (1)
21public IDisposable BeginScope<TState>(TState state)
BatchingLoggerProvider.cs (1)
22private readonly IDisposable _optionsChangeToken;
Microsoft.Extensions.Logging.Console (8)
ConsoleLogger.cs (1)
109public IDisposable BeginScope<TState>(TState state) where TState : notnull => ScopeProvider?.Push(state) ?? NullScope.Instance;
ConsoleLoggerExtensions.Obsolete.cs (1)
171public IDisposable RegisterChangeCallback(Action<object?> callback, object? state) => this;
ConsoleLoggerProvider.cs (1)
26private readonly IDisposable? _optionsReloadToken;
FormatterOptionsMonitor.cs (1)
23public IDisposable? OnChange(Action<TOptions, string> listener)
JsonConsoleFormatter.cs (1)
19private readonly IDisposable? _optionsReloadToken;
SimpleConsoleFormatter.cs (1)
25private readonly IDisposable? _optionsReloadToken;
src\runtime\src\libraries\Common\src\Extensions\Logging\NullExternalScopeProvider.cs (1)
28IDisposable IExternalScopeProvider.Push(object? state)
SystemdConsoleFormatter.cs (1)
15private readonly IDisposable? _optionsReloadToken;
Microsoft.Extensions.Logging.Debug (2)
DebugLogger.cs (1)
26public IDisposable BeginScope<TState>(TState state) where TState : notnull
src\runtime\src\libraries\Common\src\Extensions\Logging\NullExternalScopeProvider.cs (1)
28IDisposable IExternalScopeProvider.Push(object? state)
Microsoft.Extensions.Logging.EventLog (2)
EventLogLogger.cs (1)
57public IDisposable? BeginScope<TState>(TState state) where TState : notnull
src\runtime\src\libraries\Common\src\Extensions\Logging\NullExternalScopeProvider.cs (1)
28IDisposable IExternalScopeProvider.Push(object? state)
Microsoft.Extensions.Logging.EventSource (2)
EventSourceLogger.cs (1)
181public IDisposable BeginScope<TState>(TState state) where TState : notnull
src\runtime\src\libraries\Common\src\Extensions\Logging\NullExternalScopeProvider.cs (1)
28IDisposable IExternalScopeProvider.Push(object? state)
Microsoft.Extensions.Logging.MSBuild (2)
MSBuildLogger.cs (2)
35private static readonly IDisposable Scope = new DummyDisposable(); 48IDisposable ILogger.BeginScope<TState>(TState state) => _scopeProvider?.Push(state) ?? Scope;
Microsoft.Extensions.Logging.TraceSource (1)
TraceSourceLogger.cs (1)
81public IDisposable BeginScope<TState>(TState state) where TState : notnull
Microsoft.Extensions.ML (5)
ModelReloadToken.cs (1)
42public IDisposable RegisterChangeCallback(Action<object> callback, object state) => _cts.Token.Register(callback, state);
PoolLoader.cs (4)
27private readonly IDisposable _changeTokenRegistration; 124(pool as IDisposable)?.Dispose(); 128(model as IDisposable)?.Dispose(); 145(Loader as IDisposable)?.Dispose();
Microsoft.Extensions.ML.Tests (4)
FileLoaderTests.cs (1)
70using IDisposable changeTokenRegistration = ChangeToken.OnChange(
PredictionEnginePoolTests.cs (1)
169(_inner as IDisposable)?.Dispose();
UriLoaderTests.cs (2)
51using IDisposable changeTokenRegistration = ChangeToken.OnChange( 73using IDisposable changeTokenRegistration = ChangeToken.OnChange(
Microsoft.Extensions.ObjectPool (2)
DefaultObjectPoolProvider.cs (1)
24if (typeof(IDisposable).IsAssignableFrom(typeof(T)))
DisposableObjectPool.cs (1)
62if (item is IDisposable disposable)
Microsoft.Extensions.Options (9)
IOptionsMonitor.cs (2)
38/// <returns>An <see cref="IDisposable"/> that should be disposed to stop listening for changes.</returns> 39IDisposable? OnChange(Action<TOptions, string?> listener);
OptionsMonitor.cs (6)
22private readonly List<IDisposable> _registrations = new List<IDisposable>(); 38IDisposable registration = ChangeToken.OnChange( 108/// <returns>An <see cref="IDisposable"/> that should be disposed to stop listening for changes.</returns> 109public IDisposable OnChange(Action<TOptions, string> listener) 122foreach (IDisposable registration in _registrations)
OptionsMonitorExtensions.cs (1)
21public static IDisposable? OnChange<[DynamicallyAccessedMembers(Options.DynamicallyAccessedMembers)] TOptions>(
Microsoft.Extensions.Primitives (22)
CancellationChangeToken.cs (1)
35public IDisposable RegisterChangeCallback(Action<object?> callback, object? state)
ChangeToken.cs (13)
20/// <returns>An <see cref="IDisposable"/> that, when disposed, unregisters the consumer.</returns> 25public static IDisposable OnChange(Func<IChangeToken?> changeTokenProducer, Action changeTokenConsumer) 39/// <returns>An <see cref="IDisposable"/> that, when disposed, unregisters the consumer.</returns> 44public static IDisposable OnChange<TState>(Func<IChangeToken?> changeTokenProducer, Action<TState> changeTokenConsumer, TState state) 57/// <returns>An <see cref="IDisposable"/> that, when disposed, unregisters the consumer.</returns> 63public static IDisposable OnChange(Func<IChangeToken?> changeTokenProducer, Func<Task> changeTokenConsumer) 77/// <returns>An <see cref="IDisposable"/> that, when disposed, unregisters the consumer.</returns> 83public static IDisposable OnChange<TState>(Func<IChangeToken?> changeTokenProducer, Func<TState, Task> changeTokenConsumer, TState state) 93private IDisposable? _disposable; 118IDisposable? registration = token.RegisterChangeCallback(static s => ((ChangeTokenRegistration<TState>?)s)!.OnChangeTokenFired(), this); 127private void SetDisposable(IDisposable? disposable) 132IDisposable? current = Volatile.Read(ref _disposable); 142IDisposable? previous = Interlocked.CompareExchange(ref _disposable, disposable, current);
CompositeChangeToken.cs (5)
26private List<IDisposable>? _disposables; 57public IDisposable RegisterChangeCallback(Action<object?> callback, object? state) 113_disposables = new List<IDisposable>(); 118IDisposable disposable = ChangeTokens[i].RegisterChangeCallback(_onChangeDelegate, this); 157List<IDisposable>? disposables = compositeChangeTokenState._disposables;
IChangeToken.cs (2)
34/// <returns>An <see cref="IDisposable"/> that is used to unregister the callback.</returns> 35IDisposable RegisterChangeCallback(Action<object?> callback, object? state);
src\runtime\src\libraries\Common\src\Extensions\ChangeCallbackRegistrar.cs (1)
22internal static IDisposable UnsafeRegisterChangeCallback<T>(Action<object?> callback, object? state, CancellationToken token, Action<T> onFailure, T onFailureState)
Microsoft.Extensions.ServiceDiscovery (3)
ServiceEndpointWatcher.cs (3)
35private IDisposable? _changeTokenRegistration; 138IDisposable? changeTokenRegistration; 281IDisposable? changeTokenRegistration;
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
XunitLoggerFactoryExtensions.cs (1)
135public IDisposable BeginScope<TState>(TState state) where TState : notnull
Microsoft.Extensions.Telemetry (12)
Logging\ExtendedLogger.cs (1)
67public IDisposable? BeginScope<TState>(TState state)
Logging\ExtendedLogger.Scope.cs (5)
14private readonly IDisposable?[]? _disposable; 16private IDisposable? _disposable0; 17private IDisposable? _disposable1; 23_disposable = new IDisposable[count - NumInlineDisposables]; 27public void SetDisposable(int index, IDisposable? disposable)
Logging\ExtendedLoggerFactory.cs (3)
25private readonly IDisposable? _filterOptionsChangeTokenRegistration; 27private readonly IDisposable? _enrichmentOptionsChangeTokenRegistration; 28private readonly IDisposable? _redactionOptionsChangeTokenRegistration;
Logging\Import\LoggerFactoryScopeProvider.cs (1)
106public IDisposable Push(object? state)
Logging\Import\LoggerInformation.cs (1)
72public IDisposable? CreateScope<TState>(TState state) where TState : notnull
Sampling\RandomProbabilisticSampler.cs (1)
29private readonly IDisposable? _samplerOptionsChangeTokenRegistration;
Microsoft.Extensions.Telemetry.PerformanceTests (1)
BenchLogger.cs (1)
25public IDisposable? BeginScope<TState>(TState state)
Microsoft.Extensions.Telemetry.Tests (13)
Logging\ExtendedLoggerFactoryTests.cs (9)
73Mock.Get<IDisposable>(disposableProvider1) 75Mock.Get<IDisposable>(disposableProvider2) 102disposableProvider.As<IDisposable>() 113throwingProvider.As<IDisposable>() 123throwingProvider.As<IDisposable>() 471var scope = logger.BeginScope("Scope"); 483var scope = logger.BeginScope("Scope"); 580public IDisposable BeginScope<TState>(TState state) 622public IDisposable? BeginScope<TState>(TState state)
Logging\ExtendedLoggerTests.cs (3)
1070public IDisposable? BeginScope<TState>(TState state) 1157public IDisposable? BeginScope<TState>(TState state) 1228public IDisposable? OnChange(Action<T, string> listener) => null;
Logging\SerialExtendedLoggerTests.cs (1)
96public IDisposable? OnChange(Action<T, string> listener) => null;
Microsoft.Gen.Logging.Generated.Tests (3)
LogMethodTests.cs (2)
23public IDisposable? BeginScope<TState>(TState state) 36public IDisposable? BeginScope<TState>(TState state)
Utils.cs (1)
60public IDisposable? BeginScope<TState>(TState state)
Microsoft.Maui (10)
Animations\AnimationManager.cs (1)
116 if (disposing && Ticker is IDisposable disposable)
Hosting\MauiApp.cs (3)
42 (_services as IDisposable)?.Dispose(); 57 (_services as IDisposable)?.Dispose(); 65 (Configuration as IDisposable)?.Dispose();
Hosting\MauiAppBuilder.cs (1)
194 public IDisposable BeginScope<TState>(TState state) where TState : notnull => this;
ImageSources\ImageSourceServiceResultManager.cs (3)
27 IDisposable? _sourceResult; 48 CompleteLoad((IDisposable?)result); 73 public void CompleteLoad(IDisposable? result)
Platform\ViewExtensions.cs (2)
129 internal static IDisposable OnUnloaded(this IElement element, Action action) 148 internal static IDisposable OnLoaded(this IElement element, Action action)
Microsoft.Maui.Controls (10)
AnimationExtensions.cs (1)
215 public static IDisposable Batch(this IAnimatable self) => new BatchObject(self);
ListProxy.cs (6)
149 var dispose = _enumerator as IDisposable; 305 var dispose = _enumerator as IDisposable; 337 var dispose = _enumerator as IDisposable;
Performance.cs (1)
58 internal static IDisposable StartNew(string tag = null, [CallerFilePath] string path = null, [CallerMemberName] string member = null)
StreamWrapper.cs (2)
14 IDisposable _additionalDisposable; 21 public StreamWrapper(Stream wrapped, IDisposable additionalDisposable)
Microsoft.Maui.Graphics (1)
PathF.cs (1)
1268 if (_platformPath is IDisposable disposable)
Microsoft.ML.Core (3)
ComponentModel\AssemblyLoadingUtils.cs (1)
85public static IDisposable CreateAssemblyRegistrar(IHostEnvironment env, string loadAssembliesPath = null)
Data\WrappingRow.cs (1)
38/// <see cref="IDisposable.Dispose"/> method, but subclasses can enable additional functionality
Environment\ConsoleEnvironment.cs (1)
423internal IDisposable RedirectChannelOutput(TextWriter newOutWriter, TextWriter newErrWriter)
Microsoft.ML.Data (12)
DataLoadSave\TransformerChain.cs (1)
265(transformer as IDisposable)?.Dispose();
DataView\CompositeRowToRowMapper.cs (1)
131(mapper as IDisposable)?.Dispose();
DataView\SimpleRow.cs (1)
36/// <see cref="IDisposable.Dispose"/>, prior to disposing <paramref name="input"/>.</param>
Prediction\PredictionEngine.cs (1)
147(Transformer as IDisposable)?.Dispose();
Scorers\MulticlassClassificationScorer.cs (1)
393(_bindable as IDisposable)?.Dispose();
Scorers\PredictedLabelScorerBase.cs (2)
456(Bindings.RowMapper as IDisposable)?.Dispose(); 457(Bindable as IDisposable)?.Dispose();
Scorers\PredictionTransformer.cs (3)
193(Model as IDisposable)?.Dispose(); 194(BindableMapper as IDisposable)?.Dispose(); 195(Scorer as IDisposable)?.Dispose();
Scorers\SchemaBindablePredictorWrapper.cs (2)
254(_parent as IDisposable)?.Dispose(); 269(Predictor as IDisposable)?.Dispose();
Microsoft.ML.DataView (2)
DataViewType.cs (1)
80if (typeof(IDisposable).GetTypeInfo().IsAssignableFrom(RawType.GetTypeInfo()))
IDataView.cs (1)
174/// <param name="disposing">Whether this was called from <see cref="IDisposable.Dispose"/>.
Microsoft.ML.FastTree (1)
Utils\Timer.cs (1)
238void IDisposable.Dispose()
Microsoft.ML.GenAI.Core (2)
Pipeline\CausalLMPipeline.cs (2)
134using var noGrad = torch.no_grad(); 307using var noGrad = torch.no_grad();
Microsoft.ML.IntegrationTests (1)
IntegrationTestBaseClass.cs (1)
75void IDisposable.Dispose()
Microsoft.ML.OnnxTransformerTest (18)
OnnxTransformTests.cs (18)
170(onnxTransformer as IDisposable)?.Dispose(); 232(transformer as IDisposable)?.Dispose(); 268(loadedModel as IDisposable)?.Dispose(); 285(model as IDisposable)?.Dispose(); 319(loadedModel as IDisposable)?.Dispose(); 336(model as IDisposable)?.Dispose(); 384(onnxTransformer as IDisposable)?.Dispose(); 419(onnxTransformer as IDisposable)?.Dispose(); 459(onnxTransformer as IDisposable)?.Dispose(); 499(onnxTransformer as IDisposable)?.Dispose(); 519(onnxTransformer as IDisposable)?.Dispose(); 545(onnxTransformer as IDisposable)?.Dispose(); 658(model as IDisposable)?.Dispose(); 730(onnxTransformer as IDisposable)?.Dispose(); 783(onnxTransformer as IDisposable)?.Dispose(); 949(onnxTransformer[i] as IDisposable)?.Dispose(); 1112(model as IDisposable)?.Dispose(); 1113(loadedModel as IDisposable)?.Dispose();
Microsoft.ML.Sweeper (4)
AsyncSweeper.cs (2)
137(_baseSweeper as IDisposable)?.Dispose(); 306(_baseSweeper as IDisposable)?.Dispose();
SweepCommand.cs (2)
110var d = _sweeper as IDisposable;
Microsoft.ML.TensorFlow.Tests (23)
TensorflowTests.cs (23)
165(transformer as IDisposable)?.Dispose(); 213(trans as IDisposable)?.Dispose(); 326(trans as IDisposable)?.Dispose(); 481(trans as IDisposable)?.Dispose(); 672(trainedModel as IDisposable)?.Dispose(); 735(trainedModel as IDisposable)?.Dispose(); 848(trainedModel as IDisposable)?.Dispose(); 899(trainedModel as IDisposable)?.Dispose(); 1039(trans as IDisposable)?.Dispose(); 1080(trans as IDisposable)?.Dispose(); 1197(testTransformer as IDisposable)?.Dispose(); 1287(model as IDisposable)?.Dispose(); 1289(pipelineModel as IDisposable)?.Dispose(); 1426(loadedModel as IDisposable)?.Dispose(); 1427(trainedModel as IDisposable)?.Dispose(); 1575(loadedModel as IDisposable)?.Dispose(); 1576(trainedModel as IDisposable)?.Dispose(); 1738(loadedModel as IDisposable)?.Dispose(); 1739(trainedModel as IDisposable)?.Dispose(); 1821(loadedModel as IDisposable)?.Dispose(); 1822(trainedModel as IDisposable)?.Dispose(); 1891(loadedModel as IDisposable)?.Dispose(); 1892(trainedModel as IDisposable)?.Dispose();
Microsoft.ML.TestFramework (3)
BaseTestClass.cs (1)
78void IDisposable.Dispose()
DataPipe\TestDataPipeBase.cs (2)
150(loadedTransformer as IDisposable)?.Dispose(); 151if (shouldDispose) (transformer as IDisposable)?.Dispose();
Microsoft.ML.Tests (7)
OnnxConversionTest.cs (7)
832(onnxTransformer as IDisposable)?.Dispose(); 992(onnxTransformer as IDisposable)?.Dispose(); 1530(onnxTransformer as IDisposable)?.Dispose(); 1636(onnxTransformer as IDisposable)?.Dispose(); 1830(onnxTransformer as IDisposable)?.Dispose(); 1831(onnxTransformer2 as IDisposable)?.Dispose(); 2263(onnxTransformer as IDisposable)?.Dispose();
Microsoft.ML.Transforms (5)
LambdaTransform.cs (2)
83/// <typeparamref name="TState"/> implement the <see cref="IDisposable" /> interface, they will be disposed after use. 126/// If <typeparamref name="TSrc"/> or <typeparamref name="TState"/> implement the <see cref="IDisposable" /> interface, they will be disposed after use.
StatefulFilterTransform.cs (3)
175if (_state is IDisposable disposableState) 177if (_src is IDisposable disposableSrc) 179if (_dst is IDisposable disposableDst)
Microsoft.NET.StringTools (1)
StringTools.cs (1)
63/// Call <see cref="IDisposable.Dispose"/> on the returned instance to recycle it.
Microsoft.Private.Windows.Core (3)
System\DisposableBase.cs (1)
7/// Base class for implementing <see cref="IDisposable"/> with double disposal protection.
System\DisposeHelper.cs (2)
15internal static void NullAndDispose<T>(ref T? disposable) where T : class, IDisposable 17IDisposable? localDisposable = disposable;
Microsoft.TemplateEngine.Abstractions (1)
PhysicalFileSystem\IPhysicalFileSystem.cs (1)
106IDisposable WatchFileChanges(string filePath, FileSystemEventHandler fileChanged);
Microsoft.TemplateEngine.Cli (1)
CliConsoleFormatter.cs (1)
13private readonly IDisposable? _optionsReloadToken;
Microsoft.TemplateEngine.Edge (11)
BuiltInManagedProvider\GlobalSettings.cs (3)
21private IDisposable? _watcher; 36public async Task<IDisposable> LockAsync(CancellationToken token) 154private IDisposable? CreateWatcherIfRequested()
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (4)
123using var disposable = await _globalSettings.LockAsync(cancellationToken).ConfigureAwait(false); 167using var disposable = await _globalSettings.LockAsync(cancellationToken).ConfigureAwait(false); 191using var disposable = await _globalSettings.LockAsync(cancellationToken).ConfigureAwait(false); 228using var disposable = await _globalSettings.LockAsync(cancellationToken).ConfigureAwait(false);
BuiltInManagedProvider\IGlobalSettings.cs (2)
33/// <returns><see cref="IDisposable"/> object that needs to be disposed once modifying of settings is finished.</returns> 34Task<IDisposable> LockAsync(CancellationToken token);
Settings\TemplatePackageManager.cs (2)
125foreach (var provider in _cachedSources.Keys.OfType<IDisposable>())
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
RunnableProjectConfig.ITemplate.cs (1)
135void IDisposable.Dispose() => SourceMountPoint.Dispose();
Microsoft.TemplateEngine.Utils (4)
InMemoryFileSystem.cs (2)
690/// Just returns <see cref="IDisposable"/> object, but never calls callback. 692public IDisposable WatchFileChanges(string filePath, FileSystemEventHandler fileChanged)
PhysicalFileSystem.cs (1)
126public IDisposable WatchFileChanges(string filePath, FileSystemEventHandler fileChanged)
Timing.cs (1)
14private readonly IDisposable? _disposable;
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Helpers\ForEachEnum.vb (1)
41Private Sub Dispose() Implements IDisposable.Dispose
Microsoft.VisualStudio.TestPlatform.Common (2)
ExtensionFramework\VSExtensionManager.cs (1)
113if (settingsManager is IDisposable disposable)
Interfaces\Engine\IDataCollectorAttachmentsProcessorsFactory.cs (1)
51(DataCollectorAttachmentProcessorInstance as IDisposable)?.Dispose();
Mono.Cecil (3)
Mono\Disposable.cs (3)
17 public static Disposable<T> Owned<T> (T value) where T : class, IDisposable 22 public static Disposable<T> NotOwned<T> (T value) where T : class, IDisposable 28 struct Disposable<T> : IDisposable where T : class, IDisposable {
MSBuild (2)
src\msbuild\src\Shared\RegisteredTaskObjectCacheBase.cs (2)
147IDisposable disposable = obj as IDisposable;
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
294[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IDisposable))]
netstandard (1)
netstandard.cs (1)
869[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IDisposable))]
NuGet.Build.Tasks (1)
StaticGraphRestoreTaskBase.cs (1)
90/// <inheritdoc cref="IDisposable.Dispose" />
NuGet.Common (5)
Telemetry\INuGetTelemetryService.cs (2)
17/// <returns> <see cref="IDisposable"/> which will log end activity marker. </returns> 18IDisposable StartActivity(string activityName);
Telemetry\TelemetryActivity.cs (3)
19private readonly IDisposable? _telemetryActivity; 75public IDisposable StartIndependentInterval(string propertyName) 93void IDisposable.Dispose()
NuGet.Configuration (1)
Settings\SettingsLoadingContext.cs (1)
26/// <inheritdoc cref="IDisposable.Dispose" />
NuGet.Packaging (1)
RuntimeModel\JsonObjectWriter.cs (1)
34((IDisposable)_writer).Dispose();
NuGet.ProjectModel (1)
LazyStringSplit.cs (1)
117void IDisposable.Dispose() { }
NuGet.Protocol (13)
Plugins\Connection.cs (1)
142/// <remarks>This does not call <see cref="IDisposable.Dispose" />.</remarks>
Plugins\IConnection.cs (1)
44/// <remarks>This does not call <see cref="IDisposable.Dispose" />.</remarks>
Plugins\IMessageDispatcher.cs (1)
24/// <remarks>This does not call <see cref="IDisposable.Dispose" />.</remarks>
Plugins\IPlugin.cs (1)
46/// <remarks>This does not call <see cref="IDisposable.Dispose" />.</remarks>
Plugins\IReceiver.cs (1)
26/// <remarks>This does not call <see cref="IDisposable.Dispose" />.</remarks>
Plugins\ISender.cs (1)
18/// <remarks>This does not call <see cref="IDisposable.Dispose" />.</remarks>
Plugins\MessageDispatcher.cs (1)
116/// <remarks>This does not call <see cref="IDisposable.Dispose" />.</remarks>
Plugins\NoOpDisposePlugin.cs (1)
91/// <remarks>This does not call <see cref="IDisposable.Dispose" />.</remarks>
Plugins\Plugin.cs (1)
172/// <remarks>This does not call <see cref="IDisposable.Dispose" />.</remarks>
Plugins\PluginManager.cs (1)
47if (previous.IsValueCreated && previous.Value is IDisposable disposable)
Plugins\Receiver.cs (1)
36/// <remarks>This does not call <see cref="IDisposable.Dispose" />.</remarks>
Plugins\Sender.cs (1)
80/// <remarks>This does not call <see cref="IDisposable.Dispose" />.</remarks>
Plugins\StandardOutputReceiver.cs (1)
66/// <remarks>This does not call <see cref="IDisposable.Dispose" />.</remarks>
PresentationBuildTasks (2)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Media\StreamGeometryContext.cs (1)
55void IDisposable.Dispose()
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
162((IDisposable)_reader).Dispose();
PresentationCore (41)
MS\Internal\DpiUtil\DpiUtil.cs (2)
161/// An <see cref="IDisposable"/> that defines a scope during which the DPI_AWARENESS_CONTEXT of the current thread is 164internal static IDisposable WithDpiAwarenessContext(DpiAwarenessContextValue dpiAwarenessContext)
MS\Internal\Generic\Span.cs (1)
380void IDisposable.Dispose()
MS\Internal\IO\Packaging\NetStream.cs (1)
1189((IDisposable)_byteRangeDownloader).Dispose();
MS\Internal\MediaTrace.cs (3)
115public IDisposable Indented() 121public IDisposable Indented(string message) 128void IDisposable.Dispose()
System\IO\Packaging\PackWebResponse.cs (1)
524((IDisposable)_fullResponse).Dispose();
System\Windows\Automation\Peers\AutomationPeer.cs (1)
2002internal virtual IDisposable UpdateChildren()
System\Windows\FreezableCollection.cs (2)
920private IDisposable BlockReentrancy() 992void IDisposable.Dispose()
System\Windows\Generated\TextDecorationCollection.cs (1)
757void IDisposable.Dispose()
System\Windows\Markup\XmlLanguage.cs (1)
608void IDisposable.Dispose() { }
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
756void IDisposable.Dispose()
System\Windows\Media\ByteStreamGeometryContext.cs (1)
54((IDisposable)this).Dispose();
System\Windows\Media\CharacterMetricsDictionary.cs (1)
533void IDisposable.Dispose()
System\Windows\Media\DrawingContext.cs (1)
78void IDisposable.Dispose()
System\Windows\Media\DrawingDrawingContext.cs (1)
1126((IDisposable)this).Dispose();
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
759void IDisposable.Dispose()
System\Windows\Media\Generated\DoubleCollection.cs (1)
784void IDisposable.Dispose()
System\Windows\Media\Generated\DrawingCollection.cs (1)
801void IDisposable.Dispose()
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
766void IDisposable.Dispose()
System\Windows\Media\Generated\GeometryCollection.cs (1)
801void IDisposable.Dispose()
System\Windows\Media\Generated\GradientStopCollection.cs (1)
869void IDisposable.Dispose()
System\Windows\Media\Generated\Int32Collection.cs (1)
784void IDisposable.Dispose()
System\Windows\Media\Generated\PathFigureCollection.cs (1)
856void IDisposable.Dispose()
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
766void IDisposable.Dispose()
System\Windows\Media\Generated\PointCollection.cs (1)
786void IDisposable.Dispose()
System\Windows\Media\Generated\TextEffectCollection.cs (1)
766void IDisposable.Dispose()
System\Windows\Media\Generated\TransformCollection.cs (1)
801void IDisposable.Dispose()
System\Windows\Media\Generated\VectorCollection.cs (1)
786void IDisposable.Dispose()
System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (1)
141void IDisposable.Dispose()
System\Windows\Media\RenderDataDrawingContext.cs (1)
51((IDisposable)this).Dispose();
System\Windows\Media\StreamGeometryContext.cs (1)
55void IDisposable.Dispose()
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
764void IDisposable.Dispose()
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
799void IDisposable.Dispose()
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
799void IDisposable.Dispose()
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
785void IDisposable.Dispose()
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
799void IDisposable.Dispose()
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
785void IDisposable.Dispose()
System\Windows\Media3D\Visual3DCollection.cs (1)
644void IDisposable.Dispose()
PresentationFramework (93)
Microsoft\Win32\CommonItemDialog.cs (1)
740void IDisposable.Dispose()
MS\Internal\Data\CollectionViewProxy.cs (1)
179public override IDisposable DeferRefresh()
MS\Internal\Data\CompositeCollectionView.cs (2)
1582IDisposable d = _containerEnumerator as IDisposable;
MS\Internal\Data\EnumerableCollectionView.cs (4)
181public override IDisposable DeferRefresh() 551IDisposable id = ie as IDisposable; 591private IDisposable IgnoreViewEvents()
MS\Internal\Data\IndexedEnumerable.cs (6)
184IDisposable d = ie as IDisposable; 452IDisposable d = ie as IDisposable; 757IDisposable d = _enumerator as IDisposable;
MS\Internal\Data\PropertyPathWorker.cs (2)
199internal IDisposable SetContext(object rootItem) 1769void IDisposable.Dispose()
MS\Internal\DataStreams.cs (1)
144((IDisposable)byteStream).Dispose( );
MS\Internal\Documents\DocumentGrid.cs (1)
1653((IDisposable)dp).Dispose();
MS\Internal\Documents\DocumentGridPage.cs (3)
339IDisposable dpv = _documentPageView as IDisposable; 359void IDisposable.Dispose()
MS\Internal\Documents\HostedElements.cs (1)
41void IDisposable.Dispose()
MS\Internal\Documents\UIElementIsland.cs (1)
159/// <see cref="IDisposable.Dispose"/>
MS\Internal\ListOfObject.cs (1)
128void IDisposable.Dispose()
MS\Internal\Printing\Win32PrintDialog.cs (1)
291using (IDisposable converter = new PrintTicketConverter(printerName, 1))
MS\Internal\PtsHost\StructuralCache.cs (13)
75internal IDisposable SetDocumentFormatContext(FlowDocumentPage currentPage) 82return (new DocumentFormatContext(this, currentPage) as IDisposable); 90internal IDisposable SetDocumentArrangeContext(FlowDocumentPage currentPage) 92return (new DocumentArrangeContext(this, currentPage) as IDisposable); 100internal IDisposable SetDocumentVisualValidationContext(FlowDocumentPage currentPage) 102return (new DocumentVisualValidationContext(this, currentPage) as IDisposable); 634/// <see cref="IDisposable.Dispose"/> 682/// <see cref="IDisposable.Dispose"/> 684void IDisposable.Dispose() 823/// <see cref="IDisposable.Dispose"/> 825void IDisposable.Dispose() 875/// <see cref="IDisposable.Dispose"/> 877void IDisposable.Dispose()
MS\Internal\Utility\MonitorWrapper.cs (1)
19public IDisposable Enter()
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (3)
413internal override IDisposable UpdateChildren() 534void IDisposable.Dispose() 755void IDisposable.Dispose()
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
218internal override IDisposable UpdateChildren()
System\Windows\Controls\ColumnDefinition.cs (1)
904/// <see cref="IDisposable.Dispose"/>
System\Windows\Controls\DataGrid.cs (3)
4913IDisposable d = enumerator as IDisposable; 5222private IDisposable UpdateSelectedCells()
System\Windows\Controls\DataGridCellsPanel.cs (2)
257IDisposable generatorState = null; 528ref IDisposable generatorState,
System\Windows\Controls\ItemCollection.cs (3)
705public override IDisposable DeferRefresh() 1952IDisposable deferInnerRefresh = _deferInnerRefresh; 2449private IDisposable _deferInnerRefresh;
System\Windows\Controls\ItemContainerGenerator.cs (5)
191IDisposable IItemContainerGenerator.StartAt(GeneratorPosition position, GeneratorDirection direction) 204IDisposable IItemContainerGenerator.StartAt(GeneratorPosition position, GeneratorDirection direction, bool allowStartAtRealizedItem) 213public IDisposable GenerateBatches() 1460void IDisposable.Dispose() 1584void IDisposable.Dispose()
System\Windows\Controls\ListBox.cs (2)
883IDisposable d = enumerator as IDisposable;
System\Windows\Controls\Primitives\DocumentPageView.cs (5)
837if (_documentPage is IDisposable) 839((IDisposable)_documentPage).Dispose(); 859if (_documentPageAsync is IDisposable) 861((IDisposable)_documentPageAsync).Dispose(); 1035void IDisposable.Dispose()
System\Windows\Controls\Primitives\IItemContainerGenerator.cs (2)
34IDisposable StartAt(GeneratorPosition position, GeneratorDirection direction); 44IDisposable StartAt(GeneratorPosition position, GeneratorDirection direction, bool allowStartAtRealizedItem);
System\Windows\Controls\Primitives\Selector.cs (1)
2793public IDisposable DeferRemove()
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
406public IDisposable DeclareChangeBlock()
System\Windows\Controls\RowDefinition.cs (1)
899/// <see cref="IDisposable.Dispose"/>
System\Windows\Controls\SelectedItemCollection.cs (1)
145private IDisposable ChangeSelectedItems()
System\Windows\Data\BindingExpression.cs (1)
2552internal IDisposable ChangingValue()
System\Windows\Data\BindingOperations.cs (2)
560internal static IDisposable EnableExceptionLogging() 585void IDisposable.Dispose()
System\Windows\Data\CollectionContainer.cs (2)
98IDisposable d = enumerator as IDisposable;
System\Windows\Data\CollectionView.cs (5)
124IDisposable d = e as IDisposable; 320public virtual IDisposable DeferRefresh() 1565IDisposable d = ie as IDisposable;
System\Windows\Data\CollectionViewSource.cs (1)
696public IDisposable DeferRefresh()
System\Windows\Documents\ITextRange.cs (2)
198IDisposable DeclareChangeBlock(); 202IDisposable DeclareChangeBlock(bool disableScroll);
System\Windows\Documents\NaturalLanguageHyphenator.cs (1)
59void IDisposable.Dispose()
System\Windows\Documents\TextRange.cs (5)
260IDisposable ITextRange.DeclareChangeBlock() 268IDisposable ITextRange.DeclareChangeBlock(bool disableScroll) 1512internal IDisposable DeclareChangeBlock() 1523internal IDisposable DeclareChangeBlock(bool disableScroll) 1847void IDisposable.Dispose()
System\Windows\Navigation\NavigationService.cs (2)
4443IDisposable disposable = node as IDisposable;
System\Windows\PropertyPath.cs (1)
222internal IDisposable SetContext(object rootItem)
System\Windows\Window.cs (1)
7676void IDisposable.Dispose()
PresentationUI (10)
MS\Internal\Documents\Application\Document.cs (2)
108/// <see cref="System.IDisposable"/> 128/// <see cref="System.IDisposable"/>
MS\Internal\Documents\Application\DocumentManager.cs (2)
131IDisposable disposable = controller as IDisposable;
MS\Internal\Documents\Application\DocumentStream.cs (1)
651void IDisposable.Dispose()
MS\Internal\Documents\Application\RightsController.cs (3)
420void IDisposable.Dispose() 422IDisposable provider = _provider as IDisposable;
MS\Internal\Documents\Application\TransactionalPackage.cs (2)
291((IDisposable)_tempPackage).Dispose(); 297((IDisposable)_originalPackage).Dispose();
ReachFramework (11)
Packaging\PartEditor.cs (1)
134IDisposable.Dispose(
Packaging\XpsDocument.cs (1)
958IDisposable.Dispose(
Packaging\XpsFixedDocumentReaderWriter.cs (1)
1261IDisposable.Dispose(
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (1)
730IDisposable.Dispose(
Packaging\XpsFixedPageReaderWriter.cs (1)
2102IDisposable.Dispose(
Packaging\XpsManager.cs (1)
1333IDisposable.Dispose(
Packaging\XpsResource.cs (1)
160IDisposable.Dispose()
PrintConfig\PTConverter.cs (1)
295void IDisposable.Dispose()
Serialization\Manager\MetroSerializationManager.cs (1)
75IDisposable.Dispose()
Serialization\Manager\ReachSerializer.cs (1)
392IDisposable.Dispose()
Serialization\Manager\XpsPackagingPolicy.cs (1)
483IDisposable.Dispose(
Roslyn.Diagnostics.Analyzers (49)
src\roslyn\src\Compilers\Core\Portable\Collections\SmallDictionary.cs (3)
591void IDisposable.Dispose() 708void IDisposable.Dispose() 814void IDisposable.Dispose()
src\roslyn\src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
20/// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to
src\roslyn\src\Dependencies\PooledObjects\PooledDisposer.cs (1)
17void IDisposable.Dispose()
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DisposeMethodKind.cs (2)
18/// An override of <see cref="System.IDisposable.Dispose"/>. 40/// A method named Close on a type that implements <see cref="System.IDisposable"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
27where T : class, IDisposable
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
117/// Checks if the given method implements <see cref="IDisposable.Dispose"/> or overrides an implementation of <see cref="IDisposable.Dispose"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (3)
705void IDisposable.Dispose() 822void IDisposable.Dispose() 928void IDisposable.Dispose()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (8)
159public static IDisposable LogBlock(FunctionId functionId, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 165public static IDisposable LogBlock(FunctionId functionId, string? message, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 174public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 183public static IDisposable LogBlock<TArg>(FunctionId functionId, Func<TArg, string> messageGetter, TArg arg, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 192public static IDisposable LogBlock<TArg0, TArg1>(FunctionId functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 201public static IDisposable LogBlock<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 210public static IDisposable LogBlock<TArg0, TArg1, TArg2, TArg3>(FunctionId functionId, Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 218public static IDisposable LogBlock(FunctionId functionId, LogMessage logMessage, CancellationToken token)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
19public static IDisposable CreateLogBlock(ILogger logger, FunctionId functionId, LogMessage message, int blockId, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
581/// Callers should <see cref="IDisposable.Dispose"/> the instance returned. No check is necessary if 582/// <c>default</c> was returned before calling <see cref="IDisposable.Dispose"/>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ConcatImmutableArray`1.cs (1)
53readonly void IDisposable.Dispose()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReferenceCountedDisposable.cs (5)
11/// to a more base type. This can include types that do not implement <see cref="IDisposable"/> if you want to prevent a caller from accidentally 22/// <para>This call is not valid after <see cref="IDisposable.Dispose"/> is called. If this property or the target 23/// object is used concurrently with a call to <see cref="IDisposable.Dispose"/>, it is possible for the code to be 26/// <see cref="IDisposable.Dispose"/> is called is unspecified; code is expected to not use this property or the object 27/// it returns after any code invokes <see cref="IDisposable.Dispose"/>.</para>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (5)
16/// deterministically released (by calling <see cref="IDisposable.Dispose"/>) when the last reference is 36/// call to <see cref="IDisposable.Dispose"/> when the last reference to it is released. However, in the event 50/// <para>Do not call <see cref="IDisposable.Dispose"/> on the target object directly. It will be called 59where T : class, IDisposable 86/// Initializes a new reference counting wrapper around an <see cref="IDisposable"/> object.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
15internal sealed class ReferenceCountedDisposableCache<TKey, TValue> where TValue : class, IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
259=> compilation.GetTypeByMetadataName(typeof(IDisposable).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (3)
113: GetIDisposableInterfaceAndDisposeMethod(typeof(IDisposable).FullName!, nameof(IDisposable.Dispose)); 151.GetMembers(nameof(IDisposable.Dispose))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (4)
29private readonly HashSet<IDisposable> _ownedDisposableServices = new(ReferenceEqualityComparer.Instance); 54ImmutableArray<IDisposable> disposableServices; 63foreach (var service in disposableServices) 106if (checkAddDisposable && languageService is IDisposable disposable)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
15where T : IDisposable
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (4)
31private readonly HashSet<IDisposable> _ownedDisposableServices = new(ReferenceEqualityComparer.Instance); 76ImmutableArray<IDisposable> disposableServices; 91foreach (var service in disposableServices) 121if (checkAddDisposable && serviceInstance is IDisposable disposable)
System.CodeDom (1)
src\runtime\src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
44void IDisposable.Dispose()
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (3)
1462readonly void IDisposable.Dispose() { } 1656readonly void IDisposable.Dispose() { } 1900readonly void IDisposable.Dispose() { }
System.Collections.Concurrent (1)
System\Collections\Concurrent\OrderablePartitioner.cs (1)
232(_source as IDisposable)?.Dispose();
System.Collections.Immutable (6)
System\Collections\Frozen\FrozenDictionary.cs (1)
722void IDisposable.Dispose() { }
System\Collections\Frozen\FrozenSet.cs (1)
530void IDisposable.Dispose() { }
System\Collections\Immutable\ImmutableArray_1.Enumerator.cs (2)
14/// It is important that this enumerator does NOT implement <see cref="IDisposable"/>. 69/// An array enumerator that implements <see cref="IEnumerator{T}"/> pattern (including <see cref="IDisposable"/>).
System\Collections\Immutable\IStrongEnumerator_1.cs (2)
9/// An <see cref="IEnumerator{T}"/>-like interface that does not derive from <see cref="IDisposable"/>. 14/// <see cref="IDisposable"/> since it increases the size of the generated code in foreach.
System.CommandLine (1)
Invocation\ProcessTerminationHandler.cs (1)
20private readonly IDisposable? _sigIntRegistration, _sigTermRegistration;
System.ComponentModel.Composition (49)
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (1)
77return typeof(IDisposable).IsAssignableFrom(GetPartType());
System\ComponentModel\Composition\ExportServices.cs (3)
75if (export is IDisposable disposable) 94if (export is IDisposable disposable) 109if (export is IDisposable disposable)
System\ComponentModel\Composition\ExportServices.DisposableLazy.cs (6)
12private readonly IDisposable _disposable; 14public DisposableLazy(Func<T> valueFactory, TMetadataView metadataView, IDisposable disposable, LazyThreadSafetyMode mode) 22void IDisposable.Dispose() 30private readonly IDisposable _disposable; 32public DisposableLazy(Func<T> valueFactory, IDisposable disposable, LazyThreadSafetyMode mode) 40void IDisposable.Dispose()
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogExport.cs (1)
164void IDisposable.Dispose()
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (9)
42private readonly HashSet<IDisposable> _partsToDispose = new HashSet<IDisposable>(); 221HashSet<IDisposable>? partsToDispose = null; 267foreach (var part in partsToDispose) 454if (part is IDisposable disposablePart) 481IDisposable? disposableNewPart = newPart as IDisposable; 572if (catalogPart.Part is IDisposable diposablePart) 736if (newPart is IDisposable newDisposablePart)
System\ComponentModel\Composition\Hosting\CatalogExportProvider.FactoryExport.cs (1)
126if (_export is IDisposable disposable)
System\ComponentModel\Composition\Hosting\CompositionContainer.cs (11)
20private IDisposable? _disposableRootProvider; 23private IDisposable? _disposableLocalExportProvider; 25private IDisposable? _disposableAncestorExportProvider; 160_disposableLocalExportProvider = _localExportProvider as IDisposable; 174_disposableAncestorExportProvider = _ancestorExportProvider as IDisposable; 214_disposableRootProvider = _rootProvider as IDisposable; 313IDisposable? disposableAncestorExportProvider = null; 314IDisposable? disposableLocalExportProvider = null; 315IDisposable? disposableRootProvider = null; 399if (export is IDisposable dependency) 428if (export is IDisposable dependency)
System\ComponentModel\Composition\Hosting\CompositionLock.cs (3)
80public IDisposable LockComposition() 92public IDisposable LockStateForRead() 104public IDisposable LockStateForWrite()
System\ComponentModel\Composition\Hosting\ImportEngine.cs (1)
104IDisposable? compositionLockHolder = _lock.IsThreadSafe ? _lock.LockComposition() : null;
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (7)
20private Dictionary<ImportDefinition, List<IDisposable>>? _importedDisposableExports; 141List<IDisposable>? disposableExports = null; 144if (export is IDisposable disposableExport) 146disposableExports ??= new List<IDisposable>(); 152List<IDisposable>? oldDisposableExports = null; 174_importedDisposableExports ??= new Dictionary<ImportDefinition, List<IDisposable>>(); 183IEnumerable<IDisposable> dependencies = _importedDisposableExports.Values
System\ComponentModel\Composition\ReflectionModel\DisposableReflectionComposablePart.cs (2)
19if (instance is IDisposable disposable) 34void IDisposable.Dispose()
System\ComponentModel\Composition\ReflectionModel\ExportfactoryCreator.LifetimeContext.cs (4)
18IDisposable? disposable = null; 25disposable = exportProduct as IDisposable; 34disposable = exportProduct as IDisposable; 44disposable = part as IDisposable;
System.ComponentModel.Composition.Registration (1)
System\ComponentModel\Composition\Registration\PartBuilder.cs (1)
310if (underlyingType == typeof(IDisposable) || underlyingType == typeof(IPartImportsSatisfiedNotification))
System.ComponentModel.TypeConverter (4)
System\ComponentModel\Design\DesignerTransaction.cs (1)
75void IDisposable.Dispose()
System\ComponentModel\Design\Serialization\SerializationStore.cs (1)
45void IDisposable.Dispose() => Dispose(true);
System\ComponentModel\Design\ServiceContainer.cs (2)
156if (o is IDisposable) 158((IDisposable)o).Dispose();
System.Composition.Convention (1)
System\Composition\Convention\PartConventionBuilder.cs (1)
506if (iface == typeof(IDisposable))
System.Composition.Hosting (5)
System\Composition\Hosting\Core\LifetimeContext.cs (5)
38private List<IDisposable> _boundPartInstances = new List<IDisposable>(0); 106IEnumerable<IDisposable> toDispose = null; 118foreach (var instance in toDispose) 128public void AddBoundInstance(IDisposable instance)
System.Composition.TypedParts (3)
System\Composition\TypedParts\ActivationFeatures\DisposalFeature.cs (3)
21if (!typeof(IDisposable).GetTypeInfo().IsAssignableFrom(partType)) 26var inst = (IDisposable)activator(c, o);
System.Configuration.ConfigurationManager (8)
src\runtime\src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
44void IDisposable.Dispose()
System\Configuration\EmptyImpersonationContext.cs (2)
9private static IDisposable s_emptyImpersonationContext; 13internal static IDisposable GetStaticInstance()
System\Configuration\Internal\DelegatingConfigHost.cs (1)
232public virtual IDisposable Impersonate() => new DummyDisposable();
System\Configuration\Internal\IInternalConfigHost.cs (1)
104IDisposable Impersonate();
System\Configuration\Internal\InternalConfigHost.cs (1)
305public IDisposable Impersonate() => new DummyDisposable();
System\Configuration\Internal\WriteFileContext.cs (2)
38((IDisposable)_tempFiles).Dispose(); 89((IDisposable)_tempFiles).Dispose();
System.Data.Common (8)
System\Data\DataSet.cs (2)
2069IDisposable? restrictedScope = null; 2586IDisposable? restictedScope = null;
System\Data\DataTable.cs (2)
5736IDisposable? restrictedScope = null; 5980IDisposable? restrictedScope = null;
System\Data\ProviderBase\SchemaMapping.cs (2)
443IDisposable? disposable = (_readerDataValues![i] as IDisposable);
System\Data\TypeLimiter.cs (2)
79public static IDisposable? EnterRestrictedScope(DataSet dataSet) 91public static IDisposable? EnterRestrictedScope(DataTable dataTable)
System.Data.Odbc (5)
System\Data\Odbc\OdbcCommand.cs (4)
89IDisposable? reader = (IDisposable?)_weakDataReaderReference.Target; 92((IDisposable)reader).Dispose(); 827((IDisposable)localReader).Dispose();
System\Data\Odbc\OdbcConnection.cs (1)
370IDisposable? transaction = weak.Target as OdbcTransaction;
System.Data.OleDb (1)
OleDbCommand.cs (1)
708((IDisposable)dataReader).Dispose();
System.Diagnostics.DiagnosticSource (14)
System\Diagnostics\DiagnosticListener.cs (5)
64public virtual IDisposable Subscribe(IObserver<KeyValuePair<string, object?>> observer, Predicate<string>? isEnabled) 66IDisposable subscription; 108public virtual IDisposable Subscribe(IObserver<KeyValuePair<string, object?>> observer, Func<string, object?, object?, bool>? isEnabled) 122public virtual IDisposable Subscribe(IObserver<KeyValuePair<string, object?>> observer) 344public IDisposable Subscribe(IObserver<DiagnosticListener> observer)
System\Diagnostics\DiagnosticSourceActivity.cs (1)
143public virtual IDisposable Subscribe(IObserver<KeyValuePair<string, object?>> observer, Func<string, object?, object?, bool>? isEnabled,
System\Diagnostics\DiagnosticSourceEventSource.cs (1)
423private IDisposable? _listener;
System\Diagnostics\DsesFilterAndTransform.cs (7)
49public static IDisposable ParseFilterAndPayloadSpecs( 536var subscription = newListener.Subscribe(new CallbackObserver<KeyValuePair<string, object?>>(OnEventWritten), eventNameFilterPredicate); 898using (IDisposable? disposable = en as IDisposable) 999public Subscriptions(IDisposable subscription, Subscriptions? next) 1004public IDisposable Subscription; 1040private IDisposable? _diagnosticsListenersSubscription; // This is our subscription that listens for new Diagnostic source to appear.
System.Diagnostics.Process (1)
System\Diagnostics\ProcessStartInfo.cs (1)
108Debug.Assert(!(e is IDisposable), "Environment.GetEnvironmentVariables should not be IDisposable.");
System.Diagnostics.StackTrace (1)
System\Diagnostics\StackTraceSymbols.cs (1)
28void IDisposable.Dispose()
System.DirectoryServices.AccountManagement (14)
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (7)
420(_members as IDisposable)?.Dispose(); 421(_membersEnum as IDisposable)?.Dispose(); 1230IDisposable disposableMembers = _members as IDisposable; 1236IDisposable disposableMembersEnum = _membersEnum as IDisposable; 1247(enumerable as IDisposable)?.Dispose();
System\DirectoryServices\AccountManagement\AD\RangeRetriever.cs (1)
143void IDisposable.Dispose()
System\DirectoryServices\AccountManagement\Principal.cs (4)
587if ((this.UnderlyingObject != null) && (this.UnderlyingObject is IDisposable)) 590((IDisposable)this.UnderlyingObject).Dispose(); 593if ((this.UnderlyingSearchObject != null) && (this.UnderlyingSearchObject is IDisposable)) 596((IDisposable)this.UnderlyingSearchObject).Dispose();
System\DirectoryServices\AccountManagement\PrincipalSearcher.cs (2)
182if ((this.UnderlyingSearcher != null) && (this.UnderlyingSearcher is IDisposable)) 189((IDisposable)this.UnderlyingSearcher).Dispose();
System.Drawing.Common (1)
System\Drawing\FontConverter.cs (1)
413void IDisposable.Dispose()
System.IO.Packaging (3)
System\IO\Packaging\Package.cs (2)
478void IDisposable.Dispose() 524((IDisposable)this).Dispose();
System\IO\Packaging\XmlWrappingReader.cs (1)
139((IDisposable)_reader).Dispose();
System.Linq (7)
System\Linq\Cast.cs (1)
78(_enumerator as IDisposable)?.Dispose();
System\Linq\Cast.SpeedOpt.cs (3)
60(e as IDisposable)?.Dispose(); 81(e as IDisposable)?.Dispose(); 110(e as IDisposable)?.Dispose();
System\Linq\OfType.cs (1)
66(_enumerator as IDisposable)?.Dispose();
System\Linq\OfType.SpeedOpt.cs (1)
116(e as IDisposable)?.Dispose();
System\Linq\Select.SpeedOpt.cs (1)
95(e as IDisposable)?.Dispose();
System.Linq.Expressions (3)
System\Dynamic\Utils\DelegateHelpers.cs (3)
187static IDisposable? CreateForceAllowDynamicCodeScope() 199static extern IDisposable ForceAllowDynamicCode(AssemblyBuilder? _); 204using IDisposable? forceAllowDynamicCodeScope = CreateForceAllowDynamicCodeScope();
System.Linq.Parallel (3)
System\Linq\Parallel\Enumerables\EnumerableWrapperWeakToStrong.cs (2)
79void IDisposable.Dispose() 81if (_wrappedEnumerator is IDisposable disposable)
System\Linq\Parallel\Scheduling\QueryTaskGroupState.cs (1)
136(_rootTask as IDisposable)?.Dispose();
System.Net.Http (2)
src\runtime\src\libraries\Common\src\System\Net\Security\SslClientAuthenticationOptionsExtensions.cs (2)
69(e2 as IDisposable)?.Dispose(); 74(e1 as IDisposable)?.Dispose();
System.Net.HttpListener (3)
System\Net\HttpListener.cs (2)
303((IDisposable)this).Dispose(); 324void IDisposable.Dispose() => Dispose();
System\Net\HttpListenerResponse.cs (1)
266void IDisposable.Dispose() => Dispose();
System.Net.Quic (2)
System\Net\Quic\Internal\MsQuicSafeHandle.cs (2)
101private IDisposable? _disposable; 103public IDisposable Disposable
System.Net.Security (3)
src\runtime\src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
220((IDisposable)responseMessage).Dispose(); 263((IDisposable)responseMessage).Dispose();
System\Net\Security\NegotiateAuthentication.cs (1)
86if (_remoteIdentity is IDisposable disposableRemoteIdentity)
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.cs (1)
259private static void DisposeSafe(IDisposable? resource, AsyncMutex mutex)
System.Numerics.Tensors (5)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (1)
97void IDisposable.Dispose() { }
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (1)
585readonly void IDisposable.Dispose() { }
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
423void IDisposable.Dispose() { }
System\Numerics\Tensors\netcore\TensorDimensionSpan_1.cs (1)
103void IDisposable.Dispose() { }
System\Numerics\Tensors\netcore\TensorSpan_1.cs (1)
513readonly void IDisposable.Dispose() { }
System.ObjectModel (1)
System\Collections\ObjectModel\ObservableCollection.cs (1)
214protected IDisposable BlockReentrancy()
System.Private.CoreLib (18)
src\runtime\src\coreclr\nativeaot\Common\src\System\Collections\Concurrent\ConcurrentUnifierW.cs (1)
125Debug.Assert(!(value is IDisposable),
src\runtime\src\coreclr\nativeaot\Common\src\System\Collections\Concurrent\ConcurrentUnifierWKeyed.cs (1)
134Debug.Assert(!(value is IDisposable),
src\runtime\src\libraries\Common\src\System\Threading\ITimer.cs (1)
8/// Implementations of <see cref="Change"/>, <see cref="IDisposable.Dispose"/>, and <see cref="IAsyncDisposable.DisposeAsync"/>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\MemoryManager.cs (1)
62void IDisposable.Dispose()
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (1)
1164((IDisposable)_stream).Dispose();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextReader.cs (1)
350((IDisposable)_in).Dispose();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (1)
921((IDisposable)_out).Dispose();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IObservable.cs (1)
8IDisposable Subscribe(IObserver<T> observer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (1)
6024void IDisposable.Dispose() { }
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (1)
282void IDisposable.Dispose() { }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\AssemblyBuilder.cs (1)
104internal static IDisposable ForceAllowDynamicCode() => new ForceAllowDynamicCodeScope();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Span.cs (1)
275void IDisposable.Dispose() { }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\RunePosition.cs (2)
249void IDisposable.Dispose() { } 317void IDisposable.Dispose() { }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\SpanLineEnumerator.cs (1)
89void IDisposable.Dispose() { }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\SpanRuneEnumerator.cs (1)
61void IDisposable.Dispose() { }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilderRuneEnumerator.cs (1)
79readonly void IDisposable.Dispose()
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringRuneEnumerator.cs (1)
54void IDisposable.Dispose()
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
232(e as IDisposable)?.Dispose();
System.Private.Windows.Core (3)
System\DisposableBase.cs (1)
7/// Base class for implementing <see cref="IDisposable"/> with double disposal protection.
System\DisposeHelper.cs (2)
15internal static void NullAndDispose<T>(ref T? disposable) where T : class, IDisposable 17IDisposable? localDisposable = disposable;
System.Private.Xml (4)
System\Xml\Core\XmlEventCache.cs (1)
237((IDisposable)writer).Dispose();
System\Xml\Core\XmlWrappingWriter.cs (1)
210((IDisposable)writer).Dispose();
System\Xml\Dom\XmlNodeList.cs (1)
25void IDisposable.Dispose()
System\Xml\Xsl\Runtime\XmlRawWriterWrapper.cs (1)
170((IDisposable)_wrapped).Dispose();
System.Reflection.Metadata (34)
System\Reflection\Internal\MemoryBlocks\MemoryMappedFileBlock.cs (3)
16private IDisposable? _accessor; 20public DisposableData(IDisposable accessor, SafeBuffer safeBuffer, long offset) 63internal MemoryMappedFileBlock(IDisposable accessor, SafeBuffer safeBuffer, long offset, int size)
System\Reflection\Metadata\BlobBuilder.Enumerators.cs (2)
56void IDisposable.Dispose() { } 94void IDisposable.Dispose() { }
System\Reflection\Metadata\MetadataReader.WinMD.cs (1)
601/// Returns true if the redirected interface is <see cref="IDisposable"/>.
System\Reflection\Metadata\PortablePdb\HandleCollections.Debug.cs (8)
104void IDisposable.Dispose() 203void IDisposable.Dispose() 309void IDisposable.Dispose() 411void IDisposable.Dispose() 517void IDisposable.Dispose() 623void IDisposable.Dispose() 722void IDisposable.Dispose() 829void IDisposable.Dispose()
System\Reflection\Metadata\PortablePdb\ImportDefinitionCollection.cs (1)
145void IDisposable.Dispose()
System\Reflection\Metadata\PortablePdb\SequencePointCollection.cs (1)
208void IDisposable.Dispose()
System\Reflection\Metadata\TypeSystem\HandleCollections.TypeSystem.cs (18)
114void IDisposable.Dispose() 222void IDisposable.Dispose() 342void IDisposable.Dispose() 449void IDisposable.Dispose() 569void IDisposable.Dispose() 689void IDisposable.Dispose() 809void IDisposable.Dispose() 929void IDisposable.Dispose() 1029void IDisposable.Dispose() 1144void IDisposable.Dispose() 1242void IDisposable.Dispose() 1332void IDisposable.Dispose() 1422void IDisposable.Dispose() 1512void IDisposable.Dispose() 1602void IDisposable.Dispose() 1756void IDisposable.Dispose() 1846void IDisposable.Dispose() 1936void IDisposable.Dispose()
System.Reflection.MetadataLoadContext (5)
System\Reflection\MetadataLoadContext.Disposing.cs (5)
11private ConcurrentBag<IDisposable> _disposables = new ConcurrentBag<IDisposable>(); 24internal void RegisterForDisposal(IDisposable disposable) => _disposables.Add(disposable); 34ConcurrentBag<IDisposable> disposables = _disposables; 39foreach (IDisposable disposable in disposables)
System.Resources.Extensions (1)
System\Resources\Extensions\PreserializedResourceWriter.cs (1)
258if (record.Data is IDisposable disposable && record.CloseAfterWrite)
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
273[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IDisposable))]
System.Runtime.Caching (1)
System\Runtime\Caching\SRef.cs (1)
29where T : class, IDisposable
System.Security.Cryptography (17)
src\runtime\src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
220((IDisposable)responseMessage).Dispose(); 263((IDisposable)responseMessage).Dispose();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (1)
78where T : class, IDisposable
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (1)
574(mapped as IDisposable)?.Dispose();
System\Security\Cryptography\CryptoConfig.cs (1)
511(o as IDisposable)?.Dispose();
System\Security\Cryptography\HashAlgorithm.cs (1)
172(this as IDisposable).Dispose();
System\Security\Cryptography\Helpers.cs (2)
268internal static void DisposeAll(this IEnumerable<IDisposable> disposables) 270foreach (IDisposable disposable in disposables)
System\Security\Cryptography\SymmetricAlgorithm.cs (1)
193(this as IDisposable).Dispose();
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.PrivateKey.cs (1)
286where T : class, IDisposable
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (1)
178IDisposable? key = null;
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (3)
1894Func<TAlg, X509Certificate2> import) where TAlg : IDisposable 1915Func<TAlg, X509Certificate2> import) where TAlg : IDisposable 1934Func<TAlg, X509Certificate2> import) where TAlg : IDisposable
System\Security\Cryptography\X509Certificates\X509Certificate2Enumerator.cs (1)
50void IDisposable.Dispose()
System\Security\Cryptography\X509Certificates\X509ChainElementEnumerator.cs (1)
36void IDisposable.Dispose()
System\Security\Cryptography\X509Certificates\X509ExtensionEnumerator.cs (1)
40void IDisposable.Dispose()
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseKey.cs (1)
69internal static CoseKey FromUntrustedAlgorithmAndKey(CoseAlgorithm untrustedAlgorithm, IDisposable key)
System.Security.Cryptography.Pkcs (9)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
77private static T? GetPrivateKey<T>(X509Certificate2 certificate) where T : class, IDisposable
Internal\Cryptography\Pal\Windows\PkcsPalWindows.cs (1)
102private static T? GetPrivateKey<T>(X509Certificate2 certificate, bool silent, bool preferNCrypt) where T : class, IDisposable
Internal\Cryptography\PkcsPal.cs (2)
79public abstract T? GetPrivateKeyForSigning<T>(X509Certificate2 certificate, bool silent) where T : class, IDisposable; 84public abstract T? GetPrivateKeyForDecryption<T>(X509Certificate2 certificate, bool silent) where T : class, IDisposable;
System\Security\Cryptography\Pkcs\CmsSignature.cs (3)
148private static IDisposable? GetSigningKey<T>( 154where T : class, IDisposable 157IDisposable? signingKeyResources = null;
System\Security\Cryptography\Pkcs\CmsSigner.cs (2)
23private IDisposable? _privateKey; 219_privateKey = (IDisposable?)privateKey;
System.ServiceModel.NetFramingBase (7)
System\ServiceModel\Channels\ChannelBindingUtility.cs (1)
44IDisposable disposable = channelBinding;
System\ServiceModel\Channels\SessionConnectionReader.cs (2)
220private static IDisposable CreateProcessActionActivity() 274IDisposable activity = CreateProcessActionActivity();
System\ServiceModel\Security\SecurityUtilsEx.cs (4)
78else if (obj is IDisposable) 80((IDisposable)obj).Dispose(); 94else if (obj is IDisposable) 96((IDisposable)obj).Dispose();
System.ServiceModel.Primitives (38)
Internals\System\Runtime\AsyncLock.cs (1)
43public IDisposable TakeLock()
Internals\System\Runtime\InputQueue.cs (2)
583if (value is IDisposable) 585((IDisposable)value).Dispose();
Internals\System\Runtime\MruCache.cs (2)
135var item = cacheEntry.value as IDisposable;
Internals\System\Runtime\TaskHelpers.cs (2)
372public static IDisposable RunTaskContinuationsOnOurThreads() 399using (var scope = RunTaskContinuationsOnOurThreads())
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
161SecurityUtils.DisposeIfNecessary(_issuer as IDisposable);
System\IdentityModel\SecurityUtils.cs (2)
290DisposeIfNecessary(authorizationPolicies[i] as IDisposable); 314public static void DisposeIfNecessary(IDisposable obj)
System\ServiceModel\ChannelFactory.cs (1)
140void IDisposable.Dispose()
System\ServiceModel\Channels\ChannelBindingMessageProperty.cs (1)
117((IDisposable)_channelBinding).Dispose();
System\ServiceModel\Channels\DeliveryStrategy.cs (3)
13where ItemType : class, IDisposable 47where ItemType : class, IDisposable 152where ItemType : class, IDisposable
System\ServiceModel\Channels\InputQueueChannel.cs (1)
11abstract class InputQueueChannel<TDisposable> : ChannelBase where TDisposable : class, IDisposable
System\ServiceModel\Channels\Message.cs (1)
287void IDisposable.Dispose()
System\ServiceModel\Channels\MessageBuffer.cs (3)
16void IDisposable.Dispose() 108IDisposable disposable = _properties[i].Value as IDisposable;
System\ServiceModel\Channels\MessageProperties.cs (2)
1014IDisposable disposable = _value as IDisposable;
System\ServiceModel\Channels\RequestContext.cs (1)
24void IDisposable.Dispose()
System\ServiceModel\Channels\RequestContextBase.cs (1)
293void IDisposable.Dispose()
System\ServiceModel\Channels\ServiceChannel.cs (1)
1603void IDisposable.Dispose()
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
671void IDisposable.Dispose()
System\ServiceModel\ClientBase.cs (3)
467void IDisposable.Dispose() 1153void IDisposable.Dispose() 1155((IDisposable)_channel).Dispose();
System\ServiceModel\Description\ServiceReflector.cs (1)
999return ((!type.IsSealed()) || typeof(IDisposable).IsAssignableFrom(type));
System\ServiceModel\Dispatcher\MessageRpc.cs (4)
341IDisposable disposableParameter = ReturnParameter as IDisposable; 363IDisposable disposableParameter = null; 368disposableParameter = obj as IDisposable;
System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (1)
110IDisposable boundActivity = null;
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
172IDisposable boundActivity = null;
System\ServiceModel\Security\SecurityUtils.cs (2)
618else if (obj is IDisposable) 620((IDisposable)obj).Dispose();
System.ServiceModel.Syndication (1)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
773((IDisposable)extWriter).Dispose();
System.Speech (6)
Internal\SapiInterop\SapiProxy.cs (2)
200((IDisposable)_process).Dispose(); 201((IDisposable)_done).Dispose();
Internal\Synthesis\AudioBase.cs (2)
185((IDisposable)br).Dispose(); 276((IDisposable)bw).Dispose();
Internal\Synthesis\AudioDeviceOut.cs (1)
47((IDisposable)_evt).Dispose();
Recognition\SrgsGrammar\SrgsGrammarCompiler.cs (1)
84((IDisposable)srgsGrammar).Dispose();
System.Text.Json (2)
System\Text\Json\Serialization\WriteStack.cs (2)
313if (collectionEnumerator is IDisposable disposable) 365if (collectionEnumerator is IDisposable disposable)
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\CaptureCollection.cs (1)
312void IDisposable.Dispose() { }
System\Text\RegularExpressions\GroupCollection.cs (1)
448void IDisposable.Dispose() { }
System\Text\RegularExpressions\MatchCollection.cs (1)
400void IDisposable.Dispose() { }
System\Text\RegularExpressions\Regex.EnumerateMatches.cs (1)
177void IDisposable.Dispose() { }
System\Text\RegularExpressions\Regex.EnumerateSplits.cs (1)
282void IDisposable.Dispose() { }
System.Threading.Tasks.Dataflow (36)
Base\DataflowBlock.cs (15)
33public static IDisposable LinkTo<TOutput>( 53public static IDisposable LinkTo<TOutput>( 72public static IDisposable LinkTo<TOutput>( 185IDisposable ISourceBlock<T>.LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions) { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } 712IDisposable ISourceBlock<TOutput>.LinkTo(ITargetBlock<TOutput> target, DataflowLinkOptions linkOptions) { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } 1077IDisposable unlink = source.LinkTo(target, DataflowLinkOptions.UnlinkAfterOneAndPropagateCompletion); 1086IDisposable? disposableUnlink = Interlocked.CompareExchange<IDisposable?>(ref target._unlink, null, unlink); 1135internal IDisposable? _unlink; 1234IDisposable? unlink = _unlink; 1237IDisposable? disposableUnlink = Interlocked.CompareExchange(ref _unlink, null, unlink); 1556public IDisposable LinkTo(ITargetBlock<TOutput> target, DataflowLinkOptions linkOptions) 2015IDisposable unlink; 2219IDisposable IObservable<TOutput>.Subscribe(IObserver<TOutput> observer) 2365internal IDisposable? Unlinker;
Base\ISourceBlock.cs (1)
25IDisposable LinkTo(ITargetBlock<TOutput> target, DataflowLinkOptions linkOptions);
Blocks\BatchBlock.cs (1)
121public IDisposable LinkTo(ITargetBlock<T[]> target, DataflowLinkOptions linkOptions)
Blocks\BatchedJoinBlock.cs (2)
126public IDisposable LinkTo(ITargetBlock<Tuple<IList<T1>, IList<T2>>> target, DataflowLinkOptions linkOptions) 378public IDisposable LinkTo(ITargetBlock<Tuple<IList<T1>, IList<T2>, IList<T3>>> target, DataflowLinkOptions linkOptions)
Blocks\BroadcastBlock.cs (2)
148public IDisposable LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions) { return _source.LinkTo(target, linkOptions); } 1003internal IDisposable LinkTo(ITargetBlock<TOutput> target, DataflowLinkOptions linkOptions)
Blocks\BufferBlock.cs (1)
183public IDisposable LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions) { return _source.LinkTo(target, linkOptions); }
Blocks\JoinBlock.cs (2)
110public IDisposable LinkTo(ITargetBlock<Tuple<T1, T2>> target, DataflowLinkOptions linkOptions) 329public IDisposable LinkTo(ITargetBlock<Tuple<T1, T2, T3>> target, DataflowLinkOptions linkOptions)
Blocks\TransformBlock.cs (1)
341public IDisposable LinkTo(ITargetBlock<TOutput> target, DataflowLinkOptions linkOptions)
Blocks\TransformManyBlock.cs (1)
556public IDisposable LinkTo(ITargetBlock<TOutput> target, DataflowLinkOptions linkOptions) { return _source.LinkTo(target, linkOptions); }
Blocks\WriteOnceBlock.cs (1)
297public IDisposable LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions)
Internal\ActionOnDispose.cs (6)
22internal static readonly IDisposable Nop = new NopDisposable(); 31internal static IDisposable Create<T1, T2>(Action<T1, T2> action, T1 arg1, T2 arg2) 46internal static IDisposable Create<T1, T2, T3>(Action<T1, T2, T3> action, T1 arg1, T2 arg2, T3 arg3) 56void IDisposable.Dispose() { } 86void IDisposable.Dispose() 128void IDisposable.Dispose()
Internal\Common.cs (1)
405internal static IDisposable CreateUnlinker<TOutput>(object outgoingLock, TargetRegistry<TOutput> targetRegistry, ITargetBlock<TOutput> targetBlock)
Internal\SourceCore.cs (1)
124internal IDisposable LinkTo(ITargetBlock<TOutput> target, DataflowLinkOptions linkOptions)
Internal\TargetRegistry.cs (1)
353IDisposable ISourceBlock<T>.LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions) { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); }
System.Threading.Tasks.Parallel (4)
System\Threading\Tasks\Parallel.cs (4)
2734if (partitionState is IDisposable partitionToDispose) 2774IDisposable? d = null; 2777d = orderablePartitionerSource as IDisposable; 2781d = partitionerSource as IDisposable;
System.Transactions.Local (2)
System\Transactions\Oletx\OletxTransaction.cs (2)
201etwLog.MethodEnter(TraceSourceType.TraceSourceOleTx, this, $"{nameof(IDisposable)}.{nameof(Dispose)}"); 213etwLog.MethodExit(TraceSourceType.TraceSourceOleTx, this, $"{nameof(IDisposable)}.{nameof(Dispose)}");
System.Windows.Forms (18)
System\Resources\ResXResourceReader.cs (2)
180((IDisposable)this).Dispose(); 183void IDisposable.Dispose()
System\Windows\Forms\Application.ComponentThreadContext.cs (1)
334using (manager as IDisposable)
System\Windows\Forms\Components\ImageList\ImageList.cs (1)
490((IDisposable)original._image).Dispose();
System\Windows\Forms\Control.MetafileDCWrapper.cs (2)
50((IDisposable)this).Dispose(); 53void IDisposable.Dispose()
System\Windows\Forms\ControlMutationExtensions.cs (7)
14/// Each <c>SuspendPainting</c> overload returns an <see cref="IDisposable"/> scope that resumes 27/// <returns>An <see cref="IDisposable"/> scope that resumes painting when disposed.</returns> 28public static IDisposable SuspendPainting(this ISupportSuspendPainting target) 38/// <returns>An <see cref="IDisposable"/> scope that resumes layout and painting when disposed.</returns> 44public static IDisposable SuspendPainting( 56/// <returns>An <see cref="IDisposable"/> scope that resumes layout and painting when disposed.</returns> 61public static IDisposable SuspendPainting(
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
546if (_helpService is IDisposable disposable) 999if (_helpService is not null and IDisposable disposable)
System\Windows\Forms\ISupportSuspendPainting.cs (1)
16/// begin/end calls with deterministic <see cref="IDisposable"/> cleanup. Types deriving from
System\Windows\Forms\Layout\LayoutTransaction.cs (1)
71public static IDisposable CreateTransactionIf(bool condition, Control? controlToLayout, IArrangedElement elementCausingLayout, string? property)
System\Windows\Forms\SuspendPaintingScope.cs (1)
21/// The type is internal; callers obtain it as an <see cref="IDisposable"/> from
System.Windows.Forms.Design (12)
System\ComponentModel\Design\CollectionEditor.cs (1)
210else if (instance is IDisposable disposable)
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
263((IDisposable?)transaction)?.Dispose();
System\ComponentModel\Design\ReferenceService.cs (1)
190void IDisposable.Dispose()
System\ComponentModel\Design\SelectionService.cs (1)
269void IDisposable.Dispose()
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (1)
43private IDisposable? _serializationSession;
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (2)
24/// <see cref="SerializationStore"/> implements the <see cref="IDisposable"/> interface such 27/// The <see cref="IDisposable" /> pattern is provided for languages that support a "using" syntax like C# and VB .NET.
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (2)
24private IDisposable? _session; 407public IDisposable CreateSession()
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1312void IDisposable.Dispose()
System\Windows\Forms\Design\ListAdapter.cs (1)
57void IDisposable.Dispose() { }
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
545((IDisposable?)trans)?.Dispose();
System.Windows.Forms.Primitives (8)
System\Windows\Forms\Automation\UiaTextRange.cs (1)
120Debug.Assert(!typeof(UiaTextRange).IsAssignableTo(typeof(IDisposable)));
System\Windows\Forms\Internals\ScaleHelper.cs (1)
553public static IDisposable EnterDpiAwarenessScope(
System\Windows\Forms\ObjectCache.cs (2)
56(temp as IDisposable)?.Dispose(); 70(_itemsCache[i] as IDisposable)?.Dispose();
System\Windows\Forms\RefCountedCache.CacheEntry.cs (4)
70/// <see cref="IDisposable" />. Override to provide custom cleanup logic. 77var disposable = Object as IDisposable; 79disposable = Data as IDisposable;
System.Xaml (11)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
162((IDisposable)_reader).Dispose();
System\Xaml\XamlBackgroundReader.cs (4)
335((IDisposable)_dataReceivedEvent).Dispose(); 336((IDisposable)_internalReader).Dispose(); 337((IDisposable)_providerFullEvent).Dispose(); 338((IDisposable)_writer).Dispose();
System\Xaml\XamlReader.cs (2)
52void IDisposable.Dispose() 67((IDisposable)this).Dispose();
System\Xaml\XamlWriter.cs (2)
69void IDisposable.Dispose() 82((IDisposable)this).Dispose();
System\Xaml\XamlXmlWriter.cs (2)
128((IDisposable)meWriter).Dispose(); 133((IDisposable)output).Dispose();
TestingAppHost1.AppHost (2)
Program.cs (1)
10using var entryPointProbe = TestingAppHostEntryPointProbe.Track(args);
TestingAppHostEntryPointProbe.cs (1)
25public static IDisposable Track(string[] args)
UIAutomationClient (1)
System\Windows\Automation\CacheRequest.cs (1)
217public IDisposable Activate()
vbc (1)
src\roslyn\src\Compilers\Shared\BuildClient.cs (1)
317IDisposable? npcs = null;
VBCSCompiler (4)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilationCache.cs (3)
159using var entryMutex = TryAcquireEntryMutex(dllName, hashKey, createIfMissing: false); 305using var entryMutex = TryAcquireEntryMutex(dllName, hashKey); 376private IDisposable? TryAcquireEntryMutex(string dllName, string hashKey, bool createIfMissing = true)
src\roslyn\src\Compilers\Shared\BuildClient.cs (1)
317IDisposable? npcs = null;
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
845IDisposable disposableChild = Child as IDisposable;