/// <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); }
/// <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); }
/// <summary> /// Creates a queue with the given address /// </summary> public void CreateQueue(string address) { _network.CreateQueue(address); }