public async void DispatchCommand(object command) { var handler = _componentContext.GetCommandHandlerFor(command); try { _logger.Information($"Running command {command.GetType()}"); var result = await handler.HandleAsync(command); _logger.Information($"Success: {result.Success}"); } catch (Exception e) { _logger.Error("encountered handler-level exception", e); } }