Export (0) Print
Expand All

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 override void OnOpening()

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

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 3.5 SP1
© 2015 Microsoft