public DocumentTranslationsController( IStorageService storageService, IDocumentTranslationService documentTranslationService, ITranslatedDocumentNamingStrategy documentNamingStrategy, ILoggerFactory loggerFactory) { this.storageService = storageService; this.documentNamingStrategy = documentNamingStrategy; this.documentTranslationService = documentTranslationService; logger = loggerFactory.CreateLogger <DocumentTranslationsController>(); }
public TestDocumentTranslationsController( IStorageService storageService, IDocumentTranslationService documentTranslationService, IOptionsMonitor <AzureTranslatorOptions> azureTranslatorConnectionOptionsAccessor, ITranslatedDocumentNamingStrategy documentNamingStrategy, ILoggerFactory loggerFactory) { this.storageService = storageService; this.documentNamingStrategy = documentNamingStrategy; azureTranslatorOptions = azureTranslatorConnectionOptionsAccessor.CurrentValue; logger = loggerFactory.CreateLogger <TestDocumentTranslationsController>(); }
public PostsDomain( IPostRepository postRepository, ILanguageRepository languageRepository, ITextTranslatorService textTranslatorService, IDocumentTranslationService documentTranslationService, IStorageService <TranslateAzureBlobStorageContainer> storageService, ITranslatedDocumentNamingStrategy namingStrategy ) { this.postRepository = postRepository; this.languageRepository = languageRepository; this.textTranslatorService = textTranslatorService; this.documentTranslationService = documentTranslationService; this.storageService = storageService; this.namingStrategy = namingStrategy; }