Click or drag to resize

ProvidedInstanceActivator Class

Provides a pre-constructed instance.
Inheritance Hierarchy

Namespace:  Autofac.Core.Activators.ProvidedInstance
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
public class ProvidedInstanceActivator : InstanceActivator, 
	IInstanceActivator, IDisposable

The ProvidedInstanceActivator type exposes the following members.

Public methodProvidedInstanceActivator
Initializes a new instance of the ProvidedInstanceActivator class.
Public propertyDisposeInstance
Gets or sets a value indicating whether the activator disposes the instance that it holds. Necessary because otherwise instances that are never resolved will never be disposed.
Protected propertyIsDisposed
Gets a value indicating whether the current instance has been disposed.
(Inherited from Disposable.)
Public propertyLimitType
Gets the most specific type that the component instances are known to be castable to.
(Inherited from InstanceActivator.)
Protected methodCheckNotDisposed
Asserts that the activator has not been disposed.
(Inherited from InstanceActivator.)
Public methodConfigurePipeline
Allows an implementation to add middleware to a registration's resolve pipeline.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Disposable.)
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
(Overrides DisposableDispose(Boolean).)
Public methodDisposeAsync (Inherited from Disposable.)
Protected methodDisposeAsync(Boolean)
Releases unmanaged and - optionally - managed resources, asynchronously.
(Inherited from Disposable.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Gets a string representation of the activator.
(Inherited from InstanceActivator.)
See Also