C# Класс Composable.GenericAbstractions.Time.DummyTimeSource

Just statically returns whatever value was assigned.
Наследование: IUtcTimeTimeSource
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
DummyTimeSource ( System.DateTime utcNow ) : System
NotifyListeners ( ) : void

Описание методов

FromLocalTime() публичный статический Метод

Returns a timesource that will forever return as the current time.
public static FromLocalTime ( System.DateTime localTime ) : DummyTimeSource
localTime System.DateTime
Результат DummyTimeSource

FromÚtcTime() публичный статический Метод

Returns a timesource that will forever return as the current time.
public static FromÚtcTime ( System.DateTime utcTime ) : DummyTimeSource
utcTime System.DateTime
Результат DummyTimeSource