示例#1
0
        private static MicrosoftAccountAuthenticationCache GetOrAddMicrosoftAccountAuthenticationCache(
            string microsoftAppClientId,
            string microsoftAppClientSecret)
        {
            if (!MicrosoftAccountAuthenticationCaches.ContainsKey(microsoftAppClientId))
            {
                MicrosoftAccountAuthenticationCache microsoftAccountAuthenticationCache = new MicrosoftAccountAuthenticationCache(
                    microsoftAppClientId,
                    microsoftAppClientSecret);

                MicrosoftAccountAuthenticationCaches[microsoftAppClientId] = microsoftAccountAuthenticationCache;
            }

            return(MicrosoftAccountAuthenticationCaches[microsoftAppClientId]);
        }
示例#2
0
 internal GrooveClient(MicrosoftAccountAuthenticationCache microsoftAccountAuthenticationCache, IUserTokenManager userTokenManager)
     : this(microsoftAccountAuthenticationCache)
 {
     _userTokenManager = userTokenManager;
 }
示例#3
0
 internal GrooveClient(MicrosoftAccountAuthenticationCache microsoftAccountAuthenticationCache)
 {
     _microsoftAccountAuthenticationCache = microsoftAccountAuthenticationCache;
 }