Class CommandServiceOptions<TContext>
public class CommandServiceOptions<TContext> where TContext : ICommandContext
Type Parameters
TContext
- Inheritance
-
CommandServiceOptions<TContext>
- Inherited Members
Constructors
CommandServiceOptions()
public CommandServiceOptions()
Properties
CreateContext
public Func<Message, GatewayClient, IServiceProvider, TContext>? CreateContext { get; set; }
Property Value
- Func<Message, GatewayClient, IServiceProvider, TContext>
CultureInfo
public CultureInfo? CultureInfo { get; set; }
Property Value
EnumTypeReader
public CommandTypeReader<TContext>? EnumTypeReader { get; set; }
Property Value
- CommandTypeReader<TContext>
GetPrefixLengthAsync
public Func<Message, GatewayClient, IServiceProvider, ValueTask<int>>? GetPrefixLengthAsync { get; set; }
Property Value
IgnoreCase
Default = true
public bool? IgnoreCase { get; set; }
Property Value
- bool?
ParameterSeparators
Default = ' ', '\n'
public IEnumerable<char>? ParameterSeparators { get; set; }
Property Value
Prefix
public string? Prefix { get; set; }
Property Value
Prefixes
public IEnumerable<string>? Prefixes { get; set; }
Property Value
ResultHandler
public ICommandResultHandler<TContext>? ResultHandler { get; set; }
Property Value
- ICommandResultHandler<TContext>
ResultResolverProvider
public IResultResolverProvider<TContext>? ResultResolverProvider { get; set; }
Property Value
- IResultResolverProvider<TContext>
TypeReaders
public Dictionary<Type, CommandTypeReader<TContext>> TypeReaders { get; set; }
Property Value
- Dictionary<Type, CommandTypeReader<TContext>>
UseScopes
public bool? UseScopes { get; set; }
Property Value
- bool?