public SynchronizationTopologyInitializer(IStatesRepository statesRepository, INodesDataService nodesDataService, ILoggerService loggerService) { _synchronizationGroupState = statesRepository.GetInstance <ISynchronizationGroupState>(); _syncRegistryNeighborhoodState = statesRepository.GetInstance <ISyncRegistryNeighborhoodState>(); _nodesDataService = nodesDataService; _logger = loggerService.GetLogger(nameof(SynchronizationTopologyInitializer)); }
public LoadModuleBase(ILoggerService loggerService, IClientCommunicationServiceRepository clientCommunicationServiceRepository, IConfigurationService configurationService, IIdentityKeyProvidersRegistry identityKeyProvidersRegistry, ISerializersFactory signatureSupportSerializersFactory, INodesDataService nodesDataService, ICryptoService cryptoService, IPerformanceCountersRepository performanceCountersRepository, IHashCalculationsRepository hashCalculationRepository) : base(loggerService) { _communicationService = clientCommunicationServiceRepository.GetInstance(nameof(TcpClientCommunicationService)); _configurationService = configurationService; _signatureSupportSerializersFactory = signatureSupportSerializersFactory; _nodesDataService = nodesDataService; _cryptoService = cryptoService; _identityKeyProvider = identityKeyProvidersRegistry.GetInstance(); _loadCountersService = performanceCountersRepository.GetInstance <LoadCountersService>(); _hashCalculation = hashCalculationRepository.Create(Globals.DEFAULT_HASH); _proofOfWorkCalculation = hashCalculationRepository.Create(Globals.POW_TYPE); }
public ShardsManager(IStatesRepository statesRepository, INodesDataService nodesDataService) { _synchronizationContext = statesRepository.GetInstance <ISynchronizationContext>(); _syncContextChangedUnsibscriber = _synchronizationContext.SubscribeOnStateChange(new ActionBlock <string>((Action <string>)OnSyncContextChanged)); _nodesDataService = nodesDataService; }
public TransactionRegistrationLoadModule(ILoggerService loggerService, IClientCommunicationServiceRepository clientCommunicationServiceRepository, IConfigurationService configurationService, IIdentityKeyProvidersRegistry identityKeyProvidersRegistry, ISerializersFactory signatureSupportSerializersFactory, INodesDataService nodesDataService, ISigningService cryptoService, IPerformanceCountersRepository performanceCountersRepository, IStatesRepository statesRepository, IHashCalculationsRepository proofOfWorkCalculationRepository, IHashCalculationsRepository hashCalculationRepository) : base(loggerService, clientCommunicationServiceRepository, configurationService, identityKeyProvidersRegistry, signatureSupportSerializersFactory, nodesDataService, cryptoService, performanceCountersRepository, hashCalculationRepository) { _synchronizationContext = statesRepository.GetInstance <ISynchronizationContext>(); _proofOfWorkCalculation = proofOfWorkCalculationRepository.Create(Globals.POW_TYPE); }
public RegistryTopologyInitializer(IStatesRepository statesRepository, INodesDataService nodesDataService, ILoggerService loggerService) { _registryGroupState = statesRepository.GetInstance <IRegistryGroupState>(); _nodesDataService = nodesDataService; _logger = loggerService.GetLogger(nameof(RegistryTopologyInitializer)); }
public RegisterAssetIdsModule(ILoggerService loggerService, IClientCommunicationServiceRepository clientCommunicationServiceRepository, IConfigurationService configurationService, IIdentityKeyProvidersRegistry identityKeyProvidersRegistry, ISerializersFactory signatureSupportSerializersFactory, INodesDataService nodesDataService, ICryptoService cryptoService, IPerformanceCountersRepository performanceCountersRepository, IHashCalculationsRepository hashCalculationRepository) : base(loggerService, clientCommunicationServiceRepository, configurationService, identityKeyProvidersRegistry, signatureSupportSerializersFactory, nodesDataService, cryptoService, performanceCountersRepository, hashCalculationRepository) { }
public NodesResolutionService(INodesDataService nodesDataService) { _nodesDataService = nodesDataService; _nodeAddresses = new ConcurrentDictionary <IKey, NodeAddress>(); _storageLayerNodeAddresses = new ConcurrentDictionary <IKey, NodeAddress>(); }
public CommonTopologyInitializer(IStatesRepository statesRepository, INodesDataService nodesDataService, ILoggerService loggerService) { _neighborhoodState = statesRepository.GetInstance <INeighborhoodState>(); _nodesDataService = nodesDataService; _logger = loggerService.GetLogger(nameof(CommonTopologyInitializer)); }
public SyncConfirmedSingleModule(ILoggerService loggerService, IClientCommunicationServiceRepository clientCommunicationServiceRepository, IConfigurationService configurationService, IIdentityKeyProvidersRegistry identityKeyProvidersRegistry, ISerializersFactory signatureSupportSerializersFactory, INodesDataService nodesDataService, ICryptoService cryptoService, IPerformanceCountersRepository performanceCountersRepository, IStatesRepository statesRepository, IHashCalculationsRepository hashCalculationRepository) : base(loggerService, clientCommunicationServiceRepository, configurationService, identityKeyProvidersRegistry, signatureSupportSerializersFactory, nodesDataService, cryptoService, performanceCountersRepository, hashCalculationRepository) { _synchronizationContext = statesRepository.GetInstance <ISynchronizationContext>(); }
public TransactionalChainRatingContributionProvider(IChainDataServicesManager chainDataServicesManager, INodesDataService nodesDataService) { _chainDataService = chainDataServicesManager.GetChainDataService(PacketType.Transactional); _nodesDataService = nodesDataService; _topNodeKeys = new List <IKey>(); }