ControllerActionEndpointConventionBuilder Class

Definition

Builds conventions that will be used for customization of EndpointBuilder instances.

public ref class ControllerActionEndpointConventionBuilder sealed : Microsoft::AspNetCore::Builder::IEndpointConventionBuilder
public sealed class ControllerActionEndpointConventionBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
type ControllerActionEndpointConventionBuilder = class
    interface IEndpointConventionBuilder
Public NotInheritable Class ControllerActionEndpointConventionBuilder
Implements IEndpointConventionBuilder
Inheritance
ControllerActionEndpointConventionBuilder
Implements

Remarks

This interface is used at application startup to customize endpoints for the application.

Methods

Add(Action<EndpointBuilder>)

Adds the specified convention to the builder. Conventions are used to customize EndpointBuilder instances.

Finally(Action<EndpointBuilder>)

Registers the specified convention for execution after conventions registered via Add(Action<EndpointBuilder>)

Extension Methods

WithStaticAssets(ControllerActionEndpointConventionBuilder, String)

Adds a ResourceAssetCollection metadata instance to the endpoints.

DisableRequestTimeout(IEndpointConventionBuilder)

Disables request timeout on the endpoint(s).

WithRequestTimeout(IEndpointConventionBuilder, RequestTimeoutPolicy)

Specifies a timeout policy for to the endpoint(s).

WithRequestTimeout(IEndpointConventionBuilder, String)

Specifies a timeout policy for to the endpoint(s).

WithRequestTimeout(IEndpointConventionBuilder, TimeSpan)

Specifies a timeout for the endpoint(s).

ShortCircuit(IEndpointConventionBuilder, Nullable<Int32>)

Short circuit the endpoint(s). The execution of the endpoint will happen in UseRouting middleware instead of UseEndpoint.

Applies to