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