Exemplo n.º 1
0
 public Engine(TModel model, ICommandSubscriptionSource subscriptionSource, ICommandLogger commandLogger, ulong version)
 {
     _kernel                    = new Kernel(model, version);
     _commandLogger             = commandLogger;
     _commandLoggedSubscription = subscriptionSource.Subscribe(version + 1, ApplyCommand);
     _pendingLocalCommands      = new ConcurrentDictionary <Guid, object>();
 }
Exemplo n.º 2
0
 public CommandBus(
     ICommandLogger logger,
     IExceptionDialogService dialogService)
 {
     _logger        = logger;
     _dialogService = dialogService;
 }
Exemplo n.º 3
0
 public LoggingCommandHandlerDecorator(
     ICommandHandlerAsync <T> decoratedCommandHandler,
     ICommandLogger commandLogger)
 {
     _decoratedCommandHandler = decoratedCommandHandler;
     _commandLogger           = commandLogger;
 }
Exemplo n.º 4
0
 public CommandContext(ICommandLogger logger,
                         ICommandParameters parameters,
                         ICommand command)
 {
     this.Logger = logger;
     this.Parameters = parameters;
     this.Command = command;
 }
Exemplo n.º 5
0
 public record Databases(
     IUserRepo UserRepo,
     IBadgeRepo BadgeRepo,
     IBank <User> PokeyenBank,
     IBank <User> TokensBank,
     ICommandLogger CommandLogger,
     IMessagequeueRepo MessagequeueRepo,
     IMessagelogRepo MessagelogRepo
     );
Exemplo n.º 6
0
 public CommandProcessor(
     ILogger <CommandProcessor> logger,
     ICommandLogger commandLogger,
     ArgsParser argsParser)
 {
     _logger        = logger;
     _commandLogger = commandLogger;
     _argsParser    = argsParser;
 }
Exemplo n.º 7
0
 public record Databases(
     IUserRepo UserRepo,
     IPollRepo PollRepo,
     IBadgeRepo BadgeRepo,
     IBank <User> PokeyenBank,
     IBank <User> TokensBank,
     ICommandLogger CommandLogger,
     IMessagequeueRepo MessagequeueRepo,
     IMessagelogRepo MessagelogRepo,
     ILinkedAccountRepo LinkedAccountRepo,
     ISubscriptionLogRepo SubscriptionLogRepo,
     IModLogRepo ModLogRepo,
     IResponseCommandRepo ResponseCommandRepo
     );
 /// <summary>C-tor.</summary>
 public DefaultCommandLoggingInterceptor(ICommandLogger commandLogger)
 {
     _commandLogger = commandLogger;
 }
 /// <summary>C-tor.</summary>
 /// <param name="defaultLogger">Command logger for default logging.</param>
 /// <param name="customLoggingActionsMap">Custom logging actions map.</param>
 public CustomCommandLoggingInterceptor(ICommandLogger defaultLogger, Dictionary <Type, CommandLoggingDelegate> customLoggingActionsMap)
 {
     _defaultLogger           = defaultLogger;
     _customLoggingActionsMap = customLoggingActionsMap ?? throw new ArgumentNullException(nameof(customLoggingActionsMap));
 }
Exemplo n.º 10
0
 public static int ExecuteAndLogNonQuery(this NpgsqlCommand command, ICommandLogger logger)
 {
     return(logger.ExecuteAndLog(command));
 }
Exemplo n.º 11
0
 public DirectoryScanner(ICommandLogger logger, IAppConfiguration config, IDependencyExtractor extractor)
 {
     _logger    = logger;
     _config    = config;
     _extractor = extractor;
 }
 public EventLogger(PortugalVillasContext dbContext, ICommandLogger commandLogger)
 {
     _commandLogger = commandLogger;
     _dbContext     = dbContext;
 }
 public EventLogger(PortugalVillasContext dbContext, ICommandLogger commandLogger)
 {
     _commandLogger = commandLogger;
     _dbContext = dbContext;
 }