English 中文(简体)
• 如何减少记忆压力,并在处理大型档案库时加以翻新。 NET?
原标题:How to reduce memory pressure and thread usage when handling a large file upload in ASP.NET?

我想做的是,把要求归档仓单按期进行处理,这样,即将提出的申请不会引起很多记忆,因此,对国际海事组织来说,处理线索不会被搁置。

I see that there is an asynchronous HTTP handler that I can implement. This looks like it would help with the thread usage, but it looks like the request has already been fully copied into memory by this point by IIS/ASPNET.

是否有办法保持伙伴关系。 NET从阅读整个申请到处理之前就使用?

最佳回答

在“NET 4”中,HttpRequest增加了一种新方法,即),使你能够同步地查阅请求。

http://msdn.microsoft.com/en-us/library/ff40679828v=VS.100%29.aspx“rel=” 最低生活水平

这种方法可以替代使用InputStream财产。 InputStream财产等到收到整个申请之后,才归还一个提炼物。 相比之下,GetBufferlessInputStream方法立即将镜子归还。 在收到该机构全部内容之前,你可以采用这种方法开始处理实体。

查阅请求的能力将载于A.NET4.5。 见。 伙伴关系中的新内容。 NET 4.5 article for more information. 它希望有几家冰圈。 NET 业绩改善情况:4.5。

问题回答

, 这里的SO问题具体涉及MVC, 答案应为ASP。 广域网。 具体来说,人们似乎在





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签