Interface IEndpointFactory
interface for the creation of endpoints.
Namespace: FastEndpoints
Assembly: FastEndpoints.dll
Syntax
public interface IEndpointFactory
Methods
Create(EndpointDefinition, HttpContext)
returns the instantiated fast endpoint from a given EndpointDefinition and HttpContext
Declaration
BaseEndpoint Create(EndpointDefinition definition, HttpContext ctx)
Parameters
| Type | Name | Description |
|---|---|---|
| EndpointDefinition | definition | the endpoint definition for the current request |
| HttpContext | ctx | the http context of the current request |
Returns
| Type | Description |
|---|---|
| BaseEndpoint |