Example #1
0
        ///////////////////////////////////////////////////////////////////////////////////////////////
        /////////////////////////// FACTORY METHODS FOR RETRIEVING SERVICES ///////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////////

        /// <summary>
        /// Returns information about the Active Directory service, including its access token.
        /// On error, this method will display an error message to the user, and return an
        ///     Office365ServiceInfo instance whose HasValidAccessToken property is set to "false".
        /// </summary>
        public static async Task <Office365ServiceInfo> GetActiveDirectoryServiceInfoAsync()
        {
            return(await ActiveDirectoryServiceInfo.CreateAsync());
        }