Пример #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;
 }