You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experimenting with FastEndpoints and I have an endpoint that finishes with the following call in the HandleAsync method:
Endpoint class: internal class LoginEndpoint : Endpoint<LoginRequest, Result<LoginResponse>>
Handler method:
public override async Task HandleAsync(LoginRequest req, CancellationToken ct)
{
var loginResponse = ...;
...//login response is of the Result<LoginResponse> type
await SendResultAsync(loginResponse.ToMinimalApiResult());
}
Configure method:
public override void Configure()
{
Verbs(Http.POST);
Routes("/login");
AllowAnonymous();
PostProcessor<LoginPostProcessor>();
}
I'm experimenting with FastEndpoints and I have an endpoint that finishes with the following call in the HandleAsync method:
Endpoint class:
internal class LoginEndpoint : Endpoint<LoginRequest, Result<LoginResponse>>
Handler method:
Configure method:
And the LoginPostProcessor:
But the context.Response is null.
When I finish my Handler method just by this call:
await SendAsync(loginResponse, cancellation: ct);
then everything works....
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: