ScopedActivator Class

Represents an activator that uses a factory and a scope to activate and cache an instance.
Inheritance Hierarchy
SystemObject
  InjectMe.ActivationScopedActivator

Namespace: InjectMe.Activation
Assembly: InjectMe (in InjectMe.dll) Version: 0.9.17.21 (0.9.17.21)
Syntax
public class ScopedActivator : IActivator

The ScopedActivator type exposes the following members.

Constructors
  NameDescription
Public methodScopedActivator
Initializes a new instance of the ScopedActivator class.
Top
Methods
  NameDescription
Public methodActivateService
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 a hash function for a particular type.
(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
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
Properties
  NameDescription
Public propertyFactory
Gets the IFactory responsible for the construction of the service.
Public propertyIdentity
Gets the ServiceIdentity of the service to construct.
Public propertyScope
Gets the IServiceScope of the constructed service.
Top
Remarks
The scoped activator is used when InjectMe constructs a service. It contains an IFactory, which is responsible for constructing the service, and an IServiceScope which is responsible for caching the service. InjectMe comes with a ConstructionFactory which will create the service by invoking the most relevant constructor, and a DelegateFactory which leaves the construction to a delegate method.
See Also