Modifier

Partager via


WebServiceHost.OnOpening Method

Definition

Called when the WebServiceHost instance opens.

protected:
 override void OnOpening();
protected override void OnOpening ();
override this.OnOpening : unit -> unit
Protected Overrides Sub OnOpening ()

Remarks

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.

Applies to