次のようなサービス呼び出しを持つ ServiceStack Service があります。
public class MyService : Service
{
public object Get(MyServiceRequest request)
{
using (Profiler.Current.Step("Getting Data"))
{
// code that gets data
using (Profiler.Current.Step("Doing work with data"))
{
// code that does work
}
}
return response;
}
}
および global.asax.cs は次のようになります。
public class Global : System.Web.HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
{
new AppHost().Init();
}
protected void Application_BeginRequest(object sender, EventArgs e)
{
if (Request.IsLocal)
Profiler.Start();
}
protected void Application_EndRequest(object sender, EventArgs e)
{
Profiler.Stop();
}
}
私の問題は、ブラウザを介してサービス呼び出しをテストすると、リクエスト全体のプロファイル情報しか表示されないことです。「子供たちとの時間を見せる」と「些細なことを見せる」では、これ以上詳細な情報は提供されません。using
また、各ステートメント内にブレークポイントを配置して、各ステートメントのプロパティを確認しProfiler.Current
、そのChildren
プロパティが null であることを確認しました。私はそれを間違っていますか?これをトラブルシューティングするために他にできることはありますか?