/// <summary>
        /// Sends a StopStreaming message to a producer.
        /// </summary>
        /// <returns>The message identifier.</returns>
        public virtual long StopStreaming()
        {
            var header = CreateMessageHeader(Protocols.ChannelStreaming, MessageTypes.ChannelStreaming.StopStreaming);

            var channelStreamingStop = new StopStreaming();

            return(Session.SendMessage(header, channelStreamingStop));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Sends a StopStreaming message to a producer.
        /// </summary>
        /// <param name="extension">The message header extension.</param>
        /// <returns>The sent message on success; <c>null</c> otherwise.</returns>
        public virtual EtpMessage <StopStreaming> StopStreaming(IMessageHeaderExtension extension = null)
        {
            var body = new StopStreaming
            {
            };

            return(SendRequest(body, extension: extension));
        }
Exemplo n.º 3
0
 /// <summary>
 /// Handles the StopStreaming message from a consumer.
 /// </summary>
 /// <param name="header">The message header.</param>
 /// <param name="stopStreaming">The StopStreaming message.</param>
 protected virtual void HandleStopStreaming(IMessageHeader header, StopStreaming stopStreaming)
 {
     Notify(OnStopStreaming, header, stopStreaming);
 }