コード例 #1
0
ファイル: InMemTransport.cs プロジェクト: geffzhang/Rebus
        /// <summary>
        /// Creates the transport, using the specified <see cref="InMemNetwork"/> to deliver/receive messages. This transport will have
        /// <paramref name="inputQueueAddress"/> as its input queue address, and thus will attempt to receive messages from the queue with that
        /// name out of the given <paramref name="network"/>
        /// </summary>
        public InMemTransport(InMemNetwork network, string inputQueueAddress)
        {
            if (network == null) throw new ArgumentNullException("network");
            if (inputQueueAddress == null) throw new ArgumentNullException("inputQueueAddress");

            _network = network;
            _inputQueueAddress = inputQueueAddress;

            _network.CreateQueue(inputQueueAddress);
        }
コード例 #2
0
ファイル: InMemTransport.cs プロジェクト: mhertis/Rebus
        /// <summary>
        /// Creates the transport, using the specified <see cref="InMemNetwork"/> to deliver/receive messages. This transport will have
        /// <paramref name="inputQueueAddress"/> as its input queue address, and thus will attempt to receive messages from the queue with that
        /// name out of the given <paramref name="network"/>
        /// </summary>
        public InMemTransport(InMemNetwork network, string inputQueueAddress)
        {
            if (network == null)
            {
                throw new ArgumentNullException("network");
            }
            if (inputQueueAddress == null)
            {
                throw new ArgumentNullException("inputQueueAddress");
            }

            _network           = network;
            _inputQueueAddress = inputQueueAddress;

            _network.CreateQueue(inputQueueAddress);
        }
コード例 #3
0
ファイル: InMemTransport.cs プロジェクト: mhertis/Rebus
 /// <summary>
 /// Creates a queue with the given address
 /// </summary>
 public void CreateQueue(string address)
 {
     _network.CreateQueue(address);
 }