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; }
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); }