示例#1
0
 public PrincipalManagmentService(IRepositoryService repositoryService,
                                  IOperationContextService operationContextService,
                                  IAzureRedisCacheService azureRedisCacheService)
 {
     this._repositoryService  = repositoryService;
     _operationContextService = operationContextService;
     _azureRedisCacheService  = azureRedisCacheService;
 }
示例#2
0
 public SessionService(IRepositoryService repositoryService,
                       IOperationContextService operationContextService,
                       IAzureRedisCacheService azureRedisCacheService)
 {
     this._repositoryService  = repositoryService;
     _operationContextService = operationContextService;
     _azureRedisCacheService  = azureRedisCacheService;
 }
 public AzureRedisCacheService(IOperationContextService operationContextService, IAzureRedisConnection azureRedisConnection)
 {
     this._operationContextService = operationContextService;
     if (azureRedisConnection.Enabled)
     {
         _redisContext = new Lazy <RedisContext>(() => new RedisContext(azureRedisConnection.ConnectionMultiplexer));
     }
     //To make this library's context:
 }
示例#4
0
        public TenantService(IOperationContextService operationContextService, IPrincipalService principalService,
                             IAzureRedisCacheService azureRedisCacheService, IRepositoryService repositoryService,
                             IAppHostNamesService appHostNamesService)
        {
            this._operationContextService = operationContextService;
            this._principalService        = principalService;

            this._azureRedisCacheService = azureRedisCacheService;
            this._repositoryService      = repositoryService;
            this._hostNamesService       = appHostNamesService;
            _id = Guid.NewGuid();
        }