private void StartInactiveCursors(StreamConsumerCollection streamData, StreamSequenceToken startToken)
 {
     foreach (StreamConsumerData consumerData in streamData.AllConsumers())
     {
         consumerData.Cursor?.Refresh(startToken);
         if (consumerData.State == StreamConsumerDataState.Inactive)
         {
             // wake up inactive consumers
             RunConsumerCursor(consumerData, consumerData.Filter).Ignore();
         }
     }
 }
        private void StartInactiveCursors(StreamId streamId, StreamConsumerCollection streamData)
        {
            // if stream is already registered, just wake inactive consumers
            // get list of inactive consumers
            var inactiveStreamConsumers = streamData.AllConsumers()
                                          .Where(consumer => consumer.State == StreamConsumerDataState.Inactive)
                                          .ToList();

            // for each inactive stream
            foreach (StreamConsumerData consumerData in inactiveStreamConsumers)
            {
                RunConsumerCursor(consumerData, consumerData.Filter).Ignore();
            }
        }
 private void StartInactiveCursors(StreamConsumerCollection streamData)
 {
     foreach (StreamConsumerData consumerData in streamData.AllConsumers())
     {
         if (consumerData.State == StreamConsumerDataState.Inactive)
         {
             // wake up inactive consumers
             RunConsumerCursor(consumerData, consumerData.Filter).Ignore();
         }
         else
         {
             if (consumerData.Cursor != null)
             {
                 consumerData.Cursor.Refresh();
             }
         }
     }
 }
 private void StartInactiveCursors(StreamConsumerCollection streamData)
 {
     foreach (StreamConsumerData consumerData in streamData.AllConsumers())
     {
         if (consumerData.State == StreamConsumerDataState.Inactive)
         {
             // wake up inactive consumers
             RunConsumerCursor(consumerData, consumerData.Filter).Ignore();
         }
         else
         {
             if (consumerData.Cursor != null)
             {
                 consumerData.Cursor.Refresh();
             }
         }
     }
 }
        private void StartInactiveCursors(StreamId streamId, StreamConsumerCollection streamData)
        {
            // if stream is already registered, just wake inactive consumers
            // get list of inactive consumers
            var inactiveStreamConsumers = streamData.AllConsumers()
                .Where(consumer => consumer.State == StreamConsumerDataState.Inactive)
                .ToList();

            // for each inactive stream
            foreach (StreamConsumerData consumerData in inactiveStreamConsumers)
                RunConsumerCursor(consumerData, consumerData.Filter).Ignore();
        }