Beispiel #1
0
 public void When(DeleteAccount message)
 {
     AccountIndexEntry entry;
     if (_index.TryRemove(message.UserId, out entry))
     {
         Sender.Tell(new AccountDeleted(entry));
     }
     else
     {
         Sender.Tell(new AccountDeletionFailed(message.UserId, new Exception("Couldn't bring myself to delete ya.")));
     }
 }
 public abstract void When(DeleteAccount message);