C# 클래스 Ensage.Common.Signals.Signal

A signal.
상속: System.EventArgs
파일 보기 프로젝트 열기: EnsageSharp/Ensage.Common 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Signal System
TriggerEnabledStatusChanged void
TriggerOnExipired void
TriggerSignal void

공개 메소드들

메소드 설명
Create ( OnRaisedDelegate onRaised = null, SignalWaverDelegate signalWaver = null, DateTimeOffset expiration = default(DateTimeOffset), object>.IDictionary defaultProperties = null ) : Signal

Creates an instance of the Signal class.

Disable ( ) : void

Disables this signal.

Enable ( ) : void

Enables this signal.

Raise ( Exception exception ) : void

Raises the signal.

Raise ( string reason ) : void

Raises the signal.

Reset ( ) : void

Resets the signal.

비공개 메소드들

메소드 설명
Signal ( OnRaisedDelegate signalRaised, SignalWaverDelegate signalWaver, DateTimeOffset expiration, object>.IDictionary properties ) : System

Initializes a new instance of the Signal class.

TriggerEnabledStatusChanged ( object sender, bool enabled ) : void

Triggers the enabled status changed event.

TriggerOnExipired ( object sender ) : void

Triggers the on expired event.

TriggerSignal ( object sender, string reason ) : void

Triggers the signal.

메소드 상세

Create() 공개 정적인 메소드

Creates an instance of the Signal class.
public static Create ( OnRaisedDelegate onRaised = null, SignalWaverDelegate signalWaver = null, DateTimeOffset expiration = default(DateTimeOffset), object>.IDictionary defaultProperties = null ) : Signal
onRaised OnRaisedDelegate The delegate to call when this signal is raised.
signalWaver SignalWaverDelegate The function that returns true when this signal should be waved.
expiration DateTimeOffset The expiration of this signal.
defaultProperties object>.IDictionary A dictionary that contents will be dumped into
리턴 Signal

Disable() 공개 메소드

Disables this signal.
public Disable ( ) : void
리턴 void

Enable() 공개 메소드

Enables this signal.
public Enable ( ) : void
리턴 void

Raise() 공개 메소드

Raises the signal.
public Raise ( Exception exception ) : void
exception System.Exception The exception.
리턴 void

Raise() 공개 메소드

Raises the signal.
public Raise ( string reason ) : void
reason string The reason.
리턴 void

Reset() 공개 메소드

Resets the signal.
public Reset ( ) : void
리턴 void