private QueueObject CreateQueue(string queueName) { var queue = new QueueObject(); Queues.Add(queueName, queue); return(queue); }
public static QueueObject GetQueue(string queueName) { QueueObject returnValue; if (_instance == null) { lock (_syncRoot) { if (_instance == null) { _instance = new QueueObject(); } } } returnValue = _instance.GetQueueInternal(queueName); if (returnValue == null) { returnValue = _instance.CreateQueue(queueName); } return(returnValue); }
public void Dispose() { _instance = null; GC.SuppressFinalize(this); }