Class TaskuraiCommandCollection
A Class representing a TaskuraiCommandCollection, used register task command handlers
Assembly: Taskurai.Worker.dll
Declaration
public sealed class TaskuraiCommandCollection
Methods
AddCommand(string, Type)
Add a command handler.
Declaration
public TaskuraiCommandCollection AddCommand(string name, Type type)
Returns
Taskurai.Worker.TaskuraiCommandCollection: Returns Taskurai.Worker.TaskuraiCommandCollection class
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Command name |
System.Type | type | Command handler type |
Command<TCommand>(string)
Register a command handler.
Declaration
public TaskuraiCommandCollection Command<TCommand>(string name) where TCommand : class, ITaskuraiCommand
Returns
Taskurai.Worker.TaskuraiCommandCollection: Returns Taskurai.Worker.TaskuraiCommandCollection class
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Command name |
Type Parameters
TCommand