Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WebChannelFactory<TChannel>::OnOpening Method ()

 

This method is called when the WebChannelFactory<TChannel> is opened.

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

protected:
virtual void OnOpening() override

When this method is called, if the WebChannelFactory<TChannel> is not already associated with a binding a new WebHttpBinding is created based on the URI scheme of the remote address. Bindings with an HTTPS remote address are appropriately configured with the Mode property set to Transport and the Transport property set to None. The WebChannelFactory<TChannel> adds an instance of WebHttpBehavior to the endpoint if one does not already exist.

.NET Framework
Available since 3.5
Return to top
Show:
© 2017 Microsoft