Kpok patagon framework helper class for DI configuration.
Initializes a new instance of KpokPatagonBuilder.
public Void KpokPatagonBuilder(services, configuration)
Name | Type | Summary |
---|---|---|
services | IServiceCollection | The collection of service descriptors |
configuration | IConfiguration | Application configuration. |
Type | Summary |
---|---|
ArgumentNullException | Thown when services is null. -or- When configuration is null. |
A collection of framework assemblies.
public Assembly[] Assemblies { get; }
Application configuration.
public IConfiguration Configuration { get; }
The collection of service descriptors.
public IServiceCollection Services { get; }
Creates an instance of
public T CreateServiceInstance<T>(provider, typeName)
An instace of
Name | Type | Summary |
---|---|---|
provider | IServiceProvider | The service provider used to resolve dependencies. |
typeName | String | The Fullname of Name of the object to create. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when provider is null. |
ArgumentException | Thrown when typeName is null or empty. |
Gets an array of Types that are assinable to desiredType.
public Type[] GetTypesAssignableFrom(desiredType)
Name | Type | Summary |
---|---|---|
desiredType | Type |
Gets an array of Types that are assinable to
public Type[] GetTypesAssignableFrom<T>()