Table of Contents

Class CommunicationTransmission

Namespace
Loehnert.Lisrt.Messaging.Communication
Assembly
Loehnert.Lisrt.dll

A single transmission.

public class CommunicationTransmission : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged
Inheritance
PropertyChangedBase
CommunicationTransmission
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

CommunicationTransmission(string, TransmissionDirection, byte[], string)

Initializes a new instance of the CommunicationTransmission class.

public CommunicationTransmission(string moduleName, TransmissionDirection direction, byte[] rawData, string comment)

Parameters

moduleName string

The communicating ILisrtModules full name.

direction TransmissionDirection

The communication direction.

rawData byte[]

The sent data as byte array.

comment string

Comment for the data.

Exceptions

ArgumentNullException

Thrown when moduleName or rawData is null.

CommunicationTransmission(string, TransmissionDirection, string, string)

Initializes a new instance of the CommunicationTransmission class.

public CommunicationTransmission(string moduleName, TransmissionDirection direction, string data, string comment)

Parameters

moduleName string

The communicating ILisrtModules full name.

direction TransmissionDirection

The communication direction.

data string

The sent data as string.

comment string

Comment for the data.

Exceptions

ArgumentNullException

Thrown when moduleName or data is null.

Properties

Comment

Gets a comment for the transmitted Data.

public string Comment { get; }

Property Value

string

Data

Gets transmitted data.

public string Data { get; }

Property Value

string

Remarks

Null, if RawData is set.

Direction

Gets the TransmissionDirection for the transmission.

public TransmissionDirection Direction { get; }

Property Value

TransmissionDirection

ModuleName

Gets the full module name.

public string ModuleName { get; }

Property Value

string

Remarks

RawData

Gets raw transmitted data.

public byte[] RawData { get; }

Property Value

byte[]

Remarks

Null, if Data is set.

TimeStamp

Gets the message time stamp.

public virtual DateTime TimeStamp { get; }

Property Value

DateTime