1 write to HttpContext
System.Web (1)
ThreadContext.cs (1)
34
HttpContext
= httpContext;
31 references to HttpContext
System.Web (31)
Hosting\AspNetHostExecutionContextManager.cs (2)
40
httpContextThreadContextId: currentContext.
HttpContext
.ThreadContextId);
72
if (currentContext != null && currentContext.
HttpContext
.ThreadContextId == castHostExecutionContext.HttpContextThreadContextId) {
ThreadContext.cs (29)
56
Debug.Assert(
HttpContext
!= null); // only to be used when context is available
68
_originalHttpContext = DisposableHttpContextWrapper.SwitchContext(
HttpContext
);
77
AspNetSynchronizationContextBase aspNetSynchronizationContext =
HttpContext
.SyncContext;
81
Guid g =
HttpContext
.WorkerRequest.RequestTraceIdentifier;
87
HttpContext
.ResetSqlDependencyCookie();
91
HttpApplication.SetCurrentPrincipalWithAssert(
HttpContext
.User);
99
if (
HttpContext
.CurrentThread == null) {
101
HttpContext
.CurrentThread = Thread.CurrentThread;
117
return new ClientImpersonationContext(
HttpContext
);
139
HttpContext
.CurrentThread = null;
158
HttpContext
.RemoveSqlDependencyCookie();
193
DisposableHttpContextWrapper.SwitchContext(
HttpContext
);
195
Guid g =
HttpContext
.WorkerRequest.RequestTraceIdentifier;
200
HttpContext
.ResetSqlDependencyCookie();
204
HttpApplication.SetCurrentPrincipalWithAssert(
HttpContext
.User);
260
if (
HttpContext
!= null) {
262
HttpContext
.DynamicCulture = currentCulture;
273
if (
HttpContext
!= null) {
275
HttpContext
.DynamicUICulture = currentUICulture;
298
GlobalizationSection globConfig = RuntimeConfig.GetConfig(
HttpContext
).Globalization;
300
culture =
HttpContext
.CultureFromConfig(globConfig.Culture, true);
303
uiculture =
HttpContext
.CultureFromConfig(globConfig.UICulture, false);
305
if (
HttpContext
.DynamicCulture != null)
306
culture =
HttpContext
.DynamicCulture;
308
if (
HttpContext
.DynamicUICulture != null)
309
uiculture =
HttpContext
.DynamicUICulture;
312
Page page =
HttpContext
.CurrentHandler as Page;
338
HttpContext
.DynamicCulture = Thread.CurrentThread.CurrentCulture;
339
HttpContext
.DynamicUICulture = Thread.CurrentThread.CurrentUICulture;