Esempio n. 1
0
        public DomainEntitiesSubscriber(
            IRedisSubscriber redisSubscriber,
            IEntityChangePublisherWithStatus <TEntity> reactiveData,
            ISchedulersFactory schedulersFactory)
        {
            this.redisSubscriber   = redisSubscriber ?? throw new ArgumentNullException(nameof(redisSubscriber));
            this.reactiveData      = reactiveData ?? throw new ArgumentNullException(nameof(reactiveData));
            this.schedulersFactory = schedulersFactory ?? throw new ArgumentNullException(nameof(schedulersFactory));

            redisSubscriber.GetStringRetryCount = 3;

            statusChangesSubscription = new SerialDisposable();
            statusChangesSubscription.DisposeWith(CompositeDisposable);
        }
 public RedisHostingRunner(IServiceProvider serviceProvider)
 {
     _serviceProvider = serviceProvider;
     _subscriber      = _serviceProvider.GetRequiredService <RedisSubscriber>();
 }
 public TestableDomainEntitiesSubscriber(IRedisSubscriber redisSubscriber, IEntityChangePublisherWithStatus <TestModel> reactiveData, ISchedulersFactory schedulersFactory)
     : base(redisSubscriber, reactiveData, schedulersFactory)
 {
 }