public RedisQueryHandlerPlugin_Testing(
     QueryHandlerDelegates <TRequestDto, TEntity, TOut> queryHandlerDelegates,
     IDelegateContext redisContext
     )
 {
     _redisContext          = redisContext;
     _queryHandlerDelegates = queryHandlerDelegates;
 }
 public RedisQueryHandlerPlugin(
     QueryHandlerDelegates <TRequestDto, TEntity, TOut> queryHandlerDelegates,
     IDelegateContext redisContext
     )
 {
     _redisContext          = redisContext;
     _queryHandlerDelegates = queryHandlerDelegates;
     _queryHandlerDelegates.BeforeGetEntity += Get;
     _queryHandlerDelegates.AfterExecute    += Set;
 }
Exemple #3
0
 public RedisCommandHandlerPlugin_Testing(
     CommandHandlerDelegates <TRequestDto, TEntity, TOut> commandHandlerDelegates,
     ILifetimeScope scope,
     IDelegateContext redisContext
     )
 {
     _scope                   = scope;
     _redisContext            = redisContext;
     _commandHandlerDelegates = commandHandlerDelegates;
 }
Exemple #4
0
 public RedisCommandHandlerPlugin(
     CommandHandlerDelegates <TRequestDto, TEntity, TOut> commandHandlerDelegates,
     ILifetimeScope scope,
     IDelegateContext redisContext
     )
 {
     _scope                   = scope;
     _redisContext            = redisContext;
     _commandHandlerDelegates = commandHandlerDelegates;
     _commandHandlerDelegates.AfterExecute += Delete;
 }
Exemple #5
0
 public GetLeadWorkerHandler(IMapper mapper,
                             IApplicationUserContext applicationUserContext,
                             IReadOnlyRepository repository,
                             IWorkerContext <GetLeadResponse> context,
                             IDelegateContext redisContext,
                             ILifetimeScope scope
                             )
     : base(mapper, repository, scope, context)
 {
     _applicationUserContext = applicationUserContext;
     _redisContext           = redisContext;
 }