public override void RunInitializers(IServiceProvider serviceProvider, CancellationToken cancellationToken, ILogger logger) { IGatewayService gatewayService = (IGatewayService)serviceProvider.GetService(typeof(IGatewayService)); IRestApiConfiguration configuration = ((IConfigurationService)serviceProvider.GetService(typeof(IConfigurationService))).Get <IRestApiConfiguration>(); gatewayService.Initialize(configuration.GatewayUri, cancellationToken); base.RunInitializers(serviceProvider, cancellationToken, logger); }
public ServiceProvidersController( IAccountsService accountsService, IExecutionContextManager executionContextManager, IDataAccessService dataAccessService, IIdentityAttributesService identityAttributesService, IConsentManagementService consentManagementService, IHashCalculationsRepository hashCalculationsRepository, IAssetsService assetsService, IConfigurationService configurationService, ILoggerService loggerService) { _accountsService = accountsService; _executionContextManager = executionContextManager; _dataAccessService = dataAccessService; _identityAttributesService = identityAttributesService; _consentManagementService = consentManagementService; _assetsService = assetsService; _hashCalculation = hashCalculationsRepository.Create(Globals.DEFAULT_HASH); _restApiConfiguration = configurationService.Get <IRestApiConfiguration>(); _logger = loggerService.GetLogger(nameof(ServiceProvidersController)); }
public ExecutionContextManager(IServiceProvider serviceProvider, IHubContext <IdentitiesHub> identitiesHubContext, IAssetsService assetsService, IDataAccessService dataAccessService, IIdentityAttributesService identityAttributesService, IWitnessPackagesProviderRepository witnessPackagesProviderRepository, IBlockParsersRepositoriesRepository blockParsersRepositoriesRepository, IConfigurationService configurationService, IGatewayService gatewayService, ITrackingService trackingService, ILoggerService loggerService, ISpValidationsService spValidationsService, IRelationsProofsValidationService relationsProofsValidationService, ISchemeResolverService schemeResolverService, IUniversalProofsPool universalProofsPool, IExternalUpdatersRepository externalUpdatersRepository, IConsentManagementService consentManagementService) { _accountIdCancellationList = new Dictionary <long, ICollection <IDisposable> >(); _serviceProvider = serviceProvider; _identitiesHubContext = identitiesHubContext; _assetsService = assetsService; _dataAccessService = dataAccessService; _identityAttributesService = identityAttributesService; _witnessPackagesProviderRepository = witnessPackagesProviderRepository; _blockParsersRepositoriesRepository = blockParsersRepositoriesRepository; _gatewayService = gatewayService; _trackingService = trackingService; _loggerService = loggerService; _spValidationsService = spValidationsService; _logger = loggerService.GetLogger(nameof(ExecutionContextManager)); _relationsProofsValidationService = relationsProofsValidationService; _schemeResolverService = schemeResolverService; _universalProofsPool = universalProofsPool; _externalUpdatersRepository = externalUpdatersRepository; _consentManagementService = consentManagementService; _restApiConfiguration = configurationService.Get <IRestApiConfiguration>(); }