public RedisPubSub(IServiceProvider services, RedisConnectionFactory connectionFactory, ITelemetry telemetry) { _services = services; _telemetry = telemetry; _connectionFactory = connectionFactory; _subscriberLazy = new Lazy <ISubscriber>(() => { _connectionFactory.GetConnection().PreserveAsyncOrder = false; return(_connectionFactory.GetSubscriber()); }); }