private static MicrosoftAccountAuthenticationCache GetOrAddMicrosoftAccountAuthenticationCache( string microsoftAppClientId, string microsoftAppClientSecret) { if (!MicrosoftAccountAuthenticationCaches.ContainsKey(microsoftAppClientId)) { MicrosoftAccountAuthenticationCache microsoftAccountAuthenticationCache = new MicrosoftAccountAuthenticationCache( microsoftAppClientId, microsoftAppClientSecret); MicrosoftAccountAuthenticationCaches[microsoftAppClientId] = microsoftAccountAuthenticationCache; } return(MicrosoftAccountAuthenticationCaches[microsoftAppClientId]); }
internal GrooveClient(MicrosoftAccountAuthenticationCache microsoftAccountAuthenticationCache, IUserTokenManager userTokenManager) : this(microsoftAccountAuthenticationCache) { _userTokenManager = userTokenManager; }
internal GrooveClient(MicrosoftAccountAuthenticationCache microsoftAccountAuthenticationCache) { _microsoftAccountAuthenticationCache = microsoftAccountAuthenticationCache; }