public RedisCachedTextRetriever(
        ITextRetriever textRetriever,
        IConnectionMultiplexer connectionMultiplexer)
    {
        _textRetriever         = textRetriever;
        _connectionMultiplexer = connectionMultiplexer;

        _processes.Add("en", StartGettingQuotesAsync("en"));
        _processes.Add("ru", StartGettingQuotesAsync("ru"));
    }
    public InMemoryCachedTextRetriever(ITextRetriever textRetriever)
    {
        _textRetriever = textRetriever;

        _processes.Add("en", StartGettingQuotesAsync("en"));
        _quoteQueues.Add("en", new ConcurrentQueue <string>());

        _processes.Add("ru", StartGettingQuotesAsync("ru"));
        _quoteQueues.Add("ru", new ConcurrentQueue <string>());
    }
 public TextGenerator(ITextRetriever textRetriever)
 {
     _textRetriever = textRetriever;
 }