internal CognitiveService(IAccessTokenProviderFactory accessTokenProviderFactory, ITextToSpeechConverter textToSpeechConverter, Region region, string key) { (_textToSpeechConverter, Region, _key) = (textToSpeechConverter, region, key); _cachedAccessTokenProvider = new Lazy <ICachedAccessTokenProvider>(() => accessTokenProviderFactory.GetProvider(Region)); }
public CognitiveServiceFactory(IAccessTokenProviderFactory accessTokenProviderFactory, ITextToSpeechConverter textToSpeechConverter) => (_accessTokenProviderFactory, _textToSpeechConverter) = (accessTokenProviderFactory, textToSpeechConverter);