Click or drag to resize

DefaultUpstreamAvailabilityProviderGetTimeDriftAndLatencyInternal Method

Issues an HTTP PING request to the service endpoint and captures latency and time drift reported by the service.

Namespace: SanteDB.Client.Upstream.Management
Assembly: SanteDB.Client (in SanteDB.Client.dll) Version: 3.0.2081-alpha+027e4605b77f83de5445cbcd55717223932d2452
Syntax
protected virtual bool GetTimeDriftAndLatencyInternal(
	ServiceEndpointType endpoint,
	out long? latencyMs,
	out TimeSpan? drift
)

Parameters

endpoint  ServiceEndpointType
The type of endpoint to create an IRestClient from. Services are not guaranteed to have similar parameters.
latencyMs  NullableInt64
The latency, in milliseconds, that the request took. This expects that the server will respond quickly.
drift  NullableTimeSpan
The time difference between the local clock and the time reported by the server.

Return Value

Boolean
True if the call succeeded, false otherwise.
See Also