httpcontext
HttpContext at Handler
For protect download files purposing I created http handler liket this: public void ProcessRequest(HttpContext context)[详细]
2023-01-13 09:48 分类:问答How can I fake HttpContext for unit tests?
I need to fake HttpContext.Current.Application table in order to access it from my unit tests. I need to store my data somewhere. I thought that I can just pass instance of NameValueCollectionBase b[详细]
2023-01-12 03:37 分类:问答Accessing controller method from ResultExecutingContext in ASP.NET MVC site
I\'m writing an attribute where I want to access a method on the class that the controller that has the attribute on one of its actions derives from. That\'s quite a mouthful, so let me explain:[详细]
2023-01-11 00:33 分类:问答WCF service with HttpContext
I had a web service which I converted to wcf service with the same asmx extension. I have basicHttpbinding since my service talks to various clients like java, perl etc.[详细]
2023-01-10 09:50 分类:问答How does HttpContext.Current work?
This is kind of a hard question to formulate. I\'m wondering how HttpContext.Current gets assigned a unique instance for every request considering 开发者_开发百科it\'s a static object?[详细]
2023-01-10 04:31 分类:问答ASP.NET - Get website's URL without HttpContext.Current (running in background thread)
Bit of a long shot, but is there a way in ASP.NET to dynamically get the website\'s URL (http://www.example.com) when there is no HttpContext.Current available.[详细]
2023-01-09 21:24 分类:问答Using httpcontext in unit test
I\'m using C#4.0 and i need to unit test a service. The function inside the service returns a path similar to the variable i called expected, this is the path i\'m expecting to get back. But when i ru[详细]
2023-01-07 14:11 分类:问答Can I render html from ASP.NET Page objects outside ASP.NET applications?
I\'m not talking about hosting ASP.NET with the \'ApplicationHost\' class. For example, if I create a Console application, create a valid HttpContext object and pass it to the ProcessRequest of a cust[详细]
2023-01-05 05:45 分类:问答IHttpModule Init not fired
I have got problem with contextInfo [WebMethod] [SoapHeader(\"UserInfo\", Direction = SoapHeaderDirection.In)][详细]
2023-01-04 00:50 分类:问答Weird problem: IE8 user can't authenticate with web service
I have an asp.net app. It has a page that requires authentication. The authenticated user can view the page because he/she is authenticated. The page makes a jQuery Ajax call to a WCF service. The WCF[详细]
2023-01-02 11:28 分类:问答