WebChannelFactory<TChannel>.OnOpening Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method is called when the WebChannelFactory<TChannel> is opened.
protected:
override void OnOpening();
protected override void OnOpening ();
override this.OnOpening : unit -> unit
Protected Overrides Sub OnOpening ()
Remarks
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.