Beispiel #1
0
        public void Handle(OrderFacility message)
        {
            this.Data.OrderId    = message.OrderId;
            this.Data.FacilityId = Guid.NewGuid();
            this.Data.CategoryId = message.CategoryId;

            Console.WriteLine("Order {0} received.", this.Data.OrderId);

            this.RequestUtcTimeout(TimeSpan.FromSeconds(20), message);

            this.Bus.Publish <Ordered>(m =>
            {
                m.OrderId    = this.Data.OrderId;
                m.FacilityId = this.Data.FacilityId;
            });
        }
Beispiel #2
0
 public void Timeout(OrderFacility state)
 {
     this.Complete();
 }