Exemple #1
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);
 }
Exemple #2
0
 public SimulationLoadInitializer(IPerformanceCountersRepository performanceCountersRepository)
 {
     _loadCountersService = performanceCountersRepository.GetInstance <LoadCountersService>();
 }