Exemple #1
0
        public BiometricController(IFacesService facesService,
                                   IConfigurationService configurationService,
                                   IDataAccessService externalDataAccessService,
                                   IAssetsService assetsService,
                                   ILoggerService loggerService,
                                   IInherenceServicesManager inherenceServicesManager)
        {
            if (configurationService is null)
            {
                throw new ArgumentNullException(nameof(configurationService));
            }

            if (inherenceServicesManager is null)
            {
                throw new ArgumentNullException(nameof(inherenceServicesManager));
            }

            _facesService = facesService ?? throw new ArgumentNullException(nameof(facesService));
            _facesService.Initialize();
            _dataAccessService   = externalDataAccessService;
            _assetsService       = assetsService;
            _logger              = loggerService.GetLogger(nameof(BiometricController));
            _portalConfiguration = configurationService.Get <IPortalConfiguration>();
            _inherenceService    = inherenceServicesManager.GetInstance(O10InherenceService.NAME);
        }
Exemple #2
0
 public BiometricController(IFacesService facesService, IConfigurationService configurationService, IDataAccessService externalDataAccessService, IAssetsService assetsService)
 {
     _facesService = facesService;
     _facesService.Initialize();
     _dataAccessService   = externalDataAccessService;
     _assetsService       = assetsService;
     _portalConfiguration = configurationService.Get <IPortalConfiguration>();
 }
Exemple #3
0
        public override void Initialize()
        {
            base.Initialize();

            IGatewayService      gatewayService = ServiceLocator.Current.GetInstance <IGatewayService>();
            IPortalConfiguration configuration  = ServiceLocator.Current.GetInstance <IConfigurationService>().Get <IPortalConfiguration>();

            gatewayService.Initialize(configuration.GatewayUri, _cancellationToken);
        }
Exemple #4
0
 public UserController(IDocumentSignatureVerifier documentSignatureVerifier, IAccountsService accountsService, IExecutionContextManager executionContextManager, IAssetsService assetsService, IIdentityAttributesService identityAttributesService, IDataAccessService externalDataAccessService, IGatewayService gatewayService, IConfigurationService configurationService, IHubContext <IdentitiesHub> idenitiesHubContext)
 {
     _documentSignatureVerifier = documentSignatureVerifier;
     _accountsService           = accountsService;
     _executionContextManager   = executionContextManager;
     _assetsService             = assetsService;
     _identityAttributesService = identityAttributesService;
     _dataAccessService         = externalDataAccessService;
     _gatewayService            = gatewayService;
     _idenitiesHubContext       = idenitiesHubContext;
     _portalConfiguration       = configurationService.Get <IPortalConfiguration>();
 }
        public O10InherenceService(IDataAccessService dataAccessService,
                                   IAccountsService accountsService,
                                   IConfigurationService configurationService,
                                   ISpValidationsService spValidationsService,
                                   IExecutionContextManager executionContextManager,
                                   IUniversalProofsPool universalProofsPool,
                                   IIdentityKeyProvidersRegistry identityKeyProvidersRegistry,
                                   IHubContext <O10InherenceHub> o10InherenceHubContext,
                                   ILoggerService loggerService)
        {
            _sessions               = new ConcurrentDictionary <string, TaskCompletionSource <InherenceData> >();
            _dataAccessService      = dataAccessService;
            _accountsService        = accountsService;
            _spValidationsService   = spValidationsService;
            _o10InherenceHubContext = o10InherenceHubContext;
            _portalConfiguration    = configurationService.Get <IPortalConfiguration>();
            _azureConfiguration     = configurationService.Get <IAzureConfiguration>();
            _logger = loggerService.GetLogger(nameof(O10InherenceService));
            _executionContextManager = executionContextManager;
            _universalProofsPool     = universalProofsPool;
            _identityKeyProvider     = identityKeyProvidersRegistry.GetInstance();
            PipeIn = new ActionBlock <PacketBase>(
                async p =>
            {
                try
                {
                    if (p is IdentityProofs identityProofs)
                    {
                        ProcessIdentityProofs(identityProofs);
                    }
                    else if (p is UniversalTransport universalTransport)
                    {
                        await ProcessUniversalTransport(universalTransport).ConfigureAwait(false);
                    }
                }
                catch
                {
                    _logger.Error("Unexpected exception at PipeIn");
                }
            });

            PipInNotifications = new ActionBlock <SynchronizerNotificationBase>(n =>
            {
            });
        }
Exemple #6
0
 public IdentityProviderController(
     IExecutionContextManager executionContextManager,
     IAssetsService assetsService,
     IDataAccessService dataAccessService,
     IDataAccessService externalDataAccessService,
     IIdentityAttributesService identityAttributesService,
     IFacesService facesService,
     IAccountsService accountsService,
     IConfigurationService configurationService,
     IHubContext <IdentitiesHub> hubContext)
 {
     _dataAccessService         = dataAccessService;
     _executionContextManager   = executionContextManager;
     _assetsService             = assetsService;
     _externalDataAccessService = externalDataAccessService;
     _identityAttributesService = identityAttributesService;
     _accountsService           = accountsService;
     _hubContext          = hubContext;
     _portalConfiguration = configurationService.Get <IPortalConfiguration>();
 }