Custom service host used by WcfListener
Inheritance: System.ServiceModel.ServiceHost
        /// <summary>
        /// Dynamically generate a service host
        /// </summary>
        public static ServiceHost CreateHost(ServiceBusRuntime runtime, Type contractType, Type implementationType, string configurationName, string address)
        {
            if (configurationName == null)
            {
                throw new InvalidOperationException("The endpoint's ConfigurationName was not set");
            }
            object host = Activator.CreateInstance(implementationType);

            ((WcfListenerServiceImplementationBase)host).Runtime = runtime;
            ServiceHost serviceHost = new WcfListenerServiceHost(host, contractType.FullName, configurationName, address);

            return(serviceHost);
        }
 /// <summary>
 /// Dynamically generate a service host
 /// </summary>
 public static ServiceHost CreateHost(ServiceBusRuntime runtime, Type contractType, Type implementationType, string configurationName, string address)
 {
     if (configurationName == null)
     {
         throw new InvalidOperationException("The endpoint's ConfigurationName was not set");
     }
     object host = Activator.CreateInstance(implementationType);
     ((WcfListenerServiceImplementationBase)host).Runtime = runtime;
     ServiceHost serviceHost = new WcfListenerServiceHost(host, contractType.FullName, configurationName, address);
     return serviceHost;
 }