C# 클래스 Bamboo.Prevalence.AlarmClock

A clock that can be used by a prevalent system for all its date/time related functions.
파일 보기 프로젝트 열기: bamboo/Bamboo.Prevalence 1 사용 예제들

공개 메소드들

메소드 설명
AlarmClock ( ) : System

Creates a new clock.

Pause ( ) : void

Pauses the clock. The property Now will keep on returning the same value until Resume or Recover gets called.

You should not call this method. It is used internally by the prevalence engine to execute a command as if in a specific moment in time.

PauseAt ( System.DateTime date ) : void

This method can be used for testing date sensitive code.

You should not call this method in production code. It's meant to be used in test cases only.

Recover ( System.DateTime date ) : void

Sets the clock to a specific DateTime value. This method can only be called when paused.

You should not call this method. It is used internally by the prevalence engine to execute a command as if in a specific moment in time.

Resume ( ) : void

Resumes the clock. The property Now returns to its normal behavior.

You should not call this method. It is used internally by the prevalence engine to execute a command as if in a specific moment in time.

메소드 상세

AlarmClock() 공개 메소드

Creates a new clock.
public AlarmClock ( ) : System
리턴 System

Pause() 공개 메소드

Pauses the clock. The property Now will keep on returning the same value until Resume or Recover gets called.
You should not call this method. It is used internally by the prevalence engine to execute a command as if in a specific moment in time.
public Pause ( ) : void
리턴 void

PauseAt() 공개 메소드

This method can be used for testing date sensitive code.
You should not call this method in production code. It's meant to be used in test cases only.
public PauseAt ( System.DateTime date ) : void
date System.DateTime the specific date/time value the clock should be set to, /// this will be the value returned by
리턴 void

Recover() 공개 메소드

Sets the clock to a specific DateTime value. This method can only be called when paused.
You should not call this method. It is used internally by the prevalence engine to execute a command as if in a specific moment in time.
public Recover ( System.DateTime date ) : void
date System.DateTime the specific date/time value the clock should be set to, /// this will be the value returned by
리턴 void

Resume() 공개 메소드

Resumes the clock. The property Now returns to its normal behavior.
You should not call this method. It is used internally by the prevalence engine to execute a command as if in a specific moment in time.
public Resume ( ) : void
리턴 void