コード例 #1
0
        internal async Task<List<model.EWSTaskItem>> getEWSTasks()
        {
            string ewsResourceId = SettingsHelper.EwsResourceId;
            var ewsAuthToken = await AuthenticationHelper.EnsureResourceClientCreatedAsync(ewsResourceId);
            ExchangeService serviceObj = getExchangeService(ewsAuthToken.AccessToken, SettingsHelper.EwsWebServiceUri);

            List<model.EWSTaskItem> ewsTasks = new List<Models.EWSTaskItem>();
            var ewsTaskList = FindIncompleteTask(serviceObj);
            foreach (Microsoft.Exchange.WebServices.Data.Task eTask in ewsTaskList)
            {
                model.EWSTaskItem ewsTaskItemObj = new model.EWSTaskItem(eTask);
                ewsTasks.Add(ewsTaskItemObj);
            }

            return ewsTasks;
        }
コード例 #2
0
        internal async Task <List <model.EWSTaskItem> > getEWSTasks()
        {
            string ewsResourceId = SettingsHelper.EwsResourceId;
            var    ewsAuthToken  = await AuthenticationHelper.EnsureResourceClientCreatedAsync(ewsResourceId);

            ExchangeService serviceObj = getExchangeService(ewsAuthToken.AccessToken, SettingsHelper.EwsWebServiceUri);

            List <model.EWSTaskItem> ewsTasks = new List <Models.EWSTaskItem>();
            var ewsTaskList = FindIncompleteTask(serviceObj);

            foreach (Microsoft.Exchange.WebServices.Data.Task eTask in ewsTaskList)
            {
                model.EWSTaskItem ewsTaskItemObj = new model.EWSTaskItem(eTask);
                ewsTasks.Add(ewsTaskItemObj);
            }

            return(ewsTasks);
        }