public void Handle(StuffPutInInbox e) { if (CanHandle(e.Id)) { _model.StuffPutInInbox(e.StuffId, e.StuffDescription, e.TimeUtc); } }
public void When(StuffPutInInbox e) { var info = new StuffInfo(e.StuffId, e.StuffDescription); // Store the details of this stuff in this dictionary StuffInInbox.Add(e.StuffId, info); // Now Add StuffId to our Inbox HashSet for easy lookup of our "Stuff" Inbox.Add(e.StuffId); }