public void InitAsNew()
        {
            _state = PersistentSubscriptionState.NotReady;
            _lastCheckPoint = -1;
            _statistics.SetLastKnownEventNumber(-1);
            _settings.CheckpointReader.BeginLoadState(SubscriptionId, OnCheckpointLoaded);

            _pushClients = new PersistentSubscriptionClientCollection(_settings.ConsumerStrategy);
        }
Esempio n. 2
0
        public void InitAsNew()
        {
            _state          = PersistentSubscriptionState.NotReady;
            _lastCheckPoint = -1;
            _statistics.SetLastKnownEventNumber(-1);
            _settings.CheckpointReader.BeginLoadState(SubscriptionId, OnCheckpointLoaded);

            _pushClients = new PersistentSubscriptionClientCollection(_settings.ConsumerStrategy);
        }
Esempio n. 3
0
        public void InitAsNew()
        {
            _state = PersistentSubscriptionState.NotReady;
            _nextSequenceNumber             = 0L;
            _lastCheckpointedSequenceNumber = -1L;
            _lastKnownSequenceNumber        = -1L;
            _lastKnownMessage = null;
            _statistics.SetLastKnownEventPosition(null);
            _settings.CheckpointReader.BeginLoadState(SubscriptionId, OnCheckpointLoaded);

            _pushClients = new PersistentSubscriptionClientCollection(_settings.ConsumerStrategy);
        }