public TranslationService(IExceptionHandler exceptionHandler, ITranslationRequestValidator translationRequestValidator, ITranslationClient translationClient, ILogger logger) { _exceptionHandler = exceptionHandler; _translationRequestValidator = translationRequestValidator; _translationClient = translationClient; _logger = logger; }
/// <summary> /// Initializes a new instance of the <see cref="ShakespeareanPokemonService"/> class. /// </summary> /// <param name="pokeClient">The poke client.</param> /// <param name="translationClient">The translation client.</param> /// <param name="cache">The cache.</param> public ShakespeareanPokemonService( IPokeApiClient pokeClient, ITranslationClient translationClient, IAppCache cache) { this.pokeClient = pokeClient; this.translationClient = translationClient; this.cache = cache; }
public TranslationProcess( IResourceFileReader resourceFileReader, ILanguageSelector languageSelector, ITranslationClient translateClient, IResourceFileWriter resourceFileWriter, IResourceFileTranslatorUi ui ) { ResourceFileReader = resourceFileReader; LanguageSelector = languageSelector; TranslationClient = translateClient; ResourceFileWriter = resourceFileWriter; Ui = ui; }
public Translator(ILog log, ITranslationClient client) { this.log = log; this.client = client; }
public Translator(ILog log, ITranslationClient client) { this.log = log; this.client = client; }
public ConsoleLanguageSelector(ITranslationClient client) { this.client = client; }
public static string GetString(this ITranslationClient client, string key, params (string variable, object value)[] variables)