Services Host Factory. Create Service Host(Type, Uri) Method
Creates an instance of the service class that has the specified base address or addresses.
protected: override System::ServiceModel::ServiceHost ^ CreateServiceHost(Type ^ serviceType, cli::array <Uri ^> ^ baseAddresses);
protected override System.ServiceModel.ServiceHost CreateServiceHost (Type serviceType, Uri baseAddresses);
override this.CreateServiceHost : Type * Uri -> System.ServiceModel.ServiceHost
Protected Overrides Function CreateServiceHost (serviceType As Type, baseAddresses As Uri()) As ServiceHost
The type of service host to create.
An array of base addresses for the service.
A ServiceHost instance for the type of service that has the specified base address or addresses.
Usually this method is called automatically by Windows Communication Foundation as part of service activation, and you do not have to call the method manually.