Class SubGroup<TParent>
common configuration for a sub group of endpoints can be specified by implementing this abstract class and calling Configure(string, Action<EndpointDefinition>) in the constructor.
Implements
Inherited Members
Namespace: FastEndpoints
Assembly: FastEndpoints.dll
Syntax
public abstract class SubGroup<TParent> : Group, IServiceResolverBase where TParent : Group, new()
Type Parameters
Name | Description |
---|---|
TParent |
Methods
Configure(string, Action<EndpointDefinition>)
call this method in the constructor in order to configure the endpoint group.
Declaration
protected override sealed void Configure(string routePrefix, Action<EndpointDefinition> ep)
Parameters
Type | Name | Description |
---|---|---|
string | routePrefix | the route prefix for the group |
Action<EndpointDefinition> | ep | the configuration action to be performed on the EndpointDefinition |