Esempio n. 1
0
        /// <summary>
        /// Sends a CancelGetRange message to a producer.
        /// </summary>
        /// <param name="requestUuid">The request identifier.</param>
        /// <returns>The message identifier.</returns>
        public virtual long CancelGetRange(Guid requestUuid)
        {
            var header = CreateMessageHeader(Protocols.ChannelSubscribe, MessageTypes.ChannelSubscribe.CancelGetRange);

            var cancelGetRange = new CancelGetRange
            {
                RequestUuid = requestUuid.ToUuid()
            };

            return(Session.SendMessage(header, cancelGetRange));
        }
Esempio n. 2
0
 /// <summary>
 /// Handles the CancelGetRange message from a consumer.
 /// </summary>
 /// <param name="header">The message header.</param>
 /// <param name="cancelGetRange">The CancelGetRange message.</param>
 protected virtual void HandleCancelGetRange(IMessageHeader header, CancelGetRange cancelGetRange)
 {
     Notify(OnCancelGetRange, header, cancelGetRange);
 }