RegisterCommand(String, Func<ICommand>)
Register a particular ICommand class as the handler for a particular INotification.
Namespace: PureMVC.CoreAssembly: PureMVC in (PureMVC.dll)
Syntax
C#
public void RegisterCommand( string notificationName, Func<ICommand> commandFunc )
Parameters
notificationNameStringthe name of the INotification
commandFuncFunc<>the Func Delegate of the ICommand
Remarks
If a ICommand has already been registered to handle INotifications with this name, it is no longer used, the new Func is used instead.
The Observer for the new ICommand is only created if this the first time an ICommand has been regisered for this Notification name.