C# Класс Ensage.Common.Signals.Signal

A signal.
Наследование: System.EventArgs
Показать файл Открыть проект Примеры использования класса

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