Transport definition for RabbirtMQ
Inheritance: TransportDefinition
コード例 #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);
        }
コード例 #2
0
        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);
        }