public RedisCommandHandlerPlugin_Testing( CommandHandlerDelegates <TRequestDto, TEntity, TOut> commandHandlerDelegates, ILifetimeScope scope, IDelegateContext redisContext ) { _scope = scope; _redisContext = redisContext; _commandHandlerDelegates = commandHandlerDelegates; }
public RedisCommandHandlerPlugin( CommandHandlerDelegates <TRequestDto, TEntity, TOut> commandHandlerDelegates, ILifetimeScope scope, IDelegateContext redisContext ) { _scope = scope; _redisContext = redisContext; _commandHandlerDelegates = commandHandlerDelegates; _commandHandlerDelegates.AfterExecute += Delete; }
public EntityAuditCommandHandlerPlugin( IEntityAuditFactory auditFactory, CommandHandlerDelegates <TRequestDto, TEntity, TOut> commandHandlerDelegates, ILifetimeScope scope, IApplicationUserContext applicationUserContext, IConfiguration configuration ) { _scope = scope; _applicationUserContext = applicationUserContext; _configuration = configuration; _auditFactory = auditFactory; _commandHandlerDelegates = commandHandlerDelegates; _commandHandlerDelegates.BeforeExecute += AuditGetEntity; _commandHandlerDelegates.AfterExecute += AuditExecute; _commandHandlerDelegates.AfterExecute += CompleteAudit; }