BATCHED_OFFER_MESSAGE structure.
コード例 #1
0
        /// <summary>
        /// Send the BATCHED_OFFER_MESSAGE request.
        /// </summary>
        /// <param name="batchedOfferMessage">The BATCHED_OFFER_MESSAGE message.</param>
        /// <returns>The repsonse message RESPONSE_MESSAGE from the hosted cache.</returns>
        public RESPONSE_MESSAGE SendBatchedOfferMessage(BATCHED_OFFER_MESSAGE batchedOfferMessage)
        {
            List <byte> buffer = new List <byte>();

            buffer.AddRange(TypeMarshal.ToBytes(batchedOfferMessage.MessageHeader));
            buffer.AddRange(TypeMarshal.ToBytes(batchedOfferMessage.ConnectionInfo));
            for (int i = 0; i < batchedOfferMessage.SegmentDescriptors.Length; i++)
            {
                buffer.AddRange(TypeMarshal.ToBytes(batchedOfferMessage.SegmentDescriptors[i]));
            }
            return(this.responseMessage = this.SendByte(buffer.ToArray()));
        }
コード例 #2
0
 /// <summary>
 /// Send the BATCHED_OFFER_MESSAGE request.
 /// </summary>
 /// <param name="batchedOfferMessage">The BATCHED_OFFER_MESSAGE message.</param>
 /// <returns>The repsonse message RESPONSE_MESSAGE from the hosted cache.</returns>
 public RESPONSE_MESSAGE SendBatchedOfferMessage(BATCHED_OFFER_MESSAGE batchedOfferMessage)
 {
     List<byte> buffer = new List<byte>();
     buffer.AddRange(TypeMarshal.ToBytes(batchedOfferMessage.MessageHeader));
     buffer.AddRange(TypeMarshal.ToBytes(batchedOfferMessage.ConnectionInfo));
     for (int i = 0; i < batchedOfferMessage.SegmentDescriptors.Length; i++)
     {
         buffer.AddRange(TypeMarshal.ToBytes(batchedOfferMessage.SegmentDescriptors[i]));
     }
     return this.responseMessage = this.SendByte(buffer.ToArray());
 }