Пример #1
0
        public Data(EntityId readerId, EntityId writerId, long seqNum, ParameterList inlineQosParams, SerializedPayload payload)
            : base(SubMessageKind.DATA)
        {
            this.readerId = readerId;
            this.writerId = writerId;
            this.writerSN = new SequenceNumber(seqNum);

            if (inlineQosParams != null && inlineQosParams.Value.Count > 0)
            {
                Header.FlagsValue |= 0x2;
                this.inlineQosParams = inlineQosParams;
            }

            if (payload.ContainsData())
            {
                Header.FlagsValue |= Flags.DataFlag; // dataFlag
            }
            else
            {
                Header.FlagsValue |= Flags.KeyFlag; // keyFlag
            }


            this.serializedPayload = payload;
        }
Пример #2
0
 public AckNack(EntityId readerId, EntityId writerId, SequenceNumberSet readerSnSet, int count)
     : base(SubMessageKind.ACKNACK)
 {
     this.readerId = readerId;
     this.writerId = writerId;
     this.readerSNState = readerSnSet;
     this.count = count;
 }
Пример #3
0
 public Entity(GuidPrefix guidPrefix, EntityId entityId)
 {
     this.guid = new GUID(guidPrefix, entityId);
 }