C# 클래스 Tp.Core.CurrentDate

Current date strategy holder.
파일 보기 프로젝트 열기: TargetProcess/Target-Process-Plugins

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
Setup ( System.DateTime date ) : IDisposable
Setup ( Func now = null, Func utcNow = null ) : IDisposable

Use the specified delegate to get the current date.

메소드 상세

Setup() 공개 정적인 메소드

public static Setup ( System.DateTime date ) : IDisposable
date System.DateTime
리턴 IDisposable

Setup() 공개 정적인 메소드

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
리턴 IDisposable