httpcontext
HttpContext in WCF
I have written a simple REST API in WCF, and the authentication mechanism uses an API key. Once the client submits the API key in the request header, I check it on the server side (in the BaseService[详细]
2023-02-09 03:23 分类:问答Access HttpContext inside WCF RequestInterceptor ProcessRequest method
I have create a WCF service using the WCF REST stater kit. I am using a RequestInterceptor to do authentication(API Key validation).Inside of the RequestInterceptor(ProcessRequest method) I want to ge[详细]
2023-02-08 07:09 分类:问答How are Threads created and managed by the HttpApplication?
How are threads created and managed by the HttpApplication in ASP.NET? What determines if an HttpContext opens a new thread or uses an existing thread?How can this be controlled?[详细]
2023-02-04 07:23 分类:问答Entity Framework ObjectContext with Dependency Injection
Well, it seems like I\'m stuck in my application structure. Here\'s what I want to do: UI layer: An ASP.NET webforms website.[详细]
2023-02-03 11:19 分类:问答Unit Test Controller with PerWebRequest LifeStyle dependency
I am trying to write a unit test for a controller that has a dependency on a type whose lifestyle is \"PerWebRequest\".[详细]
2023-02-03 01:28 分类:问答How to unit test ValueProviderFactories in ASP.NET MVC3?
We wanted to upgrade our projects from ASP.NET MVC 2 to 3. Most of our tests succeeded, but there are some that fail on ValueProviderFactories.Factories.GetValueProvider(context).[详细]
2023-02-02 20:10 分类:问答Abstracting HttpContext Request and Session - thread safety
I have the following assemblies in my ASP.NET app: Website - this is an ASP.NET website ClassLib - this is just a class lib that contains all the business logic[详细]
2023-01-28 21:19 分类:问答HttpContext.Current.User.IsInRole() Authorization issue
I am facing a strange issue while authorizing myself via HttpContext.Current.User.IsI开发者_运维技巧nRole(\"DOMAIN\\\\RoleName\").[详细]
2023-01-26 11:26 分类:问答ASP.NET MVC HttpContext.Session object
I have a question. I\'ve built custom class in my project that contains开发者_高级运维 public static property ctx and assingn HttpContext.Current object to it. In runtime that property seem to referen[详细]
2023-01-25 11:05 分类:问答Add session to fake httpContext in C# MVC project
How can i add th开发者_如何学运维e session to a fakeContext ? This function have we build for partial request where the content must be returned as a string.[详细]
2023-01-25 03:16 分类:问答