Class BaseEndpoint
the base class all fast endpoints inherit from
Implements
Inherited Members
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 BaseEndpoint : IEndpoint
Properties
Definition
the base class all fast endpoints inherit from
Declaration
public EndpointDefinition Definition { get; }
Property Value
Type | Description |
---|---|
EndpointDefinition |
HttpContext
the base class all fast endpoints inherit from
Declaration
public HttpContext HttpContext { get; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Http.HttpContext |
ValidationFailures
the base class all fast endpoints inherit from
Declaration
public List<ValidationFailure> ValidationFailures { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<FluentValidation.Results.ValidationFailure> |
Methods
Configure()
use this method to configure how the endpoint should be listening to incoming requests.
HINT: it is only called once during endpoint auto registration during app startup.
Declaration
public virtual void Configure()
Group<TEndpointGroup>()
the base class all fast endpoints inherit from
Declaration
protected virtual void Group<TEndpointGroup>()
where TEndpointGroup : Group, new()
Type Parameters
Name | Description |
---|---|
TEndpointGroup |
Verbs(String[])
the base class all fast endpoints inherit from
Declaration
public virtual void Verbs(params string[] methods)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | methods |