Interface IApplicationDependencyInjector
Designates entities that process [Inject]-decorated fields and IApplicationInjection on a target objects passed into InjectInto(target) method. Access application default injector using IApplication.DependencyInjector property
Inherited Members
Namespace: Azos.Apps.Injection
Assembly: Azos.dll
Syntax
public interface IApplicationDependencyInjector : IApplicationComponent
Methods
GetApplicationRoots()
Enumerates app injectable roots (root application chassis objects). This method is usually used by [Inject]-derived attributes for defaults
Declaration
IEnumerable<object> GetApplicationRoots()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Object> |
InjectInto(Object)
Injects application context along with its derivatives (e.g. modules, logs etc.) as specified by the field-level attribute decorations on a target instance
Declaration
void InjectInto(object target)
Parameters
Type | Name | Description |
---|---|---|
System.Object | target |
Remarks
Since this method is declared on IApplicationComponent, it injects the application context of the self