Class TypeInjector
Framework-internal type which performs dependency injection on the specified type. Business app developers - do not use. Advanced: you can derive from this type in case of custom dependency injection implementation (e.g. use precompiled lambdas instead of reflection)
Inheritance
System.Object
TypeInjector
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Apps.Injection
Assembly: Azos.dll
Syntax
public class TypeInjector
Constructors
TypeInjector(Type)
Declaration
public TypeInjector(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type |
Fields
T
Declaration
public readonly Type T
Field Value
Type | Description |
---|---|
System.Type |
Methods
Build()
Override to perform custom injection, may use expression tree/code gen for speed
Declaration
public virtual ((FieldInfo, InjectAttribute)[], InjectorAction)Build()
Returns
Type | Description |
---|---|
System.ValueTuple<System.ValueTuple<System.Reflection.FieldInfo, InjectAttribute>[], InjectorAction> |
DefaultApply(Object, IApplicationDependencyInjector)
Declaration
public void DefaultApply(object target, IApplicationDependencyInjector appInjector)
Parameters
Type | Name | Description |
---|---|---|
System.Object | target | |
IApplicationDependencyInjector | appInjector |
Inject(Object, IApplicationDependencyInjector)
Declaration
public void Inject(object target, IApplicationDependencyInjector appInjector)
Parameters
Type | Name | Description |
---|---|---|
System.Object | target | |
IApplicationDependencyInjector | appInjector |