protected override void OnStart(string[] args) { var queue = this.Queue; if (queue == null) { throw new InvalidOperationException("Missing the 'Queue' for the operation."); } this.Receiver = _channel = new MessageQueueChannel(1, queue); _channel.ReceiveAsync(); }
protected override void OnStart(string[] args) { var queue = this.Queue; if (queue == null) { throw new MissingMemberException(this.GetType().FullName, "Queue"); } _channel = new MessageQueueChannel(1, queue); this.Receiver = _channel; _channel.ReceiveAsync(); }
protected override void OnStart(string[] args) { #if DEBUG JF.Diagnostics.Logger.Trace(this.GetType().FullName + " [Starting]"); #endif var queue = this.Queue; if (queue == null) { throw new InvalidOperationException("Missing the 'Queue' for the operation."); } _channel = new MessageQueueChannel(1, queue); this.Receiver = _channel; _channel.ReceiveAsync(); }
protected override void OnStart(string[] args) { #if DEBUG Zongsoft.Diagnostics.Logger.Trace(this.GetType().FullName + " [Starting]"); #endif var queue = this.Queue; if(queue == null) throw new MissingMemberException(this.GetType().FullName, "Queue"); _channel = new MessageQueueChannel(1, queue); this.Receiver = _channel; _channel.ReceiveAsync(); }