Example #1
0
 /// <summary>
 /// Dispatches a queue to particular consumer.
 /// </summary>
 /// <param name="messages"></param>
 /// <param name="consumer"></param>
 public void Dispatch(MessageQueue messages, Consumer consumer)
 {
     consumer.Queue = messages;
     consumer.MessageSource = this;
 }
Example #2
0
 /// <summary>
 /// Gets the consumer from current machine.
 /// </summary>
 /// <returns></returns>
 public static Consumer GetSelfConsumer()
 {
     return _self ?? (_self = new SelfConsumer());
 }