AutofacHostFactoryCreateServiceHost Method (String, Uri) |
Namespace: Autofac.Integration.Wcf
public override ServiceHostBase CreateServiceHost( string constructorString, Uri[] baseAddresses )
Exception | Condition |
---|---|
ArgumentNullException | Thrown if constructorString or baseAddresses is . |
ArgumentException | Thrown if constructorString is empty. |
InvalidOperationException | Thrown if the Container is . |
If HostConfigurationAction is not , the new service host instance is run through the configuration action prior to being returned. This allows you to programmatically configure behaviors or other aspects of the host.