C# Class Composable.GenericAbstractions.Time.DummyTimeSource

Just statically returns whatever value was assigned.
Inheritance: IUtcTimeTimeSource
Afficher le fichier Open project: mlidbom/Composable.Monolithic Class Usage Examples

Méthodes publiques

Méthode Description
FromLocalTime ( System.DateTime localTime ) : DummyTimeSource

Returns a timesource that will forever return as the current time.

FromÚtcTime ( System.DateTime utcTime ) : DummyTimeSource

Returns a timesource that will forever return as the current time.

Private Methods

Méthode Description
DummyTimeSource ( System.DateTime utcNow ) : System
NotifyListeners ( ) : void

Method Details

FromLocalTime() public static méthode

Returns a timesource that will forever return as the current time.
public static FromLocalTime ( System.DateTime localTime ) : DummyTimeSource
localTime System.DateTime
Résultat DummyTimeSource

FromÚtcTime() public static méthode

Returns a timesource that will forever return as the current time.
public static FromÚtcTime ( System.DateTime utcTime ) : DummyTimeSource
utcTime System.DateTime
Résultat DummyTimeSource