예제 #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;
 }