示例#1
0
 public CryptCacheService(IBaseRedisProvider redisProvider,
                          IRedisPublisher redisPublisher,
                          IStrongKeyProvider strongKeyProvider,
                          ILoggerFactory loggerFactory) : base(redisProvider, redisPublisher)
 {
     this.strongKeyProvider = strongKeyProvider;
     this.logger            = loggerFactory.CreateLogger <CryptCacheService>();
 }
 public StandartCryptor(
     IStrongKeyProvider strongKeyProvider,
     IAesCipher aes
     )
 {
     this.strongKeyProvider = strongKeyProvider;
     this.aes = aes;
 }
示例#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 MessangerService(
     IUserProvider userProvider,
     ICypherProvider cypherProvider,
     IMessageProvider messageProvider,
     IDialogProvider dialogProvider,
     IStrongKeyProvider strongKeyProvider,
     IMessangerCryptor messangerCryptor,
     IConnectionCacheService connectionCacheService,
     ILoggerFactory loggerFactory
     )
 {
     this.userProvider           = userProvider;
     this.cypherProvider         = cypherProvider;
     this.messangerCryptor       = messangerCryptor;
     this.messageProvider        = messageProvider;
     this.logger                 = loggerFactory.CreateLogger <MessangerService>();
     this.strongKeyProvider      = strongKeyProvider;
     this.dialogProvider         = dialogProvider;
     this.connectionCacheService = connectionCacheService;
 }
示例#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;
 }