すべてのルートが呼び出された後にモデルを変更できるAfterRequest
イベント ハンドラーを myに追加したいと考えています。これは可能ですか?モデルにアクセスできるプロパティが Response に表示されません (存在する場合)。Bootstrapper.cs
Response
これが私の使用例です(からBootstrapper.cs
):
protected override void ApplicationStartup(..., IPipelines pipelines)
{
...
pipelines.AfterRequest += ModifyModel;
}
private void ModifyModel(NancyContext ctx)
{
// do things to the response model here
}