Table of Contents

Class CommandHandlerWrapper

Namespace
Gemini.Framework.Commands
Assembly
Gemini.dll

Wraps a generic ICommandHandler<T> or ICommandListHandler<T> and allows easy calling of generic interface methods.

public sealed class CommandHandlerWrapper
Inheritance
CommandHandlerWrapper
Inherited Members

Methods

FromCommandHandler(Type, object)

public static CommandHandlerWrapper FromCommandHandler(Type commandHandlerInterfaceType, object commandHandler)

Parameters

commandHandlerInterfaceType Type
commandHandler object

Returns

CommandHandlerWrapper

FromCommandListHandler(Type, object)

public static CommandHandlerWrapper FromCommandListHandler(Type commandHandlerInterfaceType, object commandListHandler)

Parameters

commandHandlerInterfaceType Type
commandListHandler object

Returns

CommandHandlerWrapper

Populate(Command, List<Command>)

public void Populate(Command command, List<Command> commands)

Parameters

command Command
commands List<Command>

Run(Command)

public Task Run(Command command)

Parameters

command Command

Returns

Task

Update(Command)

public void Update(Command command)

Parameters

command Command