Search Results for

    Show / Hide Table of Contents

    Class ContainerInterceptor<T>

    Represents the base class for a generic type interceptor registered in the Container.

    Inheritance
    object
    ContainerInterceptor
    ContainerInterceptor<T>
    IDisposableInerceptor
    ServiceInterceptor
    Inherited Members
    ContainerInterceptor.Type
    ContainerInterceptor.Container
    ContainerInterceptor.OnRegistered(Type)
    ContainerInterceptor.OnUnregistered(Type)
    Namespace: Evergine.Framework
    Assembly: Evergine.Framework.dll
    Syntax
    public abstract class ContainerInterceptor<T> : ContainerInterceptor
    Type Parameters
    Name Description
    T

    The generic type of the interceptor.

    Constructors

    ContainerInterceptor()

    Initializes a new instance of the ContainerInterceptor<T> class. It will receive events for the type T or any of its base types registered in the container.

    Declaration
    public ContainerInterceptor()

    Methods

    OnInstanced(object)

    Called every time an instance of a type assignable from is instantiated by the container.

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

    The generated instance.

    Overrides
    ContainerInterceptor.OnInstanced(object)

    OnInstanced(T)

    Called every time an instance of a type assignable from T is instantiated by the container.

    Declaration
    protected abstract void OnInstanced(T instance)
    Parameters
    Type Name Description
    T instance

    The generated instance.

    Extension Methods

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