コード例 #1
0
        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;
        }
コード例 #2
0
ファイル: RhetosService.svc.cs プロジェクト: koav/Rhetos
        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;
        }