C# Class Tp.Core.CurrentDate

Current date strategy holder.
Afficher le fichier Open project: TargetProcess/Target-Process-Plugins

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Setup ( System.DateTime date ) : IDisposable
Setup ( Func now = null, Func utcNow = null ) : IDisposable

Use the specified delegate to get the current date.

Method Details

Setup() public static méthode

public static Setup ( System.DateTime date ) : IDisposable
date System.DateTime
Résultat IDisposable

Setup() public static méthode

Use the specified delegate to get the current date.
public static Setup ( Func now = null, Func utcNow = null ) : IDisposable
now Func New delegate, or null to reset to the .
utcNow Func set DateTime.UtcNow
Résultat IDisposable