Class TypeReader
Defines a reader class that parses user input into a specified type.
public abstract class TypeReader
- Inheritance
-
TypeReader
- Derived
- Inherited Members
Methods
ReadAsync(ICommandContext, string, IServiceProvider)
Attempts to parse the input
into the desired type.
public abstract Task<TypeReaderResult> ReadAsync(ICommandContext context, string input, IServiceProvider services)
Parameters
context
ICommandContextThe context of the command.
input
stringThe raw input of the command.
services
IServiceProviderThe service collection used for dependency injection.
Returns
- Task<TypeReaderResult>
A task that represents the asynchronous parsing operation. The task result contains the parsing result.