Interface IApplicationInjection
Denotes entities that implement custom application injection code, e.g. a data document may implement this interface to set its internal module dependencies by code (vs. using [Inject] attributes).
Namespace: Azos.Apps.Injection
Assembly: Azos.dll
Syntax
public interface IApplicationInjection
Methods
InjectApplication(IApplicationDependencyInjector)
Sets application context on an implementing entity. Return true to signify that app context has been set and no further processing of attributes shall be done.
Declaration
bool InjectApplication(IApplicationDependencyInjector injector)
Parameters
Type | Name | Description |
---|---|---|
IApplicationDependencyInjector | injector | Injector instance performing the injection, use injector.App to get the injected application context |
Returns
Type | Description |
---|---|
System.Boolean | True if the injection is completed |