protected ReceiveCommand ( object message ) : bool | ||
message | object | |
Результат | bool |
protected override bool ReceiveCommand(object message)
{
if (!CommonBehavior(message))
{
var cmd = message as Cmd;
if (cmd != null)
{
Sender.Tell(cmd.Data);
Persist(new Evt(cmd.Data + "-e1"), evt => Sender.Tell(evt.Data + "-" + (++_counter)));
PersistAsync(new Evt(cmd.Data + "-ea2"), evt => Sender.Tell(evt.Data + "-" + (++_counter)));
Persist(new Evt(cmd.Data + "-e3"), evt => Sender.Tell(evt.Data + "-" + (++_counter)));
return true;
}
}
else return true;
return false;
}
}