Skip to content

Interface ITransportRouteMapper

Namespace: Cephalon.AspNetCore.Hosting
Assembly: Cephalon.AspNetCore.dll

Maps the routes associated with one selected transport onto an ASP.NET Core host.

public interface ITransportRouteMapper

Gets the transport identifier that this mapper handles.

string TransportId { get; }

string

Maps the transport’s routes onto the supplied application.

void MapRoutes(WebApplication app, IRuntime runtime)

app WebApplication

The ASP.NET Core application to extend.

runtime IRuntime

The runtime whose manifest and services back the mapped routes.