Example #1
0
        protected override bool RecoverState(object state)
        {
            if (state.CanHandle<AccountState>(x =>
            {
                x.Events = this;
                _state = x;
            }))
                return true;

            return false;
        }
Example #2
0
 public AccountActor(IAggregateRootCreationParameters parameters)
     : base(parameters)
 {
     _log = Context.GetLogger();
     _state = new AccountState(parameters.Id,this);
 }