Esempio n. 1
0
 IQueueReceiver Receiver(Type MessageType)
 => Receivers.GetOrAdd(
     QueueConnector.Define(C.Host, MessageType),
     connector => QueueReceiver.Define(C, MessageType, connector));
Esempio n. 2
0
 IQueueReceiver Receiver <M>()
     where M : new()
 => Receivers.GetOrAdd(
     QueueConnector.Define <M>(C.Host),
     connector => QueueReceiver.Define <M>(C, connector));