Click or drag to resize

IDisposer Interface

Provided on an object that will dispose of other objects when it is itself disposed.

Namespace:  Autofac.Core
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public interface IDisposer : IDisposable, 
	IAsyncDisposable

The IDisposer type exposes the following members.

Methods
  NameDescription
Public methodAddInstanceForAsyncDisposal
Adds an object to the disposer, where that object implements IAsyncDisposable. When the disposer is disposed, so will the object be. You should most likely implement IDisposable as well, and call AddInstanceForDisposal(IDisposable) instead of this method.
Public methodAddInstanceForDisposal
Adds an object to the disposer. When the disposer is disposed, so will the object be.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodDisposeAsync (Inherited from IAsyncDisposable.)
Top
See Also