C# Class DotNetWorkQueue.Transport.Redis.Basic.Time.SntpUnixTime

Returns the current unix time, using an NTP server
Inheritance: BaseUnixTime
Mostra file Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
SntpUnixTime ( ILogFactory log, SntpTimeConfiguration configuration ) : System

Initializes a new instance of the SntpUnixTime class.

Protected Methods

Method Description
GetUnixTime ( ) : long

Gets the time from the server as needed, based on cache expiration

Method Details

GetUnixTime() protected method

Gets the time from the server as needed, based on cache expiration
protected GetUnixTime ( ) : long
return long

SntpUnixTime() public method

Initializes a new instance of the SntpUnixTime class.
public SntpUnixTime ( ILogFactory log, SntpTimeConfiguration configuration ) : System
log ILogFactory The log.
configuration SntpTimeConfiguration The configuration.
return System