Table of Contents

Interface IReqBinder<T>

Namespace
Biwen.QuickApi.Abstractions
Assembly
Biwen.QuickApi.dll

IReqBinder绑定器约定接口,当前同时支持QuickApi和MinimalApi 请注意IReqBinder,会导致Swagger无法生成正确的Schema,请务必重写HandlerBuilder(RouteHandlerBuilder)

public interface IReqBinder<T> where T : class, new()

Type Parameters

T

Methods

BindAsync(HttpContext, ParameterInfo)

public static abstract ValueTask<T> BindAsync(HttpContext context, ParameterInfo parameter = null)

Parameters

context HttpContext
parameter ParameterInfo

Returns

ValueTask<T>