 | 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.ManagementAssembly: SanteDB.Client (in SanteDB.Client.dll) Version: 3.0.2081-alpha+027e4605b77f83de5445cbcd55717223932d2452
Syntaxprotected virtual bool GetTimeDriftAndLatencyInternal(
ServiceEndpointType endpoint,
out long? latencyMs,
out TimeSpan? drift
)
Protected Overridable Function GetTimeDriftAndLatencyInternal (
endpoint As ServiceEndpointType,
<OutAttribute> ByRef latencyMs As Long?,
<OutAttribute> ByRef drift As TimeSpan?
) As Boolean
protected:
virtual bool GetTimeDriftAndLatencyInternal(
ServiceEndpointType endpoint,
[OutAttribute] Nullable<long long>% latencyMs,
[OutAttribute] Nullable<TimeSpan>% drift
)
abstract GetTimeDriftAndLatencyInternal :
endpoint : ServiceEndpointType *
latencyMs : Nullable<int64> byref *
drift : Nullable<TimeSpan> byref -> bool
override GetTimeDriftAndLatencyInternal :
endpoint : ServiceEndpointType *
latencyMs : Nullable<int64> byref *
drift : Nullable<TimeSpan> byref -> bool 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
BooleanTrue if the call succeeded, false otherwise.
See Also