Adds strongly typed IOptions<T> binding, with Fluent Validation and shared appsettings for the Web client app

This commit is contained in:
BinaryAlley committed 2024-09-07 17:11:53 +03:00
1 parent cf7981aad4
commit d8c64920dc
6 files changed
+153 -1

No files matched your search

@@ -35,7 +35,7 @@ public class ValidationBehavior<TRequest, TResponse> : IPipelineBehavior<TReques
/// </summary>
/// <param name="request">Incoming request.</param>
/// <param name="next">Awaitable delegate for the next action in the pipeline. Eventually this delegate represents the handler.</param>
/// <param name="cancellationToken">Cancellation token.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
public async ValueTask<TResponse> Handle(TRequest request, CancellationToken cancellationToken, MessageHandlerDelegate<TRequest, TResponse> next)
{
// if there is no validator, just invoke the handler