Class SourceSignalBase<T>
Base class for signals containing payload data and source identifier.
Namespace: MAT.Atlas.Api.Core.Signals
Assembly: MAT.Atlas.Api.Core.dll
Syntax
public abstract class SourceSignalBase<T> : Object, ISourceSignal<T>, ISignal<T>, ISignal
Type Parameters
Name | Description |
---|---|
T | Type of signal payload. |
Constructors
SourceSignalBase(Guid, T)
Initializes a new instance of the SourceSignalBase<T> class.
Declaration
protected SourceSignalBase(Guid sourceId, T data)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | sourceId | The source Id. |
T | data | The payload. |
Properties
Data
The payload.
Declaration
public T Data { get; }
Property Value
Type | Description |
---|---|
T |
SignalId
Gets this signal type's unique identifier.
Declaration
public virtual Guid SignalId { get; }
Property Value
Type | Description |
---|---|
System.Guid | The signal type's unique identifier. |
SourceId
Gets this source of signal unique identifier.
Declaration
public Guid SourceId { get; }
Property Value
Type | Description |
---|---|
System.Guid | The signal source unique identifier. |