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