public RestrictedAppAccessAuthorisationRestriction(
     ITransactionManager transactionManager,
     ICurrentIdentityProvider currentIdentityProvider,
     IQueryRepository <Identity> identityQueryRepository)
 {
     _transactionManager      = transactionManager;
     _currentIdentityProvider = currentIdentityProvider;
     _identityQueryRepository = identityQueryRepository;
 }
 public IdentityController(
     IResourceBuilder resourceBuilder,
     IIdentityApplicationService identityApplicationService,
     ICurrentIdentityProvider currentIdentityProvider)
 {
     _resourceBuilder            = resourceBuilder;
     _identityApplicationService = identityApplicationService;
     _currentIdentityProvider    = currentIdentityProvider;
 }
Exemple #3
0
        public IdentityCacheService(
            IAppCache appCache,
            ICurrentIdentityProvider currentIdentityProvider,
            IClock clock)
        {
            _appCache = appCache;
            _currentIdentityProvider = currentIdentityProvider;

            _memoryCacheEntryOptions = new MemoryCacheEntryOptions
            {
                AbsoluteExpiration = clock.GetCurrentInstant().Plus(Duration.FromSeconds(10)).ToDateTimeOffset()
            };
        }
 public SelfIdentityProvider(
     ITransactionManager transactionManager,
     ICurrentIdentityProvider currentIdentityProvider,
     IQueryRepository <Identity> identityQueryRepository,
     IQueryRepository <User> userQueryRepository,
     ICurrentUserProvider currentUserProvider)
 {
     _transactionManager      = transactionManager;
     _currentIdentityProvider = currentIdentityProvider;
     _identityQueryRepository = identityQueryRepository;
     _userQueryRepository     = userQueryRepository;
     _currentUserProvider     = currentUserProvider;
 }