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
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 EndpointWithMapper<TRequest, TMapper> : Endpoint<TRequest, object>, IEndpoint, IEventBus, IServiceResolverBase, IHasMapper<TMapper>, IHasMapper 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 |