예제 #1
0
        Task <ISendTransport> IServiceBusHostControl.CreateSendTransport(ServiceBusEndpointAddress address)
        {
            if (_host == null)
            {
                throw new InvalidOperationException("The host is not ready.");
            }

            return(_host.CreateSendTransport(address));
        }
예제 #2
0
        Task <ISendTransport> ISendTransportProvider.GetSendTransport(Uri address)
        {
            var endpointAddress = new ServiceBusEndpointAddress(_host.Address, address);

            return(_host.CreateSendTransport(endpointAddress));
        }