Class EndpointFactory
the default endpoint factory. it creates an instance of the endpoint and injects both constructor and property dependencies.
Inheritance
System.Object
EndpointFactory
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 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 |
Microsoft.AspNetCore.Http.HttpContext | ctx | the http context for the current request |
Returns
Type | Description |
---|---|
BaseEndpoint |