Пример #1
0
        internal void GetContextAttribute(AlpcContextMessageAttribute attribute)
        {
            var attr = GetAttribute <AlpcContextAttr>(AlpcMessageAttributeFlags.Context).Result;

            attribute.PortContext    = attr.PortContext.ToInt64();
            attribute.MessageContext = attr.MessageContext.ToInt64();
            attribute.MessageId      = attr.MessageId;
            attribute.Sequence       = attr.Sequence;
            attribute.CallbackId     = attr.CallbackId;
        }
Пример #2
0
        internal void SetContextAttribute(AlpcContextMessageAttribute attribute)
        {
            var attr = GetAttribute <AlpcContextAttr>(AlpcMessageAttributeFlags.Context);

            attr.Result = attribute.ToStruct();
        }