BrokerObserver
var broker = //instance of a IMessageBroker implementation.
var monitor = BrokerObserver.Using( broker )
.WaitingFor<MySampleMessage>();var broker = //instance of a IMessageBroker implementation.
var monitor = BrokerObserver.Using( broker )
.WaitingFor<MySampleMessage>();
DelegateCommand.Create()
.OnCanExecute( state =>
{
//evaluate if the command can be executed.
return true;
} )
.OnExecute( state =>
{
//execute the command
} )
.AddMonitor( monitor );Last updated