WebChannelFactory<TChannel>.OnOpening Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Available since 3.5
Return to top