Class CoreExtensions
Inheritance
System.Object
CoreExtensions
Namespace:InfinniPlatform.AspNetCore
Assembly:InfinniPlatform.Core.dll
Syntax
public static class CoreExtensions : object
Methods
| Improve this Doc View SourceAddContainerModule(IServiceCollection, IContainerModule)
Adds an application IoC-container module.
Declaration
public static IServiceCollection AddContainerModule(this IServiceCollection services, IContainerModule containerModule)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Specifies the contract for a collection of service descriptors. |
IContainerModule | containerModule | The application IoC-container module. |
Returns
Type | Description |
---|---|
IServiceCollection |
BuildProvider(IServiceCollection)
Builds
Declaration
public static IServiceProvider BuildProvider(this IServiceCollection services)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Specifies the contract for a collection of service descriptors. |
Returns
Type | Description |
---|---|
IServiceProvider |
BuildProvider(IServiceCollection, IConfigurationRoot)
Builds
Declaration
public static IServiceProvider BuildProvider(this IServiceCollection services, IConfigurationRoot configuration)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Specifies the contract for a collection of service descriptors. |
IConfigurationRoot | configuration | The application configuration. |
Returns
Type | Description |
---|---|
IServiceProvider |
BuildProvider(IServiceCollection, AppOptions)
Builds
Declaration
public static IServiceProvider BuildProvider(this IServiceCollection services, AppOptions options)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Specifies the contract for a collection of service descriptors. |
AppOptions | options | The general application settings. |
Returns
Type | Description |
---|---|
IServiceProvider |
UseAppLayers(IApplicationBuilder, IContainerResolver)
Registers application layers defined by user in IoC.
Declaration
public static void UseAppLayers(this IApplicationBuilder app, IContainerResolver resolver)
Parameters
Type | Name | Description |
---|---|---|
IApplicationBuilder | app | The application builder. |
IContainerResolver | resolver | The IoC container resolver. |
UseDefaultAppLayers(IApplicationBuilder, IContainerResolver)
Registers default application layers.
Declaration
public static void UseDefaultAppLayers(this IApplicationBuilder app, IContainerResolver resolver)
Parameters
Type | Name | Description |
---|---|---|
IApplicationBuilder | app | The application builder. |
IContainerResolver | resolver | The IoC container resolver. |