protected override void OnRecover(object message)
 {
     if (message is IEvent)
     {
         userCoordinatorHelper.OnEvent(Sender, message as IEvent);
     }
 }
Example #2
0
        protected override void OnReceive(object message)
        {
            switch (message)
            {
            case InSyncCommand insync:
                coordinatorInsync = true;
                userCoordinatorHelper.SetInSync(true);
                break;

            case IEvent @event:
                userCoordinatorHelper.OnEvent(Sender, @event);
                break;

            case ICommand command:
                userCoordinatorHelper.OnCommand(Sender, command, persist);
                break;
            }
        }