Skip to main content

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
TypeNameDescription
System.StringnameCommand name
System.TypetypeCommand 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
TypeNameDescription
System.StringnameCommand name
Type Parameters
  • TCommand