WebServiceHost::OnOpening Method ()
.NET Framework (current version)
Called when the WebServiceHost instance opens.
Assembly: System.ServiceModel.Web (in System.ServiceModel.Web.dll)
The following occurs when this method is called:
If WebServiceHost finds no endpoints in the service description, it creates a default endpoint at the service's base address. WebServiceHost automatically disables the HTTP Help page and the WSDL GET functionality so that the metadata endpoint does not interfere with the default HTTP endpoint.
WebServiceHost checks all endpoints that use the WebHttpBinding to see if they have the required WebHttpBehavior. If not present, WebServiceHost adds the WebHttpBehavior for the endpoint.
WebServiceHost configures the endpoint's binding to work with the associated IIS security settings when used in a secure virtual directory.
.NET Framework
Available since 3.5
Available since 3.5
Show: