DotNetWorkQueue.QueueCreationContainer.GetQueueCreation C# (CSharp) 메소드

GetQueueCreation() 공개 메소드

Gets the requested module for creating a queue.
public GetQueueCreation ( QueueConnection queueConnection ) : TQueue
queueConnection QueueConnection Queue and connection information.
리턴 TQueue
        public TQueue GetQueueCreation<TQueue>(QueueConnection queueConnection) where TQueue : class, IQueueCreation
        {
            Guard.NotNull(() => queueConnection, queueConnection);
            var container = _createContainerInternal().Create(QueueContexts.QueueCreator, _registerService, queueConnection, _transportInit,
                ConnectionTypes.Send, x => { }, _setOptions);
            lock (Containers)
            {
                Containers.Add(container);
            }
            return container.GetInstance<TQueue>();
        }
        #endregion