Class ContainerInterceptor
Represents the base class for an interceptor registered in the Container.
Namespace: Evergine.Framework
Assembly: Evergine.Framework.dll
Syntax
public abstract class ContainerInterceptor
Constructors
ContainerInterceptor()
Initializes a new instance of the ContainerInterceptor class. It will receive events for every type registered in the container.
Declaration
public ContainerInterceptor()
ContainerInterceptor(Type)
Initializes a new instance of the ContainerInterceptor class. It will receive events for the specified type or any of its base types registered in the container.
Declaration
public ContainerInterceptor(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type or base type to be intercepted. |
Properties
Container
Gets the container in which the interceptor is registered.
Declaration
public Container Container { get; }
Property Value
Type | Description |
---|---|
Container |
Type
Gets the type or the base type to be intercepted.
Declaration
public Type Type { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
OnInstanced(object)
Called every time an instance of a type assignable from
Declaration
public abstract void OnInstanced(object instance)
Parameters
Type | Name | Description |
---|---|---|
object | instance | The generated instance. |
OnRegistered(Type)
Called when a type assignable from
Declaration
public abstract void OnRegistered(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type that is registered. |
OnUnregistered(Type)
Called when a type assignable from
Declaration
public abstract void OnUnregistered(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type that was unregistered. |