Class EndpointWithMapper<TRequest, TMapper>
use this base class for defining endpoints that only use a request dto and don't use a response dto but uses a request mapper.
Inherited Members
Namespace: FastEndpoints
Assembly: FastEndpoints.dll
Syntax
public abstract class EndpointWithMapper<TRequest, TMapper> : Endpoint<TRequest, object?>, IEndpoint, IEventBus, IServiceResolverBase, IHasMapper<TMapper>, IHasMapper where TRequest : notnull where TMapper : IRequestMapper
Type Parameters
Name | Description |
---|---|
TRequest | the type of the request dto |
TMapper | the type of the entity mapper |
Properties
Map
the entity mapper for the endpoint
HINT: entity mappers are singletons for performance reasons. do not maintain state in the mappers.
Declaration
public TMapper Map { get; set; }
Property Value
Type | Description |
---|---|
TMapper |