コード例 #1
0
		public void Stop()
		{
			try
			{
				Client.Dispose();
				Client = new RedisQueueClient();
				_log.Info("Stopped subscriber thread.");
				_log.DebugFormat("Thread Identifier: {0}", _thread.Name);
			}
			catch (Exception exception)
			{
				_log.Error("Failed to stop subscriber thread.", exception);
			}
		}
コード例 #2
0
		public QueueMonitor() { _client = new RedisQueueClient(); }
コード例 #3
0
		public QueueSubscriber()
		{
			Queue = new QueueName(Settings.Default.Queue);
			Client = new RedisQueueClient();
		}
コード例 #4
0
		public QueueMonitor(RedisQueueClient client)
		{
			_client = client;	
		}