PeerResolver.Initialize 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.
Initializes the current peer resolver instance with the new supplied endpoint address and settings.
public:
virtual void Initialize(System::ServiceModel::EndpointAddress ^ address, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::Description::ClientCredentials ^ credentials, System::ServiceModel::PeerResolvers::PeerReferralPolicy referralPolicy);
public virtual void Initialize (System.ServiceModel.EndpointAddress address, System.ServiceModel.Channels.Binding binding, System.ServiceModel.Description.ClientCredentials credentials, System.ServiceModel.PeerResolvers.PeerReferralPolicy referralPolicy);
abstract member Initialize : System.ServiceModel.EndpointAddress * System.ServiceModel.Channels.Binding * System.ServiceModel.Description.ClientCredentials * System.ServiceModel.PeerResolvers.PeerReferralPolicy -> unit
override this.Initialize : System.ServiceModel.EndpointAddress * System.ServiceModel.Channels.Binding * System.ServiceModel.Description.ClientCredentials * System.ServiceModel.PeerResolvers.PeerReferralPolicy -> unit
Public Overridable Sub Initialize (address As EndpointAddress, binding As Binding, credentials As ClientCredentials, referralPolicy As PeerReferralPolicy)
Parameters
- address
- EndpointAddress
EndpointAddress that contains the new endpoint address of this peer resolver instance.
- credentials
- ClientCredentials
ClientCredentials that specifies the new client credentials for this peer resolver.
- referralPolicy
- PeerReferralPolicy
PeerReferralPolicy that specifies the new referral policy for this peer resolver.
Remarks
This method simply initializes the existing peer resolver instance; it does not create a new one. To create a new peer resolver, call the CreatePeerResolver method on the corresponding binding element (for example, PnrpPeerResolverBindingElement).