WebServiceHost::OnOpening Method ()

 

Called when the WebServiceHost instance opens.

Namespace:   System.ServiceModel.Web
Assembly:  System.ServiceModel.Web (in System.ServiceModel.Web.dll)

protected:
virtual void OnOpening() override

The following occurs when this method is called:

  1. 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.

  2. 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.

  3. 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
Return to top
Show: