/// <summary> /// Sends a ChannelStreamingStop message to a producer. /// </summary> /// <param name="channelIds">The list of channel identifiers.</param> /// <returns>The sent message on success; <c>null</c> otherwise.</returns> public virtual EtpMessage <ChannelStreamingStop> ChannelStreamingStop(IList <long> channelIds) { var body = new ChannelStreamingStop() { Channels = channelIds ?? new List <long>() }; return(SendRequest(body)); }
/// <summary> /// Sends a ChannelStreamingStop message to a producer. /// </summary> /// <param name="channelIds">The list of channel identifiers.</param> /// <returns>The message identifier.</returns> public virtual long ChannelStreamingStop(IList <long> channelIds) { var header = CreateMessageHeader(Protocols.ChannelStreaming, MessageTypes.ChannelStreaming.ChannelStreamingStop); var channelStreamingStop = new ChannelStreamingStop() { Channels = channelIds }; return(Session.SendMessage(header, channelStreamingStop)); }
/// <summary> /// Handles the ChannelStreamingStop message from a consumer. /// </summary> /// <param name="header">The message header.</param> /// <param name="channelStreamingStop">The ChannelStreamingStop message.</param> protected virtual void HandleChannelStreamingStop(IMessageHeader header, ChannelStreamingStop channelStreamingStop) { Notify(OnChannelStreamingStop, header, channelStreamingStop); }