コード例 #1
0
        public async Task <ImporterSettingAndDetailResult> SaveAsync(string SessionKey, ImporterSetting ImpSetting, ImporterSettingDetail[] ImpSettingDetail)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                ImpSetting.Details = new List <ImporterSettingDetail>(ImpSettingDetail);

                var result = await importSettingProcessor.SaveAsync(ImpSetting, token);
                return new ImporterSettingAndDetailResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    ImporterSetting = result,
                    ImporterSettingDetail = result.Details.ToArray(),
                };
            }, logger));
        }
コード例 #2
0
 public async Task <ImporterSetting> Save(ImporterSetting setting, CancellationToken token)
 => await importSettingProcessor.SaveAsync(setting, token);