Exemple #1
0
        /// <summary>
        /// Sends a ChannelDataFrameSet message to a customer.
        /// </summary>
        /// <param name="channelIds">The channel ids.</param>
        /// <param name="dataFrames">The data frames.</param>
        /// <returns>The message identifier.</returns>
        public virtual long ChannelDataFrameSet(IList <long> channelIds, IList <DataFrame> dataFrames)
        {
            var header = CreateMessageHeader(Protocols.ChannelDataFrame, MessageTypes.ChannelDataFrame.ChannelDataFrameSet);

            var channelDataFrameSet = new ChannelDataFrameSet()
            {
                Channels = channelIds,
                Data     = dataFrames
            };

            return(Session.SendMessage(header, channelDataFrameSet));
        }
 /// <summary>
 /// Handles the ChannelDataFrameSet message from a producer.
 /// </summary>
 /// <param name="header">The message header.</param>
 /// <param name="channelDataFrameSet">The ChannelDataFrameSet message.</param>
 protected virtual void HandleChannelDataFrameSet(IMessageHeader header, ChannelDataFrameSet channelDataFrameSet)
 {
     Notify(OnChannelDataFrameSet, header, channelDataFrameSet);
 }