Class IndexerCommand<TEndpoint, TElementEndpoint, TElementCommand>
- Namespace
- TypedRest.CommandLine.Commands.Generic
- Assembly
- TypedRest.CommandLine.dll
Command operating on a IIndexerEndpoint<TElementEndpoint>.
public abstract class IndexerCommand<TEndpoint, TElementEndpoint, TElementCommand> : EndpointCommand<TEndpoint>, IEndpointCommand where TEndpoint : IIndexerEndpoint<TElementEndpoint> where TElementEndpoint : IEndpoint where TElementCommand : IEndpointCommand
Type Parameters
TEndpointThe specific type of IIndexerEndpoint<TElementEndpoint> to operate on.
TElementEndpointThe specific type of IElementEndpoint<TEntity> the
TEndpointprovides for individual elements.TElementCommandThe specific type of IEndpointCommand is used to handle
TElementEndpoints. This must be a non-abstract class with a constructor that takes aTElementEndpoint, unless you override GetElementCommand(TElementEndpoint).
- Inheritance
-
EndpointCommand<TEndpoint>IndexerCommand<TEndpoint, TElementEndpoint, TElementCommand>
- Implements
- Derived
- Inherited Members
Constructors
IndexerCommand(TEndpoint)
Command operating on a IIndexerEndpoint<TElementEndpoint>.
protected IndexerCommand(TEndpoint endpoint)
Parameters
endpointTEndpointThe endpoint this command operates on.
Methods
GetElementCommand(TElementEndpoint)
Gets an IEndpointCommand for the given elementEndpoint.
protected TElementCommand GetElementCommand(TElementEndpoint elementEndpoint)
Parameters
elementEndpointTElementEndpoint
Returns
- TElementCommand
GetSubCommand(string)
Creates a sub-IEndpointCommand based on the given name.
protected override IEndpointCommand GetSubCommand(string name)
Parameters
namestring
Returns
- IEndpointCommand
The IEndpointCommand or
nullif thenamedoes not match.