/// <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; }
/// <summary> /// Gets the consumer from current machine. /// </summary> /// <returns></returns> public static Consumer GetSelfConsumer() { return _self ?? (_self = new SelfConsumer()); }