Ejemplo n.º 1
0
 /// <summary>
 /// Creates the message.
 /// </summary>
 /// <param name="encoding">The selected encoding for the message.</param>
 /// <param name="prodicerId">The prodicer identifier.</param>
 /// <param name="dataSetWriterId">The data set writer identifier.</param>
 /// <param name="fieldCount">The field count.</param>
 /// <param name="sequenceNumber">The sequence number.</param>
 /// <param name="timeStamp">The time stamp.</param>
 /// <param name="configurationVersion">The configuration version.</param>
 protected internal override void CreateMessage(FieldEncodingEnum encoding, Guid prodicerId, ushort dataSetWriterId, ushort fieldCount, ushort sequenceNumber, DateTime timeStamp, ConfigurationVersionDataType configurationVersion)
 {
     OnMessageAdding(prodicerId, dataSetWriterId);
       MessageHeader = MessageHeader.GetProducerMessageHeader(this, encoding, m_lengthFieldType, MessageTypeEnum.DataKeyFrame, configurationVersion);
       //Create message header and placeholder for further header content.
       MessageHeader.FieldCount = fieldCount;
       MessageHeader.MessageSequenceNumber = sequenceNumber;
       MessageHeader.TimeStamp = timeStamp;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BinaryMessageDecoder" /> class.
 /// </summary>
 /// <param name="uaDecoder">The decoder that provides methods to be used to decode OPC UA Built-in types.</param>
 public BinaryMessageDecoder(IUADecoder uaDecoder)
     : base(uaDecoder)
 {
     b_MessageHeader = MessageHeader.GetConsumerMessageHeader(this);
 }
Ejemplo n.º 3
0
 private static void SetupProducerHeaderFields(MessageHeader _header)
 {
     _header.MessageSequenceNumber = 8;
       _header.ConfigurationVersion = new ConfigurationVersionDataType() { MajorVersion = 6, MinorVersion = 7 };
       _header.TimeStamp = CommonDefinitions.TestMinimalDateTime;
       _header.FieldCount = 16;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BinaryMessageDecoder" /> class.
 /// </summary>
 /// <param name="uaDecoder">The decoder that provides methods to be used to decode OPC UA Built-in types.</param>
 public BinaryMessageDecoder(IUADecoder uaDecoder) : base(uaDecoder)
 {
     b_MessageHeader = MessageHeader.GetConsumerMessageHeader(this);
 }