Class InjectionLoader<T>
Loads and instantiates instances of the injectable types.
Namespace: QFSW.BA
Assembly: QFSW.BA.dll
Syntax
public class InjectionLoader<T>Type Parameters
| Name | Description | 
|---|---|
| T | The base type for the instances that will be injected. | 
Methods
GetInjectableTypes(Boolean)
Retrieves all of the injectable types.
Declaration
public Type[] GetInjectableTypes(bool forceReload = false)Parameters
| Type | Name | Description | 
|---|---|---|
| Boolean | forceReload | Forces a reload of the types instead of using the cache. | 
Returns
| Type | Description | 
|---|---|
| Type[] | The injectable types. | 
GetInjectedInstances(Boolean)
Creates instances for all of the injectable types available.
Declaration
public IEnumerable<T> GetInjectedInstances(bool forceReload = false)Parameters
| Type | Name | Description | 
|---|---|---|
| Boolean | forceReload | Forces a reload of the types instead of using the cache. | 
Returns
| Type | Description | 
|---|---|
| IEnumerable<T> | The injectable instances. | 
GetInjectedInstances(IEnumerable<Type>)
Creates instances from a custom sequence of injectable types.
Declaration
public IEnumerable<T> GetInjectedInstances(IEnumerable<Type> injectableTypes)Parameters
| Type | Name | Description | 
|---|---|---|
| IEnumerable<Type> | injectableTypes | The types to create instances for. | 
Returns
| Type | Description | 
|---|---|
| IEnumerable<T> | The injectable instances. |