public TResponse RunQuery <TQuery, TResponse>(TQuery query) { try { _logger.LogInformation( $"{typeof(TQuery).FullName} serialized query input: {JsonSerializer.Serialize(query)}"); return(_runEnvironment.RunQuery <TQuery, TResponse>(query)); } catch (Exception e) { _logger.LogError(e, $"An error occurred while executing {typeof(TQuery).FullName}, serialized input command: {JsonSerializer.Serialize(query)}"); throw; } }
public TResponse RunQuery <TQuery, TResponse>(TQuery query) { return(_runEnvironment.RunQuery <TQuery, TResponse>(query)); }