protected void AddLogCommandHandler(AddLogCommand cmd) { #if PERFORMANCE_TEST var ptest = Service.Performance.PerformanceTest.Get(); ptest.Start("AddLogCommand"); #endif _service.AddLog(cmd.debugType, cmd.message, cmd.domain); #if PERFORMANCE_TEST // now stop the watches ptest.Stop("AddLogCommand"); #endif }
public void Post([FromBody] LogDto log) { _service.AddLog(log); }