Apache.NMS.ActiveMQ.Transport.Mock.MockTransportFactory.CreateTransport C# (CSharp) Method

CreateTransport() public method

public CreateTransport ( Uri location ) : ITransport
location System.Uri
return ITransport
        public ITransport CreateTransport(Uri location)
        {
            ITransport transport = CompositeConnect(location);

            transport = new MutexTransport(transport);
            transport = new ResponseCorrelator(transport);

            return transport;
        }

Usage Example

Exemplo n.º 1
0
 public void CreationFailMockTransportTest()
 {
     MockTransportFactory factory = new MockTransportFactory();
     
     Uri location = new Uri("mock://0.0.0.0:61616?transport.failOnCreate=true");
     
     factory.CreateTransport(location);
 }
All Usage Examples Of Apache.NMS.ActiveMQ.Transport.Mock.MockTransportFactory::CreateTransport