Ejemplo n.º 1
0
        public AckMessageResponse AckMessage(List <string> receiptHandles)
        {
            var request = new AckMessageRequest(this._topicName, this._consumer, receiptHandles);

            request.IntanceId = this._instanceId;
            var marshaller   = new AckMessageRequestMarshaller();
            var unmarshaller = AckMessageResponseUnmarshaller.Instance;

            return(_serviceClient.Invoke <AckMessageRequest, AckMessageResponse>(request, marshaller, unmarshaller));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// commit transaction msg, the consumer will receive the msg.
        /// </summary>
        /// <returns>The commit.</returns>
        /// <param name="receiptHandle">Receipt handle.</param>
        public AckMessageResponse Commit(string receiptHandle)
        {
            List <string> handlers = new List <string>
            {
                receiptHandle
            };

            var request = new AckMessageRequest(this._topicName, this._groupId, handlers);

            request.IntanceId  = this._instanceId;
            request.Trasaction = "commit";
            var marshaller   = new AckMessageRequestMarshaller();
            var unmarshaller = AckMessageResponseUnmarshaller.Instance;

            return(_serviceClient.Invoke <AckMessageRequest, AckMessageResponse>(request, marshaller, unmarshaller));
        }