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