Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
 public TResponse RunQuery <TQuery, TResponse>(TQuery query)
 {
     return(_runEnvironment.RunQuery <TQuery, TResponse>(query));
 }