/// <summary>
        /// Configures NServiceBus to use the given transport.
        /// </summary>
        /// <param name="config">The configuration object.</param>
        /// <param name="transportDefinitionType">Type of <see cref="TransportDefinition"/> to be configured.</param>
        /// <param name="definesConnectionString">Specifies a callback to call to retrieve the connectionstring to use</param>
        /// <returns>The configuration object.</returns>
        public static Configure UseTransport(this Configure config, Type transportDefinitionType, Func <string> definesConnectionString)
        {
            var transportConfigurer = CreateTransportConfigurer(transportDefinitionType);

            TransportConnectionString.Override(definesConnectionString);

            transportConfigurer.Configure(config);

            return(config);
        }