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: 4.9.1+831973f4d02fbc619921dfaa8ac0c536f60ae7a3
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.)
Public methodActivateInstance
Activate an instance in the provided context.
Protected methodCheckNotDisposed (Inherited from InstanceActivator.)
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 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