Пример #1
0
        private async void AutoDetectEWSSettings()
        {
            IsLoading = true;
            var calendarSpecificData = new Dictionary <string, object>()
            {
                { "ExchangeServerSettings", SelectedProfile.ExchangeServerSettings }
            };

            ExchangeCalendars = ExchangeWebCalendarService.GetCalendarsAsync(10, calendarSpecificData);
            IsLoading         = false;
        }
Пример #2
0
        public static void Main()
        {
            //var application = new App();

            //application.InitializeComponent();
            //application.Run();
            var startTime = DateTime.Now;

            var service = new ExchangeWebCalendarService(new ApplicationLogger());

            var calendars = service.GetCalendarsAsync(100);

            service.GetAppointmentsAsync(7, 7, "", calendars[0]);


            var timediff = DateTime.Now - startTime;

            Debug.WriteLine(string.Format("**********************************************Time Diff : {0}**********************************************", timediff.TotalMinutes));


            //var list = GetOutlookProfileList();
        }