Exemplo n.º 1
0
        public DomainEntitiesSubscriber(
            string url,
            IEntityChangePublisherWithStatus <TEntity> reactiveData,
            ISchedulersFactory schedulersFactory)
        {
            this.url               = url ?? throw new ArgumentNullException(nameof(url));
            this.reactiveData      = reactiveData ?? throw new ArgumentNullException(nameof(reactiveData));
            this.schedulersFactory = schedulersFactory ?? throw new ArgumentNullException(nameof(schedulersFactory));

            statusChangesSubscription = new SerialDisposable();
            statusChangesSubscription.DisposeWith(this);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
0
        public DomainEntitiesSubscriber(
            //NavigationManager navigationManager,
            string url,
            IEntityChangePublisherWithStatus <TEntity> reactiveData,
            ISchedulersFactory schedulersFactory)
        {
            //this.navigationManager = navigationManager ?? throw new ArgumentNullException(nameof(navigationManager));
            this.url               = url ?? throw new ArgumentNullException(nameof(url));
            this.reactiveData      = reactiveData ?? throw new ArgumentNullException(nameof(reactiveData));
            this.schedulersFactory = schedulersFactory ?? throw new ArgumentNullException(nameof(schedulersFactory));

            statusChangesSubscription = new SerialDisposable();
            statusChangesSubscription.DisposeWith(CompositeDisposable);
        }
 public TestableDomainEntitiesSubscriber(IRedisSubscriber redisSubscriber, IEntityChangePublisherWithStatus <TestModel> reactiveData, ISchedulersFactory schedulersFactory)
     : base(redisSubscriber, reactiveData, schedulersFactory)
 {
 }