Пример #1
0
        public async Task <ReminderResult> GetItemsAsync(string SessionKey, ReminderSearch condition, ReminderCommonSetting setting, ReminderSummarySetting[] summary)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = (await reminderProcessor.GetItemsAsync(condition, setting, summary, token)).ToList();

                return new ReminderResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    Reminder = result,
                };
            }, logger));
        }
Пример #2
0
 public async Task <IEnumerable <Reminder> > GetItems(ReminderSearch option, CancellationToken token)
 => (await reminderProcessor.GetItemsAsync(option, option.Setting, option.SummarySettings, token)).ToArray();