Example #1
0
 public CorrelationToken Subscribe <M>(Action <M> OnMessage)
     where M : new()
 => Subscribe(QueueSubscriber.Define(OnMessage));
Example #2
0
 public QueueEmitter(IQueueReceiver Receiver)
 {
     SubscriptionId = Receiver.Subscribe(QueueSubscriber.Define <M>(OnMessage, OnFinshed));
 }
Example #3
0
 CorrelationToken IQueueBroker.Subscribe(Type MessageType, Action <object> OnMessage)
 => Subscribe(MessageType, QueueSubscriber.Define(OnMessage, MessageType));