首先开篇引用《MVC22inaction》里面一段关于这个跟踪服务的话WhenyoucalledTrace.Write()inWebForms,youwereinteractingwiththeTrace-Contextclass.ThisexistsonyourViewPageinASP.NETMVC,butthisisn'twhereyouwouldwanttowritetracingstatements.Bythetimeyou'vepassedthebatonovertotheview...
查看全文