Exemplo n.º 1
0
        internal async Task <string> getRoomsAndAvailability()
        {
            string output        = string.Empty;
            string ewsResourceId = SettingsHelper.EwsResourceId;
            var    ewsAuthToken  = await AuthenticationHelper.EnsureResourceClientCreatedAsync(ewsResourceId);

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



            return(output);
        }
Exemplo n.º 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);
        }