public ServerProcessingResult Execute(ServerCommandInfo[] commands) { var stopwatch = Stopwatch.StartNew(); var result = ExecuteInner(commands); _performanceLogger.Write(stopwatch, "RhetosService: Executed " + string.Join(",", commands.Select(c => c.CommandName)) + "."); return result; }
public ServerProcessingResult Execute(ServerCommandInfo[] commands) { var stopwatch = Stopwatch.StartNew(); var serverCallID = Guid.NewGuid(); _commandsLogger.Trace(() => XmlUtility.SerializeServerCallInfoToXml(commands, serverCallID)); var result = ExecuteInner(commands); _commandResultsLogger.Trace(() => XmlUtility.SerializeServerCallInfoToXml(result, serverCallID)); _performanceLogger.Write(stopwatch, "RhetosService: Executed " + string.Join(",", commands.Select(c => c.CommandName)) + "."); return result; }