FlowEndpointModule
PackageAxial.Hosting.AspNetCore
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| flowEndpointWithOptions | flowEndpointWithOptions options getAppEnvironment mapApplicationError workflow | Lowers an endpoint Flow to the native ASP.NET Core handler expected by minimal-API routing. |
| flowEndpoint | flowEndpoint getAppEnvironment mapApplicationError workflow | Runs a request with Microsoft logging in category Axial.Endpoint. |
Operations
kind:member
flowEndpointWithOptions options getAppEnvironment mapApplicationError workflow
MemberLowers an endpoint Flow to the native ASP.NET Core handler expected by minimal-API routing.
Parameters
| Name | Type | Description |
|---|---|---|
| options | EndpointOptions | Custom log-sink callbacks run once per request. Default caches the Axial.Endpoint Microsoft logging adapter per factory. |
| getAppEnvironment | HttpContext -> 'app | Constructs or resolves the explicit application environment for the current request. |
| mapApplicationError | 'error -> IResult | Maps one expected application failure to an ASP.NET result. |
| workflow | Flow<HttpEndpointEnv<'app>, EndpointError<'error>, IResult> | The complete endpoint Flow to execute. |
Returns
Func<HttpContext, Task<IResult>>
Verification Examples
let endpoint = flowEndpoint AppEnv.fromContext ApiError.toResponse
app.MapPost("/signups", endpoint signupEndpoint)kind:member
Runs a request with Microsoft logging in category Axial.Endpoint. Inner scoped sinks override it.
Parameters
| Name | Type | Description |
|---|---|---|
| getAppEnvironment | HttpContext -> 'a | |
| mapApplicationError | 'b -> IResult | |
| workflow | Flow<HttpEndpointEnv<'a>, EndpointError<'b>, IResult> |
Returns
Func<HttpContext, Task<IResult>>

