C# Class AvalonStudio.Extensibility.Commands.CommandHandlerWrapper

Wraps a generic ICommandHandler<T> or ICommandListHandler<T> and allows easy calling of generic interface methods.
Afficher le fichier Open project: VitalElement/AvalonStudio Class Usage Examples

Méthodes publiques

Méthode Description
FromCommandHandler ( Type commandHandlerInterfaceType, object commandHandler ) : CommandHandlerWrapper
FromCommandListHandler ( Type commandHandlerInterfaceType, object commandListHandler ) : CommandHandlerWrapper
Populate ( Command command, List commands ) : void
Run ( Command command ) : System.Threading.Tasks.Task
Update ( Command command ) : void

Private Methods

Méthode Description
CommandHandlerWrapper ( object commandHandler, MethodInfo updateMethod, MethodInfo populateMethod, MethodInfo runMethod ) : System

Method Details

FromCommandHandler() public static méthode

public static FromCommandHandler ( Type commandHandlerInterfaceType, object commandHandler ) : CommandHandlerWrapper
commandHandlerInterfaceType System.Type
commandHandler object
Résultat CommandHandlerWrapper

FromCommandListHandler() public static méthode

public static FromCommandListHandler ( Type commandHandlerInterfaceType, object commandListHandler ) : CommandHandlerWrapper
commandHandlerInterfaceType System.Type
commandListHandler object
Résultat CommandHandlerWrapper

Populate() public méthode

public Populate ( Command command, List commands ) : void
command Command
commands List
Résultat void

Run() public méthode

public Run ( Command command ) : System.Threading.Tasks.Task
command Command
Résultat System.Threading.Tasks.Task

Update() public méthode

public Update ( Command command ) : void
command Command
Résultat void