Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

UDBase.Controllers.UTime

konh edited this page Apr 25, 2018 · 2 revisions

ITime

ITime is a simple interface to retrieve time from defined sources

public interface UDBase.Controllers.UTime.ITime

Properties

Type Name Summary
DateTime CurrentTime Current time
Boolean IsAvailable Is time already available?
Boolean IsFailed Is time failed to retrieve?

LocalTime

Local time wrapper

public class UDBase.Controllers.UTime.LocalTime
    : ITime

Properties

Type Name Summary
DateTime CurrentTime
Boolean IsAvailable
Boolean IsFailed

NetworkTime

Time controller uses remote server. Supported response format: "2016-12-25T14:12:33+00:00" Reference implementation is here: https://github.com/KonH/DotNetCoreTimeServer

public class UDBase.Controllers.UTime.NetworkTime
    : ITime, ILogContext

Properties

Type Name Summary
DateTime CurrentTime
Boolean IsAvailable
Boolean IsFailed