示例#1
0
        public PollingClient(IPersistence store, long lastPosition, ISubscription subscription, INStoreLoggerFactory inStoreLoggerFactory)
        {
            this._logger = inStoreLoggerFactory.CreateLogger(GetType().FullName);

            _sequencer = new Sequencer(lastPosition, subscription, _logger);
            _store     = store;
            PollingIntervalMilliseconds = 200;
            HoleDetectionTimeout        = 2000;
        }
示例#2
0
 public LogDecorator(IPersistence persistence, INStoreLoggerFactory inStoreLoggerFactory)
 {
     _persistence = persistence;
     _logger      = inStoreLoggerFactory.CreateLogger("Persistence");
 }
示例#3
0
 public LogDecorator(IPersistence persistence, INStoreLoggerFactory inStoreLoggerFactory, string categoryName = "Persistence")
 {
     _persistence = persistence;
     _logger      = inStoreLoggerFactory.CreateLogger(categoryName);
 }