Esempio n. 1
0
 /// <summary>
 /// Registers the command handler invoked from the command line by its prefix.
 /// </summary>
 /// <param name="id">Unique ID.</param>
 /// <param name="handler">Command handler.</param>
 /// <param name="attribute">Command attribute.</param>
 /// <remarks>
 /// NOTE: Consider to implement the <see cref="ModuleCommand"/> instead.
 /// Dynamic registration is not recommended for standard scenarios.
 /// <include file='doc.xml' path='doc/RegisterModule/*'/>
 /// </remarks>
 public abstract IModuleCommand RegisterModuleCommand(Guid id, ModuleCommandAttribute attribute, EventHandler <ModuleCommandEventArgs> handler);
Esempio n. 2
0
 /// <summary>
 /// Registers the command handler invoked from the command line by its prefix.
 /// </summary>
 /// <param name="id">Unique ID.</param>
 /// <param name="handler">Command handler.</param>
 /// <param name="attribute">Command attribute.</param>
 /// <remarks>
 /// NOTE: Consider to implement the <see cref="ModuleCommand"/> instead.
 /// Dynamic registration is not recommended for standard scenarios.
 /// <include file='doc.xml' path='doc/RegisterModule/*'/>
 /// </remarks>
 public abstract IModuleCommand RegisterModuleCommand(Guid id, ModuleCommandAttribute attribute, EventHandler<ModuleCommandEventArgs> handler);