Пример #1
0
        public async Task <ReminderHistoriesResult> GetReminderListAsync(string SessionKey, ReminderSearch search, ReminderCommonSetting setting)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = (await reminderProcessor.GetReminderListAsync(search, setting, token)).ToList();

                return new ReminderHistoriesResult
                {
                    ProcessResult = new ProcessResult()
                    {
                        Result = true
                    },
                    ReminderHistories = result,
                };
            }, logger));
        }
Пример #2
0
 public async Task <IEnumerable <ReminderHistory> > GetReminderList(ReminderSearch option, CancellationToken token)
 => (await reminderProcessor.GetReminderListAsync(option, option.Setting)).ToArray();