Class CommandInfo<TContext>
public class CommandInfo<TContext> : ICommandInfo<TContext> where TContext : ICommandContext
Type Parameters
TContext
- Inheritance
-
CommandInfo<TContext>
- Implements
-
ICommandInfo<TContext>
- Inherited Members
Properties
Aliases
public IReadOnlyList<string> Aliases { get; }
Property Value
Attributes
public IReadOnlyDictionary<Type, IReadOnlyList<Attribute>> Attributes { get; }
Property Value
Parameters
public IReadOnlyList<CommandParameter<TContext>> Parameters { get; }
Property Value
- IReadOnlyList<CommandParameter<TContext>>
Preconditions
public IReadOnlyList<PreconditionAttribute<TContext>> Preconditions { get; }
Property Value
- IReadOnlyList<PreconditionAttribute<TContext>>
Priority
public int Priority { get; }
Property Value
Methods
InvokeAsync(ReadOnlyMemory<char>, TContext, CommandServiceConfiguration<TContext>, IServiceProvider?)
[UnconditionalSuppressMessage("Trimming", "IL3050:RequiresDynamicCode", Justification = "The type of the array is known to be present")]
public ValueTask<CommandExecutionResult> InvokeAsync(ReadOnlyMemory<char> arguments, TContext context, CommandServiceConfiguration<TContext> configuration, IServiceProvider? serviceProvider)
Parameters
argumentsReadOnlyMemory<char>contextTContextconfigurationCommandServiceConfiguration<TContext>serviceProviderIServiceProvider