private bool TestCommand(SetAccessFailesCount evt, out IEvent e) { e = null; if (user == null) { return(false); } if (user.AccessFailedCount != evt.AccessFailedCount) { e = new AccessFailedCountChanged(evt.AccessFailedCount); } return(true); }
private void HandleEvent(IActorRef _, AccessFailedCountChanged evt) { user.AccessFailedCount = evt.AccessFailedCount; }