public PersistentSubscriptionParams(bool resolveLinkTos, string subscriptionId, string eventStreamId, string groupName,
                                     int startFrom, bool extraStatistics, TimeSpan messageTimeout,
                                     int maxRetryCount, int liveBufferSize, int bufferSize, int readBatchSize,
                                     TimeSpan checkPointAfter, int minCheckPointCount,
                                     int maxCheckPointCount, int maxSubscriberCount,
                                     IPersistentSubscriptionConsumerStrategy consumerStrategy,
                                     IPersistentSubscriptionStreamReader streamReader,
                                     IPersistentSubscriptionCheckpointReader checkpointReader,
                                     IPersistentSubscriptionCheckpointWriter checkpointWriter,
                                     IPersistentSubscriptionMessageParker messageParker)
 {
     _resolveLinkTos     = resolveLinkTos;
     _subscriptionId     = subscriptionId;
     _eventStreamId      = eventStreamId;
     _groupName          = groupName;
     _startFrom          = startFrom;
     _extraStatistics    = extraStatistics;
     _messageTimeout     = messageTimeout;
     _maxRetryCount      = maxRetryCount;
     _liveBufferSize     = liveBufferSize;
     _bufferSize         = bufferSize;
     _checkPointAfter    = checkPointAfter;
     _minCheckPointCount = minCheckPointCount;
     _maxCheckPointCount = maxCheckPointCount;
     _maxSubscriberCount = maxSubscriberCount;
     _consumerStrategy   = consumerStrategy;
     _readBatchSize      = readBatchSize;
     _streamReader       = streamReader;
     _checkpointReader   = checkpointReader;
     _checkpointWriter   = checkpointWriter;
     _messageParker      = messageParker;
 }
 public PersistentSubscriptionParams(bool resolveLinkTos, string subscriptionId, string eventStreamId, string groupName, 
                                    int startFrom, bool extraStatistics, TimeSpan messageTimeout, 
                                    int maxRetryCount, int liveBufferSize, int bufferSize, int readBatchSize,
                                    TimeSpan checkPointAfter, int minCheckPointCount,
                                    int maxCheckPointCount, int maxSubscriberCount, 
                                    IPersistentSubscriptionConsumerStrategy consumerStrategy,
                                    IPersistentSubscriptionStreamReader streamReader, 
                                    IPersistentSubscriptionCheckpointReader checkpointReader, 
                                    IPersistentSubscriptionCheckpointWriter checkpointWriter,
                                    IPersistentSubscriptionMessageParker messageParker)
 {
     _resolveLinkTos = resolveLinkTos;
     _subscriptionId = subscriptionId;
     _eventStreamId = eventStreamId;
     _groupName = groupName;
     _startFrom = startFrom;
     _extraStatistics = extraStatistics;
     _messageTimeout = messageTimeout;
     _maxRetryCount = maxRetryCount;
     _liveBufferSize = liveBufferSize;
     _bufferSize = bufferSize;
     _checkPointAfter = checkPointAfter;
     _minCheckPointCount = minCheckPointCount;
     _maxCheckPointCount = maxCheckPointCount;
     _maxSubscriberCount = maxSubscriberCount;
     _consumerStrategy = consumerStrategy;
     _readBatchSize = readBatchSize;
     _streamReader = streamReader;
     _checkpointReader = checkpointReader;
     _checkpointWriter = checkpointWriter;
     _messageParker = messageParker;
 }
Beispiel #3
0
 /// <summary>
 /// Sets the check point reader for the subscription
 /// </summary>
 /// <param name="writer"></param>
 /// <returns></returns>
 public PersistentSubscriptionParamsBuilder WithCheckpointWriter(IPersistentSubscriptionCheckpointWriter writer)
 {
     _checkpointWriter = writer;
     return(this);
 }
 /// <summary>
 /// Sets the check point reader for the subscription
 /// </summary>
 /// <param name="writer"></param>
 /// <returns></returns>
 public PersistentSubscriptionParamsBuilder WithCheckpointWriter(IPersistentSubscriptionCheckpointWriter writer)
 {
     _checkpointWriter = writer;
     return this;
 }
Beispiel #5
0
 WithCheckpointWriter(IPersistentSubscriptionCheckpointWriter writer)
 {
     _checkpointWriter = writer;
     return(this);
 }