Search Results for

    Show / Hide Table of Contents

    Class EndpointWithoutRequest

    use this base class for defining endpoints that doesn't need a request dto. usually used for routes that doesn't have any parameters.

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

    Methods

    ExecuteAsync(EmptyRequest, CancellationToken)

    override the ExecuteAsync(CancellationToken ct) method instead of using this method!

    Declaration
    public sealed override Task<object> ExecuteAsync(EmptyRequest _, CancellationToken ct)
    Parameters
    Type Name Description
    EmptyRequest _
    System.Threading.CancellationToken ct
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Object>
    Overrides
    FastEndpoints.Endpoint<FastEndpoints.EmptyRequest, System.Object>.ExecuteAsync(FastEndpoints.EmptyRequest, System.Threading.CancellationToken)

    ExecuteAsync(CancellationToken)

    the handler method for the endpoint. this method is called for each request received.

    Declaration
    public virtual Task<object> ExecuteAsync(CancellationToken ct)
    Parameters
    Type Name Description
    System.Threading.CancellationToken ct

    a cancellation token

    Returns
    Type Description
    System.Threading.Tasks.Task<System.Object>

    HandleAsync(EmptyRequest, CancellationToken)

    override the HandleAsync(CancellationToken ct) method instead of using this method!

    Declaration
    public sealed override Task HandleAsync(EmptyRequest _, CancellationToken ct)
    Parameters
    Type Name Description
    EmptyRequest _
    System.Threading.CancellationToken ct
    Returns
    Type Description
    System.Threading.Tasks.Task
    Overrides
    FastEndpoints.Endpoint<FastEndpoints.EmptyRequest, System.Object>.HandleAsync(FastEndpoints.EmptyRequest, System.Threading.CancellationToken)

    HandleAsync(CancellationToken)

    the handler method for the endpoint. this method is called for each request received.

    Declaration
    public virtual Task HandleAsync(CancellationToken ct)
    Parameters
    Type Name Description
    System.Threading.CancellationToken ct

    a cancellation token

    Returns
    Type Description
    System.Threading.Tasks.Task

    Implements

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