Exemplo n.º 1
0
        /// <summary>
        /// 推送数据
        /// </summary>
        /// <param name="index"></param>
        protected virtual void Push(int index)
        {
            var dataSegment = ProcessFactory.BuildDataSegment(index, DataId, DataLength, SpliteCount, DataHolder.ToString());

            DataService.Push(dataSegment);

            LogHelper.Debug(GetType(), string.Format("发送数据,ID:{0},索引:{1}", DataId, index),
                            LogInfo.ObjectToMessage(dataSegment));
        }