Transport definition for RabbirtMQ
Inheritance: TransportDefinition
Exemple #1
0
        public static TransportExtensions <RabbitMQTransport> UseTransport <T>(this EndpointConfiguration config) where T : RabbitMQTransport
        {
            var transport = new RabbitMQTransport();

            var routing = config.UseTransport(transport);

            var settings = new TransportExtensions <RabbitMQTransport>(transport, routing);

            return(settings);
        }
        public static RabbitMqTransportLegacySettings UseTransport <T>(this EndpointConfiguration config)
            where T : RabbitMQTransport
        {
            var transport = new RabbitMQTransport();

            var routing = config.UseTransport(transport);

            var settings = new RabbitMqTransportLegacySettings(transport, routing);

            return(settings);
        }