Search Results for

    Show / Hide Table of Contents

    Class IDisposableInerceptor

    Manages Service instances registered in the Container.

    Inheritance
    object
    ContainerInterceptor
    ContainerInterceptor<IDisposable>
    IDisposableInerceptor
    Inherited Members
    ContainerInterceptor<IDisposable>.OnInstanced(object)
    ContainerInterceptor.Type
    ContainerInterceptor.Container
    Namespace: Evergine.Framework.Services
    Assembly: Evergine.Framework.dll
    Syntax
    public class IDisposableInerceptor : ContainerInterceptor<IDisposable>
    Remarks

    Registered Service instances that inherit from UpdatableService will be updated automatically by this instance. This update order depends on the order in which Service instances were registered (first registered, first to be updated, and so on).

    Constructors

    IDisposableInerceptor()

    Initializes a new instance of the IDisposableInerceptor class.

    Declaration
    public IDisposableInerceptor()

    Properties

    ActiveServicesCount

    Gets the number of active services.

    Declaration
    public int ActiveServicesCount { get; }
    Property Value
    Type Description
    int

    Methods

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()

    OnInstanced(IDisposable)

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

    Declaration
    protected override void OnInstanced(IDisposable instance)
    Parameters
    Type Name Description
    IDisposable instance

    The generated instance.

    Overrides
    ContainerInterceptor<IDisposable>.OnInstanced(IDisposable)

    OnRegistered(Type)

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

    Declaration
    public override void OnRegistered(Type type)
    Parameters
    Type Name Description
    Type type

    The type that is registered.

    Overrides
    ContainerInterceptor.OnRegistered(Type)

    OnUnregistered(Type)

    Called when a type assignable from is unregistered from the container.

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

    The type that was unregistered.

    Overrides
    ContainerInterceptor.OnUnregistered(Type)

    Extension Methods

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