コード例 #1
0
 public TranslationService(IExceptionHandler exceptionHandler, ITranslationRequestValidator translationRequestValidator, ITranslationClient translationClient, ILogger logger)
 {
     _exceptionHandler            = exceptionHandler;
     _translationRequestValidator = translationRequestValidator;
     _translationClient           = translationClient;
     _logger = logger;
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
 public TranslationProcess(
     IResourceFileReader resourceFileReader,
     ILanguageSelector languageSelector,
     ITranslationClient translateClient,
     IResourceFileWriter resourceFileWriter,
     IResourceFileTranslatorUi ui
     )
 {
     ResourceFileReader = resourceFileReader;
     LanguageSelector   = languageSelector;
     TranslationClient  = translateClient;
     ResourceFileWriter = resourceFileWriter;
     Ui = ui;
 }
コード例 #4
0
 public Translator(ILog log, ITranslationClient client)
 {
     this.log    = log;
     this.client = client;
 }
コード例 #5
0
ファイル: Translator.cs プロジェクト: jamesli21/Presentations
 public Translator(ILog log, ITranslationClient client)
 {
     this.log = log;
      this.client = client;
 }
コード例 #6
0
 public ConsoleLanguageSelector(ITranslationClient client)
 {
     this.client = client;
 }
コード例 #7
0
 public static string GetString(this ITranslationClient client, string key, params (string variable, object value)[] variables)