我在我的asp.net Web API项目中使用了mini profiler,并希望跟踪在自定义DelegatingHandler中运行的一些代码的性能。DelegatingHandler中的MiniProfiler.Current.Step()调用不会显示在结果中。同一项目中的其他调用都可以正常显示。进一步的研究表明,MiniProfiler.Current是从WebRequestProfilerProvider中的HttpContext.Current中检索出来的。从DelegatingHandler
我在一个SharePoint 2010 Visual Studio空项目中开发了一个自定义的WCF Web服务。我在网上浏览了一下,发现MaxReceivedMessageSize设置可能是我的解决方案。我曾尝试使用FeatureActivated方法通过以下请求设置此信息:
// increase maximum size of requests to this web service: http://msdn.microsoft