Search Results for

    Show / Hide Table of Contents

    Class EndpointWithMapper<TRequest, TMapper>

    use this base class for defining endpoints that only use a request dto and don't use a response dto but uses a request mapper.

    Inheritance
    object
    BaseEndpoint
    Endpoint<TRequest, object>
    EndpointWithMapper<TRequest, TMapper>
    Ep.Req<TRequest>.NoRes.Map<TMapper>
    Implements
    IEndpoint
    IEventBus
    IServiceResolverBase
    IHasMapper<TMapper>
    Inherited Members
    Endpoint<TRequest, object>.HandleAsync(TRequest, CancellationToken)
    Endpoint<TRequest, object>.ExecuteAsync(TRequest, CancellationToken)
    Endpoint<TRequest, object>.TryResolve<TService>()
    Endpoint<TRequest, object>.TryResolve(Type)
    Endpoint<TRequest, object>.Resolve<TService>()
    Endpoint<TRequest, object>.Resolve(Type)
    Endpoint<TRequest, object>.CreateScope()
    Endpoint<TRequest, object>.TryResolve<TService>(string)
    Endpoint<TRequest, object>.TryResolve(Type, string)
    Endpoint<TRequest, object>.Resolve<TService>(string)
    Endpoint<TRequest, object>.Resolve(Type, string)
    Endpoint<TRequest, object>.Route<T>(string, bool)
    Endpoint<TRequest, object>.Query<T>(string, bool)
    Endpoint<TRequest, object>.FormFileSectionsAsync(CancellationToken)
    Endpoint<TRequest, object>.FormMultipartSectionsAsync(CancellationToken)
    Endpoint<TRequest, object>.PublishAsync<TEvent>(TEvent, Mode, CancellationToken)
    Endpoint<TRequest, object>.CreateTokenWith<TService>(string, Action<UserPrivileges>, TRequest)
    Endpoint<TRequest, object>.ProcessorState<TState>()
    Endpoint<TRequest, object>.OnBeforeValidate(TRequest)
    Endpoint<TRequest, object>.OnBeforeValidateAsync(TRequest, CancellationToken)
    Endpoint<TRequest, object>.OnAfterValidate(TRequest)
    Endpoint<TRequest, object>.OnAfterValidateAsync(TRequest, CancellationToken)
    Endpoint<TRequest, object>.OnBeforeHandle(TRequest)
    Endpoint<TRequest, object>.OnBeforeHandleAsync(TRequest, CancellationToken)
    Endpoint<TRequest, object>.OnAfterHandle(TRequest, object)
    Endpoint<TRequest, object>.OnAfterHandleAsync(TRequest, object, CancellationToken)
    Endpoint<TRequest, object>.OnValidationFailed()
    Endpoint<TRequest, object>.OnValidationFailedAsync(CancellationToken)
    Endpoint<TRequest, object>.User
    Endpoint<TRequest, object>.Response
    Endpoint<TRequest, object>.Config
    Endpoint<TRequest, object>.Env
    Endpoint<TRequest, object>.Logger
    Endpoint<TRequest, object>.BaseURL
    Endpoint<TRequest, object>.HttpMethod
    Endpoint<TRequest, object>.Form
    Endpoint<TRequest, object>.Files
    Endpoint<TRequest, object>.ResponseStarted
    Endpoint<TRequest, object>.SendAsync(object, int, CancellationToken)
    Endpoint<TRequest, object>.SendResultAsync(IResult)
    Endpoint<TRequest, object>.SendInterceptedAsync(object, int, CancellationToken)
    Endpoint<TRequest, object>.SendCreatedAtAsync<TEndpoint>(object, object, Http?, int?, bool, CancellationToken)
    Endpoint<TRequest, object>.SendCreatedAtAsync(string, object, object, bool, CancellationToken)
    Endpoint<TRequest, object>.SendAcceptedAtAsync<TEndpoint>(object, object, Http?, int?, bool, CancellationToken)
    Endpoint<TRequest, object>.SendAcceptedAtAsync(string, object, object, bool, CancellationToken)
    Endpoint<TRequest, object>.SendStringAsync(string, int, string, CancellationToken)
    Endpoint<TRequest, object>.SendOkAsync(object, CancellationToken)
    Endpoint<TRequest, object>.SendOkAsync(CancellationToken)
    Endpoint<TRequest, object>.SendErrorsAsync(int, CancellationToken)
    Endpoint<TRequest, object>.SendNoContentAsync(CancellationToken)
    Endpoint<TRequest, object>.SendNotFoundAsync(CancellationToken)
    Endpoint<TRequest, object>.SendUnauthorizedAsync(CancellationToken)
    Endpoint<TRequest, object>.SendForbiddenAsync(CancellationToken)
    Endpoint<TRequest, object>.SendRedirectAsync(string, bool, bool)
    Endpoint<TRequest, object>.SendHeadersAsync(Action<IHeaderDictionary>, int, CancellationToken)
    Endpoint<TRequest, object>.SendBytesAsync(byte[], string, string, DateTimeOffset?, bool, CancellationToken)
    Endpoint<TRequest, object>.SendFileAsync(FileInfo, string, DateTimeOffset?, bool, CancellationToken)
    Endpoint<TRequest, object>.SendStreamAsync(Stream, string, long?, string, DateTimeOffset?, bool, CancellationToken)
    Endpoint<TRequest, object>.SendEventStreamAsync<T>(string, IAsyncEnumerable<T>, CancellationToken)
    Endpoint<TRequest, object>.SendEmptyJsonObject(CancellationToken)
    Endpoint<TRequest, object>.AccessControl(string, Apply?, params string[])
    Endpoint<TRequest, object>.AccessControl(string, params string[])
    Endpoint<TRequest, object>.AllowAnonymous(params Http[])
    Endpoint<TRequest, object>.AllowAnonymous(string[])
    Endpoint<TRequest, object>.AllowFileUploads(bool)
    Endpoint<TRequest, object>.AllowFormData(bool)
    Endpoint<TRequest, object>.AuthSchemes(params string[])
    Endpoint<TRequest, object>.Claims(params string[])
    Endpoint<TRequest, object>.ClaimsAll(params string[])
    Endpoint<TRequest, object>.Connect(params string[])
    Endpoint<TRequest, object>.Connect(string, Expression<Func<TRequest, object>>)
    Endpoint<TRequest, object>.Delete(params string[])
    Endpoint<TRequest, object>.Delete(string, Expression<Func<TRequest, object>>)
    Endpoint<TRequest, object>.Description(Action<RouteHandlerBuilder>, bool)
    Endpoint<TRequest, object>.DontAutoSendResponse()
    Endpoint<TRequest, object>.DontAutoTag()
    Endpoint<TRequest, object>.DontCatchExceptions()
    Endpoint<TRequest, object>.DontThrowIfValidationFails()
    Endpoint<TRequest, object>.EnableAntiforgery()
    Endpoint<TRequest, object>.Get(params string[])
    Endpoint<TRequest, object>.Get(string, Expression<Func<TRequest, object>>)
    Endpoint<TRequest, object>.Group<TEndpointGroup>()
    Endpoint<TRequest, object>.Head(params string[])
    Endpoint<TRequest, object>.Head(string, Expression<Func<TRequest, object>>)
    Endpoint<TRequest, object>.Idempotency(Action<IdempotencyOptions>)
    Endpoint<TRequest, object>.Options(Action<RouteHandlerBuilder>)
    Endpoint<TRequest, object>.Options(params string[])
    Endpoint<TRequest, object>.Options(string, Expression<Func<TRequest, object>>)
    Endpoint<TRequest, object>.Patch(params string[])
    Endpoint<TRequest, object>.Patch(string, Expression<Func<TRequest, object>>)
    Endpoint<TRequest, object>.Permissions(params string[])
    Endpoint<TRequest, object>.PermissionsAll(params string[])
    Endpoint<TRequest, object>.Policy(Action<AuthorizationPolicyBuilder>)
    Endpoint<TRequest, object>.Policies(params string[])
    Endpoint<TRequest, object>.Post(params string[])
    Endpoint<TRequest, object>.Post(string, Expression<Func<TRequest, object>>)
    Endpoint<TRequest, object>.PostProcessor<TPostProcessor>()
    Endpoint<TRequest, object>.PostProcessors(params IPostProcessor<TRequest, object>[])
    Endpoint<TRequest, object>.PreProcessor<TPreProcessor>()
    Endpoint<TRequest, object>.PreProcessors(params IPreProcessor<TRequest>[])
    Endpoint<TRequest, object>.Put(params string[])
    Endpoint<TRequest, object>.Put(string, Expression<Func<TRequest, object>>)
    Endpoint<TRequest, object>.RequestBinder(IRequestBinder<TRequest>)
    Endpoint<TRequest, object>.ResponseCache(int, ResponseCacheLocation, bool, string, string[])
    Endpoint<TRequest, object>.ResponseInterceptor(IResponseInterceptor)
    Endpoint<TRequest, object>.Roles(params string[])
    Endpoint<TRequest, object>.RoutePrefixOverride(string)
    Endpoint<TRequest, object>.Routes(params string[])
    Endpoint<TRequest, object>.SerializerContext<TContext>(TContext)
    Endpoint<TRequest, object>.SerializerContext<TContext>()
    Endpoint<TRequest, object>.Summary(Action<EndpointSummary>)
    Endpoint<TRequest, object>.Summary(Action<EndpointSummary<TRequest>>)
    Endpoint<TRequest, object>.Summary(EndpointSummary)
    Endpoint<TRequest, object>.Tags(params string[])
    Endpoint<TRequest, object>.Throttle(int, double, string)
    Endpoint<TRequest, object>.Trace(params string[])
    Endpoint<TRequest, object>.Trace(string, Expression<Func<TRequest, object>>)
    Endpoint<TRequest, object>.Validator<TValidator>()
    Endpoint<TRequest, object>.Verbs(params Http[])
    Endpoint<TRequest, object>.Verbs(params string[])
    Endpoint<TRequest, object>.Version(int, int)
    Endpoint<TRequest, object>.ValidationFailed
    Endpoint<TRequest, object>.AddError(ValidationFailure)
    Endpoint<TRequest, object>.AddError(string, string, Severity)
    Endpoint<TRequest, object>.AddError(Expression<Func<TRequest, object>>, string, string, Severity)
    Endpoint<TRequest, object>.ThrowError(ValidationFailure, int?)
    Endpoint<TRequest, object>.ThrowError(string, int?)
    Endpoint<TRequest, object>.ThrowError(string, string, Severity, int?)
    Endpoint<TRequest, object>.ThrowError(Expression<Func<TRequest, object>>, string, int?)
    Endpoint<TRequest, object>.ThrowError(Expression<Func<TRequest, object>>, string, string, Severity, int?)
    Endpoint<TRequest, object>.ThrowIfAnyErrors(int?)
    BaseEndpoint.Definition
    BaseEndpoint.HttpContext
    BaseEndpoint.ValidationFailures
    BaseEndpoint.Configure()
    BaseEndpoint.Verbs(params string[])
    BaseEndpoint.Routes(params string[])
    BaseEndpoint.Group<TEndpointGroup>()
    BaseEndpoint.GetAclHash(string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: FastEndpoints
    Assembly: FastEndpoints.dll
    Syntax
    public abstract class EndpointWithMapper<TRequest, TMapper> : Endpoint<TRequest, object?>, IEndpoint, IEventBus, IServiceResolverBase, IHasMapper<TMapper> where TRequest : notnull where TMapper : class, IRequestMapper
    Type Parameters
    Name Description
    TRequest

    the type of the request dto

    TMapper

    the type of the entity mapper

    Properties

    Map

    the entity mapper for the endpoint

    HINT: entity mappers are singletons for performance reasons. do not maintain state in the mappers.

    Declaration
    public TMapper Map { get; set; }
    Property Value
    Type Description
    TMapper

    Implements

    IEndpoint
    IEventBus
    IServiceResolverBase
    IHasMapper<TMapper>
    In this article
    Back to top Developed by Đĵ ΝιΓΞΗΛψΚ and contributors / Licensed under MIT / Website generated by DocFX