public DefaultPeerBehaviorManager(ILogger <DefaultPeerBehaviorManager> logger,
                                   IEventBus eventBus,
                                   IStatisticFeedsCollector statisticFeedsCollector,
                                   IOptions <ForgeConnectivitySettings> connectivityOptions,
                                   IPeerAddressBook peerAddressBook)
 {
     _logger   = logger;
     _eventBus = eventBus;
     _statisticFeedsCollector = statisticFeedsCollector;
     _connectivitySettings    = connectivityOptions.Value;
     _peerAddressBook         = peerAddressBook;
 }
예제 #2
0
 public BannedPeerGuard(ILogger <BannedPeerGuard> logger, IOptions <ForgeConnectivitySettings> settings, IPeerAddressBook peerAddressBook) : base(logger, settings)
 {
     _peerAddressBook = peerAddressBook;
 }