Class EndpointFactory
the default endpoint factory. it creates an instance of the endpoint and injects both constructor and property dependencies.
Implements
Inherited Members
Namespace: FastEndpoints
Assembly: FastEndpoints.dll
Syntax
public sealed class EndpointFactory : IEndpointFactory
Methods
Create(EndpointDefinition, HttpContext)
this method is called per each request.
Declaration
public BaseEndpoint Create(EndpointDefinition definition, HttpContext ctx)
Parameters
Type | Name | Description |
---|---|---|
EndpointDefinition | definition | the endpoint definition |
HttpContext | ctx | the http context for the current request |
Returns
Type | Description |
---|---|
BaseEndpoint |