コード例 #1
0
 public PeerBanning(IConnectionManager connectionManager, ILoggerFactory loggerFactory, IDateTimeProvider dateTimeProvider, NodeSettings nodeSettings)//, IBanStore banStore)
 {
     this.logger                    = loggerFactory.CreateLogger(this.GetType().FullName);
     this.connectionManager         = connectionManager;
     this.banStore                  = new MemoryBanStore();// banStore;
     this.dateTimeProvider          = dateTimeProvider;
     this.connectionManagerSettings = nodeSettings.ConnectionManager;
 }
コード例 #2
0
        public PeerBanning(IConnectionManager connectionManager, ILoggerFactory loggerFactory, IDateTimeProvider dateTimeProvider, NodeSettings nodeSettings)//, IBanStore banStore)
        {
            this.logger            = loggerFactory.CreateLogger(this.GetType().FullName);
            this.connectionManager = connectionManager;
            this.dateTimeProvider  = dateTimeProvider;

            // TODO: MemoryBanStore should be replaced with the address manager store
            this.banStore = new MemoryBanStore();
        }