Beispiel #1
0
        private async Task ProcessCommandAsync(
            InternalCommandDto internalCommand)
        {
            Type    type             = Assemblies.Application.GetType(internalCommand.Type);
            dynamic commandToProcess = JsonConvert.DeserializeObject(internalCommand.Data, type);

            await CommandsExecutor.ExecuteAsync(commandToProcess);
        }
Beispiel #2
0
 public async Task Execute(IJobExecutionContext context)
 {
     await CommandsExecutor.ExecuteAsync(new ProcessOutboxCommand());
 }
Beispiel #3
0
 public async Task ExecuteCommandAsync(ICommand command)
 {
     await CommandsExecutor.ExecuteAsync(command);
 }
Beispiel #4
0
 public async Task <TResult> ExecuteCommandAsync <TResult>(ICommand <TResult> command)
 {
     return(await CommandsExecutor.ExecuteAsync(command));
 }