示例#1
0
        private bool Begin<TParam>(TParam parameter)
        {
            var beginParameter = ProcessFactory.BuildDataParameter(ActionId, parameter);

            LogHelper.Debug(GetType(), "发送请求", LogInfo.ObjectToMessage(beginParameter));

            var beginDataInfo = DataService.Begin(beginParameter);

            if (beginDataInfo == null)
            {
                OperatorResult.ErrorId = (int)DataDictionary.ErrorType.DataPullBeginError;
                OperatorResult.ErrorMessage = "获取头出现错误";
                DataTransferStatus = false;
                LogHelper.Debug(GetType(), "发送请求失败");
                return false;
            }
            else
            {
                SpliteCount = beginDataInfo.SpliteCount;
                DataId = beginDataInfo.DataId;

                LogHelper.Debug(GetType(), "发送请求成功");
                return true;
            }
        }