コード例 #1
0
ファイル: ReminderService.svc.cs プロジェクト: fwka1605/next
        public async Task <ReminderResult> GetCancelDecisionItemsAsync(string SessionKey, ReminderSearch condition, ReminderCommonSetting setting, IEnumerable <ReminderSummarySetting> summary)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = (await reminderProcessor.GetCancelDecisionItemsAsync(condition, setting, summary, token)).ToList();

                return new ReminderResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    Reminder = result,
                };
            }, logger));
        }
コード例 #2
0
 public async Task <IEnumerable <Reminder> > GetCancelDecisionItems(ReminderSearch option, CancellationToken token)
 => (await reminderProcessor.GetCancelDecisionItemsAsync(option, option.Setting, option.SummarySettings, token)).ToArray();