Class IDisposableInerceptor
Inherited Members
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
OnRegistered(Type)
Called when a type assignable from
Declaration
public override void OnRegistered(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type that is registered. |
Overrides
OnUnregistered(Type)
Called when a type assignable from
Declaration
public override void OnUnregistered(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type that was unregistered. |