Interface IKestrelServerMiddlewareProvider
Provides the implementation for a Kestrel middleware.
Since Kestrel is bootstraped by ASP.NET Core, it uses it's own dependency injection container (namely Microsoft.Extensions.DependencyInjection.IServiceCollection), instead of Snowflake's native Snowflake.Services.IServiceContainer. Implementing this interface is akin to implementing IComposable, but specifically to extend the integrated Kestrel web server.
Namespace: Snowflake.Remoting.Kestrel
Assembly: Snowflake.Framework.Remoting.dll
Syntax
public interface IKestrelServerMiddlewareProvider
Methods
Configure(IApplicationBuilder)
Use this method to configure the HTTP request pipeline in Kestrel.
Declaration
void Configure(IApplicationBuilder app)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Builder.IApplicationBuilder | app | The Microsoft.AspNetCore.Builder.IApplicationBuilder used by the Kestrel server. |
ConfigureServices(IServiceCollection)
Use this method to add services to the container that is used by the Kestrel server.
Declaration
void ConfigureServices(IServiceCollection services)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The Microsoft.Extensions.DependencyInjection.IServiceCollection used by the Kestrel server. |