Class DeviceTimeEventMonitor
Reads trusted UTC from the internet and from the saved local base.
Implements
Inherited Members
Namespace: GUPS.AntiCheat.Monitor.Time
Assembly: cs.temp.dll.dll
Syntax
public class DeviceTimeEventMonitor : AMonitor<IWatchedSubject>
Properties
Name
Gets the display name of the monitor.
Declaration
public override String Name { get; }
Property Value
| Type | Description |
|---|---|
| String |
Overrides
Tolerance
Allowed deviation in seconds, never below GUPS.AntiCheat.Monitor.Time.DeviceTimeEventMonitor.MinTolerance.
Declaration
public float Tolerance { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
UseInternetTime
Gets a value indicating whether the monitor reads the trusted UTC time from an internet endpoint.
Declaration
public bool UseInternetTime { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
ForceRead()
Compares the device clock with the saved local base and returns that finding. Does not notify observers.
Declaration
public override IWatchedSubject ForceRead()
Returns
| Type | Description |
|---|---|
| IWatchedSubject | The local DeviceTimeStatus. |
Overrides
ForceReadAsync()
Returns the same local finding as ForceRead(). The request is already done. Does not notify observers.
Declaration
public override SubjectRequest ForceReadAsync()
Returns
| Type | Description |
|---|---|
| SubjectRequest | The read request. |
Overrides
OnResume()
Publishes a server result that arrived while paused, then reads the server time again.
Declaration
protected override void OnResume()
Overrides
OnStart()
Compares the saved local base, then starts the internet read when it is enabled.
Declaration
protected override void OnStart()
Overrides
OnStop()
Stops an internet read that is still in flight.
Declaration
protected override void OnStop()
Overrides
OnUpdate()
Starts a scheduled retry of the internet read when it is due.
Declaration
protected override void OnUpdate()