public WebAPI_AuthenticationPersistenceService(
     ISessionCacheService sessionCacheService,
     IHttpContextAccessor httpContextAccessor,
     ICookieManager cookieManager,
     ILoggerFactory loggerFactory
     ) : base(loggerFactory)
 {
     this.HttpContextAccessor = httpContextAccessor;
     this.SessionCacheService = sessionCacheService;
     this.CookieManager       = cookieManager;
 }
Exemplo n.º 2
0
        public MessangerHubService(IConnectionCacheService connectionCacheService,
                                   ISessionCacheService sessionCacheService,
                                   IMessangerService messangerService,
                                   IBrockerService brockerService,
                                   IUserProvider userProvider,
                                   ISessionProvider sessionProvider,
                                   ILoggerFactory loggerFactory)
        {
            this.messangerService       = messangerService;
            this.connectionCacheService = connectionCacheService;
            this.sessionCacheService    = sessionCacheService;

            this.userProvider    = userProvider;
            this.sessionProvider = sessionProvider;

            this.brockerService = brockerService;

            this.logger = loggerFactory.CreateLogger <MessangerHubService>();
        }
Exemplo n.º 3
0
        public MessangerCryptor(
            IServiceProvider serviceProvider,
            IAesCipher aes,
            IRsaCypher rsa,
            ISessionCacheService sessionCacheService,
            ICypherProvider cypherProvider,
            ISessionProvider sessionProvider,
            IStrongKeyProvider strongKeyProvider)
        {
            this.serviceProvider = serviceProvider;

            this.aes = aes;
            this.rsa = rsa;

            this.sessionCacheService = sessionCacheService;
            this.cypherProvider      = cypherProvider;
            this.strongKeyProvider   = strongKeyProvider;
            this.sessionProvider     = sessionProvider;
        }
 public MembershipService(
     IAppCacheService appCacheService,
     ISessionCacheService sessionCacheService,
     IAuthorizationProcessor authorizationProcessor,
     IUserService userService,
     IFileProvider fileProvider,
     IAuthenticationPersistenceService authenticationPersistenceService,
     IHttpContextAccessor httpContextAccessor,
     IOptions <AppSettings> appSettings,
     ILoggerFactory loggerFactory
     ) : base(_auditing, loggerFactory)
 {
     this.AppCacheManager = appCacheService;
     this.FileProvider    = fileProvider;
     this.SessionManager  = sessionCacheService;
     this.UserService     = userService;
     this.AppSettings     = appSettings;
     this.AuthenticationPersistenceService = authenticationPersistenceService;
     this.AuthorizationProcessor           = authorizationProcessor;
     this.HttpContextAccessor = httpContextAccessor;
 }
Exemplo n.º 5
0
 public SessionService(ISessionProvider sessionProvider,
                       ITransactionProvider transactionProvider,
                       IRsaCypher rsaCypher,
                       UserManager <User> userManager,
                       RoleManager <IdentityRole> roleManager,
                       IStrongKeyProvider strongKeyProvider,
                       ICypherProvider cypherProvider,
                       IAesCipher aesCypher,
                       ISessionCacheService sessionCacheService,
                       ProcessingProvider processingProvider)
 {
     this.transactionProvider = transactionProvider;
     this.sessionProvider     = sessionProvider;
     this.rsaCypher           = rsaCypher;
     this.roleManager         = roleManager;
     this.userManager         = userManager;
     this.strongKeyProvider   = strongKeyProvider;
     this.cypherProvider      = cypherProvider;
     this.aesCypher           = aesCypher;
     this.sessionCacheService = sessionCacheService;
     this.processingProvider  = processingProvider;
 }
Exemplo n.º 6
0
 public IdentityCacheService(ISessionCacheService sessionCacheService, IServerConfigurationProvider configurationProvider, IIdentityService identityService)
 {
     this.sessionCacheService   = sessionCacheService;
     this.configurationProvider = configurationProvider;
     this.identityService       = identityService;
 }
Exemplo n.º 7
0
 public CachedIdentityRoleService(ISessionCacheService sessionCacheService, IServerConfigurationProvider configurationProvider, IdentityRoleService roleService)
 {
     this.sessionCacheService   = sessionCacheService;
     this.configurationProvider = configurationProvider;
     this.roleService           = roleService;
 }
 public GraceSessionService(ISessionCacheService sessionCacheService)
 {
     _sessionCacheService = sessionCacheService;
 }