Search Results for

    Show / Hide Table of Contents

    Class ContainerInterceptor

    Represents the base class for an interceptor registered in the Container.

    Inheritance
    object
    ContainerInterceptor
    ContainerInterceptor<T>
    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 is instantiated by the container.

    Declaration
    public abstract void OnInstanced(object instance)
    Parameters
    Type Name Description
    object instance

    The generated instance.

    OnRegistered(Type)

    Called when a type assignable from is registered in the container.

    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 is unregistered from the container.

    Declaration
    public abstract void OnUnregistered(Type type)
    Parameters
    Type Name Description
    Type type

    The type that was unregistered.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX