private async Task ProcessCommandAsync( InternalCommandDto internalCommand) { Type type = Assemblies.Application.GetType(internalCommand.Type); dynamic commandToProcess = JsonConvert.DeserializeObject(internalCommand.Data, type); await CommandsExecutor.ExecuteAsync(commandToProcess); }
public async Task Execute(IJobExecutionContext context) { await CommandsExecutor.ExecuteAsync(new ProcessOutboxCommand()); }
public async Task ExecuteCommandAsync(ICommand command) { await CommandsExecutor.ExecuteAsync(command); }
public async Task <TResult> ExecuteCommandAsync <TResult>(ICommand <TResult> command) { return(await CommandsExecutor.ExecuteAsync(command)); }