C# Class DotNetWorkQueue.Time.BaseTime

Base server time module
Inheritance: IGetTime
Afficher le fichier Open project: blehnen/DotNetWorkQueue

Protected Properties

Свойство Type Description
Configuration DotNetWorkQueue.Configuration.BaseTimeConfiguration
Log ILog
Offset System.TimeSpan
ServerOffsetObtained System.DateTime

Méthodes publiques

Méthode Description
GetCurrentUtcDate ( ) : System.DateTime

Gets the current UTC date.

Méthodes protégées

Méthode Description
BaseTime ( ILogFactory log, BaseTimeConfiguration configuration ) : System

Initializes a new instance of the BaseTime class.

GetTime ( ) : System.DateTime

Gets the time as a UTC date

TimeExpired ( ) : bool

Returns true if the cached time offset has expired

Method Details

BaseTime() protected méthode

Initializes a new instance of the BaseTime class.
protected BaseTime ( ILogFactory log, BaseTimeConfiguration configuration ) : System
log ILogFactory The log.
configuration DotNetWorkQueue.Configuration.BaseTimeConfiguration The configuration.
Résultat System

GetCurrentUtcDate() public méthode

Gets the current UTC date.
public GetCurrentUtcDate ( ) : System.DateTime
Résultat System.DateTime

GetTime() protected abstract méthode

Gets the time as a UTC date
protected abstract GetTime ( ) : System.DateTime
Résultat System.DateTime

TimeExpired() protected méthode

Returns true if the cached time offset has expired
protected TimeExpired ( ) : bool
Résultat bool

Property Details

Configuration protected_oe property

The configuration
protected BaseTimeConfiguration,DotNetWorkQueue.Configuration Configuration
Résultat DotNetWorkQueue.Configuration.BaseTimeConfiguration

Log protected_oe property

The log
protected ILog Log
Résultat ILog

Offset protected_oe property

The current server offset compared to local time
protected TimeSpan,System Offset
Résultat System.TimeSpan

ServerOffsetObtained protected_oe property

Last time the server offset was calculated
protected DateTime,System ServerOffsetObtained
Résultat System.DateTime