コード例 #1
0
 public SynchronizationTopologyInitializer(IStatesRepository statesRepository, INodesDataService nodesDataService, ILoggerService loggerService)
 {
     _synchronizationGroupState     = statesRepository.GetInstance <ISynchronizationGroupState>();
     _syncRegistryNeighborhoodState = statesRepository.GetInstance <ISyncRegistryNeighborhoodState>();
     _nodesDataService = nodesDataService;
     _logger           = loggerService.GetLogger(nameof(SynchronizationTopologyInitializer));
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public ShardsManager(IStatesRepository statesRepository, INodesDataService nodesDataService)
 {
     _synchronizationContext         = statesRepository.GetInstance <ISynchronizationContext>();
     _syncContextChangedUnsibscriber = _synchronizationContext.SubscribeOnStateChange(new ActionBlock <string>((Action <string>)OnSyncContextChanged));
     _nodesDataService = nodesDataService;
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 public RegistryTopologyInitializer(IStatesRepository statesRepository, INodesDataService nodesDataService, ILoggerService loggerService)
 {
     _registryGroupState = statesRepository.GetInstance <IRegistryGroupState>();
     _nodesDataService   = nodesDataService;
     _logger             = loggerService.GetLogger(nameof(RegistryTopologyInitializer));
 }
コード例 #6
0
 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)
 {
 }
コード例 #7
0
 public NodesResolutionService(INodesDataService nodesDataService)
 {
     _nodesDataService          = nodesDataService;
     _nodeAddresses             = new ConcurrentDictionary <IKey, NodeAddress>();
     _storageLayerNodeAddresses = new ConcurrentDictionary <IKey, NodeAddress>();
 }
コード例 #8
0
 public CommonTopologyInitializer(IStatesRepository statesRepository, INodesDataService nodesDataService, ILoggerService loggerService)
 {
     _neighborhoodState = statesRepository.GetInstance <INeighborhoodState>();
     _nodesDataService  = nodesDataService;
     _logger            = loggerService.GetLogger(nameof(CommonTopologyInitializer));
 }
コード例 #9
0
 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>();
 }
コード例 #10
0
 public TransactionalChainRatingContributionProvider(IChainDataServicesManager chainDataServicesManager, INodesDataService nodesDataService)
 {
     _chainDataService = chainDataServicesManager.GetChainDataService(PacketType.Transactional);
     _nodesDataService = nodesDataService;
     _topNodeKeys      = new List <IKey>();
 }