Condividi tramite


CommunicationClientFactoryBase<TCommunicationClient>.ValidateClient Method

Definition

Overloads

ValidateClient(TCommunicationClient)

Returns true if the client is still valid. Connection oriented transports can use this method to indicate that the client is no longer connected to the service.

ValidateClient(String, TCommunicationClient)

Returns true if the client is still valid and connected to the endpoint specified in the parameter.

ValidateClient(TCommunicationClient)

Returns true if the client is still valid. Connection oriented transports can use this method to indicate that the client is no longer connected to the service.

protected abstract bool ValidateClient (TCommunicationClient client);
abstract member ValidateClient : 'CommunicationClient -> bool
Protected MustOverride Function ValidateClient (client As TCommunicationClient) As Boolean

Parameters

client
TCommunicationClient

the communication client

Returns

true if the client is valid, false otherwise

Applies to

ValidateClient(String, TCommunicationClient)

Returns true if the client is still valid and connected to the endpoint specified in the parameter.

protected abstract bool ValidateClient (string endpoint, TCommunicationClient client);
abstract member ValidateClient : string * 'CommunicationClient -> bool
Protected MustOverride Function ValidateClient (endpoint As String, client As TCommunicationClient) As Boolean

Parameters

endpoint
String

Specifies the expected endpoint to which we think the client is connected to

client
TCommunicationClient

the communication client

Returns

true if the client is valid, false otherwise

Applies to