Search Results for

    Show / Hide Table of Contents

    Class EndpointWithoutRequest<TResponse, TMapper>

    use this base class for defining endpoints that doesn't need a request dto but return a response dto and uses a response mapper.

    Inheritance
    System.Object
    BaseEndpoint
    Endpoint<EmptyRequest, TResponse>
    EndpointWithoutRequest<TResponse>
    EndpointWithoutRequest<TResponse, TMapper>
    Implements
    IEndpoint
    IEventBus
    IServiceResolverBase
    IHasMapper<TMapper>
    IHasMapper
    Inherited Members
    EndpointWithoutRequest<TResponse>.HandleAsync(CancellationToken)
    EndpointWithoutRequest<TResponse>.HandleAsync(EmptyRequest, CancellationToken)
    EndpointWithoutRequest<TResponse>.ExecuteAsync(CancellationToken)
    EndpointWithoutRequest<TResponse>.ExecuteAsync(EmptyRequest, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.HandleAsync(EmptyRequest, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.ExecuteAsync(EmptyRequest, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.TryResolve<TService>()
    Endpoint<EmptyRequest, TResponse>.TryResolve(Type)
    Endpoint<EmptyRequest, TResponse>.Resolve<TService>()
    Endpoint<EmptyRequest, TResponse>.Resolve(Type)
    Endpoint<EmptyRequest, TResponse>.CreateScope()
    Endpoint<EmptyRequest, TResponse>.Route<T>(String, Boolean)
    Endpoint<EmptyRequest, TResponse>.Query<T>(String, Boolean)
    Endpoint<EmptyRequest, TResponse>.FormFileSectionsAsync(CancellationToken)
    Endpoint<EmptyRequest, TResponse>.PublishAsync<TEvent>(TEvent, Mode, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.CreateTokenWith<TService>(String, Action<UserPrivileges>)
    Endpoint<EmptyRequest, TResponse>.ProcessorState<TState>()
    Endpoint<EmptyRequest, TResponse>.OnBeforeValidate(EmptyRequest)
    Endpoint<EmptyRequest, TResponse>.OnBeforeValidateAsync(EmptyRequest, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.OnAfterValidate(EmptyRequest)
    Endpoint<EmptyRequest, TResponse>.OnAfterValidateAsync(EmptyRequest, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.OnBeforeHandle(EmptyRequest)
    Endpoint<EmptyRequest, TResponse>.OnBeforeHandleAsync(EmptyRequest, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.OnAfterHandle(EmptyRequest, TResponse)
    Endpoint<EmptyRequest, TResponse>.OnAfterHandleAsync(EmptyRequest, TResponse, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.OnValidationFailed()
    Endpoint<EmptyRequest, TResponse>.OnValidationFailedAsync(CancellationToken)
    Endpoint<EmptyRequest, TResponse>.User
    Endpoint<EmptyRequest, TResponse>.Response
    Endpoint<EmptyRequest, TResponse>.Config
    Endpoint<EmptyRequest, TResponse>.Env
    Endpoint<EmptyRequest, TResponse>.Logger
    Endpoint<EmptyRequest, TResponse>.BaseURL
    Endpoint<EmptyRequest, TResponse>.HttpMethod
    Endpoint<EmptyRequest, TResponse>.Form
    Endpoint<EmptyRequest, TResponse>.Files
    Endpoint<EmptyRequest, TResponse>.ResponseStarted
    Endpoint<EmptyRequest, TResponse>.SendAsync(TResponse, Int32, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.SendInterceptedAsync(Object, Int32, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.SendCreatedAtAsync<TEndpoint>(Object, TResponse, Nullable<Http>, Nullable<Int32>, Boolean, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.SendCreatedAtAsync(String, Object, TResponse, Boolean, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.SendStringAsync(String, Int32, String, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.SendOkAsync(TResponse, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.SendOkAsync(CancellationToken)
    Endpoint<EmptyRequest, TResponse>.SendErrorsAsync(Int32, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.SendNoContentAsync(CancellationToken)
    Endpoint<EmptyRequest, TResponse>.SendNotFoundAsync(CancellationToken)
    Endpoint<EmptyRequest, TResponse>.SendUnauthorizedAsync(CancellationToken)
    Endpoint<EmptyRequest, TResponse>.SendForbiddenAsync(CancellationToken)
    Endpoint<EmptyRequest, TResponse>.SendRedirectAsync(String, Boolean, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.SendHeadersAsync(Action<IHeaderDictionary>, Int32, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.SendBytesAsync(Byte[], String, String, Nullable<DateTimeOffset>, Boolean, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.SendFileAsync(FileInfo, String, Nullable<DateTimeOffset>, Boolean, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.SendStreamAsync(Stream, String, Nullable<Int64>, String, Nullable<DateTimeOffset>, Boolean, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.SendEventStreamAsync<T>(String, IAsyncEnumerable<T>, CancellationToken)
    Endpoint<EmptyRequest, TResponse>.SendEmptyJsonObject(CancellationToken)
    Endpoint<EmptyRequest, TResponse>.AllowAnonymous(Http[])
    Endpoint<EmptyRequest, TResponse>.AllowAnonymous(String[])
    Endpoint<EmptyRequest, TResponse>.AllowFileUploads(Boolean)
    Endpoint<EmptyRequest, TResponse>.AllowFormData()
    Endpoint<EmptyRequest, TResponse>.AuthSchemes(String[])
    Endpoint<EmptyRequest, TResponse>.Claims(String[])
    Endpoint<EmptyRequest, TResponse>.ClaimsAll(String[])
    Endpoint<EmptyRequest, TResponse>.Delete(String[])
    Endpoint<EmptyRequest, TResponse>.Delete(String, Expression<Func<EmptyRequest, Object>>)
    Endpoint<EmptyRequest, TResponse>.Description(Action<RouteHandlerBuilder>, Boolean)
    Endpoint<EmptyRequest, TResponse>.DontAutoTag()
    Endpoint<EmptyRequest, TResponse>.DontCatchExceptions()
    Endpoint<EmptyRequest, TResponse>.DontThrowIfValidationFails()
    Endpoint<EmptyRequest, TResponse>.Get(String[])
    Endpoint<EmptyRequest, TResponse>.Get(String, Expression<Func<EmptyRequest, Object>>)
    Endpoint<EmptyRequest, TResponse>.Group<TEndpointGroup>()
    Endpoint<EmptyRequest, TResponse>.Head(String[])
    Endpoint<EmptyRequest, TResponse>.Head(String, Expression<Func<EmptyRequest, Object>>)
    Endpoint<EmptyRequest, TResponse>.Options(Action<RouteHandlerBuilder>)
    Endpoint<EmptyRequest, TResponse>.Patch(String[])
    Endpoint<EmptyRequest, TResponse>.Patch(String, Expression<Func<EmptyRequest, Object>>)
    Endpoint<EmptyRequest, TResponse>.Permissions(String[])
    Endpoint<EmptyRequest, TResponse>.PermissionsAll(String[])
    Endpoint<EmptyRequest, TResponse>.Policy(Action<AuthorizationPolicyBuilder>)
    Endpoint<EmptyRequest, TResponse>.Policies(String[])
    Endpoint<EmptyRequest, TResponse>.Post(String[])
    Endpoint<EmptyRequest, TResponse>.Post(String, Expression<Func<EmptyRequest, Object>>)
    Endpoint<EmptyRequest, TResponse>.PostProcessors(IPostProcessor<EmptyRequest, TResponse>[])
    Endpoint<EmptyRequest, TResponse>.PreProcessors(IPreProcessor<EmptyRequest>[])
    Endpoint<EmptyRequest, TResponse>.Put(String[])
    Endpoint<EmptyRequest, TResponse>.Put(String, Expression<Func<EmptyRequest, Object>>)
    Endpoint<EmptyRequest, TResponse>.RequestBinder(IRequestBinder<EmptyRequest>)
    Endpoint<EmptyRequest, TResponse>.ResponseCache(Int32, ResponseCacheLocation, Boolean, String, String[])
    Endpoint<EmptyRequest, TResponse>.ResponseInterceptor(IResponseInterceptor)
    Endpoint<EmptyRequest, TResponse>.Roles(String[])
    Endpoint<EmptyRequest, TResponse>.RoutePrefixOverride(String)
    Endpoint<EmptyRequest, TResponse>.Routes(String[])
    Endpoint<EmptyRequest, TResponse>.SerializerContext<TContext>(TContext)
    Endpoint<EmptyRequest, TResponse>.Summary(Action<EndpointSummary>)
    Endpoint<EmptyRequest, TResponse>.Summary(Action<EndpointSummary<EmptyRequest>>)
    Endpoint<EmptyRequest, TResponse>.Summary(EndpointSummary)
    Endpoint<EmptyRequest, TResponse>.Tags(String[])
    Endpoint<EmptyRequest, TResponse>.Throttle(Int32, Double, String)
    Endpoint<EmptyRequest, TResponse>.Validator<TValidator>()
    Endpoint<EmptyRequest, TResponse>.Verbs(Http[])
    Endpoint<EmptyRequest, TResponse>.Verbs(String[])
    Endpoint<EmptyRequest, TResponse>.Version(Int32, Nullable<Int32>)
    Endpoint<EmptyRequest, TResponse>.ValidationFailed
    Endpoint<EmptyRequest, TResponse>.AddError(String, String, Severity)
    Endpoint<EmptyRequest, TResponse>.AddError(Expression<Func<EmptyRequest, Object>>, String, String, Severity)
    Endpoint<EmptyRequest, TResponse>.ThrowError(String)
    Endpoint<EmptyRequest, TResponse>.ThrowError(Expression<Func<EmptyRequest, Object>>, String)
    Endpoint<EmptyRequest, TResponse>.ThrowIfAnyErrors()
    BaseEndpoint.Definition
    BaseEndpoint.HttpContext
    BaseEndpoint.ValidationFailures
    BaseEndpoint.Configure()
    BaseEndpoint.Verbs(String[])
    BaseEndpoint.Group<TEndpointGroup>()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: FastEndpoints
    Assembly: FastEndpoints.dll
    Syntax
    public abstract class EndpointWithoutRequest<TResponse, TMapper> : EndpointWithoutRequest<TResponse>, IEndpoint, IEventBus, IServiceResolverBase, IHasMapper<TMapper>, IHasMapper where TMapper : IResponseMapper
    Type Parameters
    Name Description
    TResponse

    the type of the response 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

    Methods

    SendMapped<TEntity>(TEntity, Int32, CancellationToken)

    use this base class for defining endpoints that doesn't need a request dto but return a response dto and uses a response mapper.

    Declaration
    protected Task SendMapped<TEntity>(TEntity entity, int statusCode = 200, CancellationToken ct = default(CancellationToken))
    Parameters
    Type Name Description
    TEntity entity
    System.Int32 statusCode
    System.Threading.CancellationToken ct
    Returns
    Type Description
    System.Threading.Tasks.Task
    Type Parameters
    Name Description
    TEntity

    SendMappedAsync<TEntity>(TEntity, Int32, CancellationToken)

    use this base class for defining endpoints that doesn't need a request dto but return a response dto and uses a response mapper.

    Declaration
    protected async Task SendMappedAsync<TEntity>(TEntity entity, int statusCode = 200, CancellationToken ct = default(CancellationToken))
    Parameters
    Type Name Description
    TEntity entity
    System.Int32 statusCode
    System.Threading.CancellationToken ct
    Returns
    Type Description
    System.Threading.Tasks.Task
    Type Parameters
    Name Description
    TEntity

    Implements

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