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
TEndpoint
The specific type of IIndexerEndpoint<TElementEndpoint> to operate on.
TElementEndpoint
The specific type of IElementEndpoint<TEntity> the
TEndpoint
provides for individual elements.TElementCommand
The specific type of IEndpointCommand is used to handle
TElementEndpoint
s. 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
endpoint
TEndpointThe endpoint this command operates on.
Methods
GetElementCommand(TElementEndpoint)
Gets an IEndpointCommand for the given elementEndpoint
.
protected TElementCommand GetElementCommand(TElementEndpoint elementEndpoint)
Parameters
elementEndpoint
TElementEndpoint
Returns
- TElementCommand
GetSubCommand(string)
Creates a sub-IEndpointCommand based on the given name
.
protected override IEndpointCommand GetSubCommand(string name)
Parameters
name
string
Returns
- IEndpointCommand
The IEndpointCommand or
null
if thename
does not match.