/// <summary>
        ///   Uses stomp as a transport channel.
        /// </summary>
        /// <param name="configurator"> The servicebus configurator. </param>
        /// <param name="configure"> Stomp transport configuration callback. </param>
        /// <returns> </returns>
        public static ServiceBusConfigurator UseStomp(this ServiceBusConfigurator configurator, Action <ConnectionFactoryConfigurator> configure)
        {
            var factoryConfigurator = new ConnectionFactoryConfiguratorImpl(new ConnectionFactoryDefaultSettings());

            configure(factoryConfigurator);

            var connectionFactory = factoryConfigurator.CreateStompClientFactory();

            configurator.AddTransportFactory <StompTransportFactory>(configureFactory => { configureFactory.SetConnectionFactory(connectionFactory); });
            configurator.UseJsonSerializer();

            return(configurator);
        }
        /// <summary>
        ///   Uses stomp as a transport channel.
        /// </summary>
        /// <param name="configurator"> The servicebus configurator. </param>
        /// <param name="configure"> Stomp transport configuration callback. </param>
        /// <returns> </returns>
        public static ServiceBusConfigurator UseStomp(this ServiceBusConfigurator configurator, Action<ConnectionFactoryConfigurator> configure)
        {
            var factoryConfigurator = new ConnectionFactoryConfiguratorImpl(new ConnectionFactoryDefaultSettings());

            configure(factoryConfigurator);

            var connectionFactory = factoryConfigurator.CreateStompClientFactory();

            configurator.AddTransportFactory<StompTransportFactory>(configureFactory => { configureFactory.SetConnectionFactory(connectionFactory); });
            configurator.UseJsonSerializer();

            return configurator;
        }