• Home
  • Blog
  • Docs
  • GitHub
Show / Hide Table of Contents

Interface IKestrelWebServerService

Provides middleware access to the Kestrel remoting server.

Namespace: Snowflake.Remoting.Kestrel
Assembly: Snowflake.Framework.Remoting.dll
Syntax
public interface IKestrelWebServerService

Methods

AddService<T>(T)

Registers a Kestrel middleware. Kestrel middleware can only be registered within Compose(IModule, IServiceRepository). Once assembly composition finishes, middleware can no longer be added.

Declaration
void AddService<T>(T kestrelServerMiddleware)

    where T : IKestrelServerMiddlewareProvider
Parameters
Type Name Description
T kestrelServerMiddleware

The middleware to register to the Kestrel server.

Type Parameters
Name Description
T

The type of the class that implements the middleware.

Built with ❤️ by @chyyran. Text content licensed under CC-BY-SA 4.0.