Exemple #1
0
 public void Handle(StuffPutInInbox e)
 {
     if (CanHandle(e.Id))
     {
         _model.StuffPutInInbox(e.StuffId, e.StuffDescription, e.TimeUtc);
     }
 }
Exemple #2
0
        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);
        }
        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);
        }