261 references to Current
System.Runtime.Remoting (4)
channels\core\corechannel.cs (2)
874HttpContext httpContext = HttpContext.Current; 1132HttpRequest request = HttpContext.Current.Request;
metadata\sdlchannelsink.cs (1)
366HttpContext context = HttpContext.Current;
services\remotingservice.cs (1)
27HttpContext context = HttpContext.Current;
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedHttpTransportManager.cs (1)
238this.httpContext = HttpContext.Current;
System.ServiceModel.Web (17)
System\ServiceModel\Description\WebScriptClientGenerator.cs (1)
86HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.Public);
System\ServiceModel\Dispatcher\HelpPage.cs (7)
56if (HttpContext.Current == null) 75if (HttpContext.Current == null) 99if (HttpContext.Current != null) 101HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.Public); 102HttpContext.Current.Response.Cache.SetMaxAge(TimeSpan.MaxValue); 103HttpContext.Current.Response.Cache.AddValidationCallback(new HttpCacheValidateHandler(this.CacheValidationCallback), this.startupTime); 104HttpContext.Current.Response.Cache.SetValidUntilExpires(true);
System\ServiceModel\Dispatcher\JavascriptCallbackMessageInspector.cs (4)
34if (HttpContext.Current != null && 35HttpContext.Current.User != null && 36HttpContext.Current.User.Identity != null && 37HttpContext.Current.User.Identity.IsAuthenticated)
System\ServiceModel\Web\CachingParameterInspector.cs (5)
111if (HttpContext.Current.User.Identity.IsAuthenticated) 268HttpCachePolicy cache = HttpContext.Current.Response.Cache; 311cache.SetExpires(HttpContext.Current.Timestamp.AddSeconds((double)this.cacheProfile.Duration)); 314cache.SetLastModified(HttpContext.Current.Timestamp); 352HttpContext.Current.Response.AddCacheDependency(new CacheDependency[] { cacheDependency });
System.Web (123)
Cache\CacheEntry.cs (1)
281if (HttpContext.Current == null) {
Cache\OutputCache.cs (3)
247HttpContext context = HttpContext.Current; 520OutputCacheProvider provider = GetProvider(HttpContext.Current); 772OutputCacheProvider provider = GetProvider(HttpContext.Current);
Cache\SqlCacheDependency.cs (4)
106HttpContext context = HttpContext.Current; 225HttpContext context = HttpContext.Current; 792HttpContext context = HttpContext.Current; 1012HttpContext context = HttpContext.Current;
Compilation\AssemblyBuilder.cs (1)
968HttpContext context = HttpContext.Current;
Compilation\BuildProvider.cs (1)
408if (EtwTrace.IsTraceEnabled(EtwTraceLevel.Verbose, EtwTraceFlags.Infrastructure) && (context = HttpContext.Current) != null)
Compilation\BuildResult.cs (1)
1031HttpContext context = HttpContext.Current;
Configuration\HttpCapabilitiesBase.cs (1)
403string ua = HttpCapabilitiesDefaultProvider.GetUserAgent(HttpContext.Current.Request);
Configuration\HttpConfigurationSystem.cs (1)
193HttpContext context = HttpContext.Current;
Configuration\MTConfigUtil.cs (1)
127HttpContext context = HttpContext.Current;
Configuration\RuntimeConfig.cs (1)
43HttpContext context = HttpContext.Current;
Configuration\UrlAuthFailedErrorFormatter.cs (1)
37return GetErrorText(HttpContext.Current);
DataAccess\SqlConnectionHelper.cs (1)
201HttpContext context = HttpContext.Current;
ErrorFormatter.cs (1)
358return GetErrorMessage(HttpContext.Current, true);
Handlers\AssemblyResourceLoader.cs (7)
60return HttpContext.Current.IsDebuggingEnabled; 92HttpContext context = HttpContext.Current; 306secureConnection = ((HttpContext.Current != null) && (HttpContext.Current.Request != null) && 307HttpContext.Current.Request.IsSecureConnection); 308debuggingEnabled = (HttpContext.Current != null) && HttpContext.Current.IsDebuggingEnabled;
HttpRequest.cs (1)
242HttpContext context = Context ?? HttpContext.Current;
HttpWriter.cs (2)
541String s = _callback(HttpContext.Current); 590String s = _callback(HttpContext.Current);
IisTraceListener.cs (8)
24HttpContext context = HttpContext.Current; 39HttpContext context = HttpContext.Current; 51HttpContext context = HttpContext.Current; 63HttpContext context = HttpContext.Current; 75HttpContext context = HttpContext.Current; 84HttpContext context = HttpContext.Current; 95HttpContext context = HttpContext.Current; 120HttpContext context = HttpContext.Current;
Management\IisTraceWebEventProvider.cs (2)
23HttpContext context = HttpContext.Current; 42HttpContext context = HttpContext.Current;
Management\WebEvents.cs (4)
412HttpContext context = HttpContext.Current; 499HttpContext context = HttpContext.Current; 1019if (HttpContext.Current == null) { 1937HttpContext context = HttpContext.Current;
PartitionResolver.cs (2)
52EtwTrace.Trace(EtwTraceType.ETW_TYPE_SESSIONSTATE_PARTITION_START, HttpContext.Current.WorkerRequest, partitionResolver.GetType().FullName, id); 118EtwTrace.Trace(EtwTraceType.ETW_TYPE_SESSIONSTATE_PARTITION_END, HttpContext.Current.WorkerRequest, msg);
ProcessModelInfo.cs (2)
19HttpContext context = HttpContext.Current; 49HttpContext context = HttpContext.Current;
Profile\SqlProfileProvider.cs (3)
144HttpContext context = HttpContext.Current; 146if (context != null && HostingEnvironment.IsHosted && EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc)) EtwTrace.Trace(EtwTraceType.ETW_TYPE_PROFILE_BEGIN, HttpContext.Current.WorkerRequest); 194if (context != null && HostingEnvironment.IsHosted && EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc)) EtwTrace.Trace(EtwTraceType.ETW_TYPE_PROFILE_END, HttpContext.Current.WorkerRequest, userName);
Routing\RouteCollection.cs (1)
143HttpContext httpContext = HttpContext.Current;
Routing\UrlRoutingModule.cs (1)
96UrlAuthorizationModule.ReportUrlAuthorizationFailure(HttpContext.Current, this);
Security\AnonymousIdentificationModule.cs (1)
65HttpContext context = HttpContext.Current;
Security\AuthStoreRoleProvider.cs (2)
590HttpContext context = HttpContext.Current; 649HttpContext context = HttpContext.Current;
Security\CookielessHelper.cs (2)
225context = HttpContext.Current; 234context = HttpContext.Current;
Security\FormsAuthentication.cs (10)
403HttpContext context = HttpContext.Current; 448HttpContext context = HttpContext.Current; 456HttpContext.Current.Response.Cookies.Add(cookie); 529HttpContext context = HttpContext.Current; 581HttpContext context = HttpContext.Current; 688HttpContext context = HttpContext.Current; 699HttpContext context = HttpContext.Current; 712HttpContext context = HttpContext.Current; 736HttpContext context = HttpContext.Current; 768HttpContext context = HttpContext.Current;
Security\Membership.cs (1)
591HttpContext cur = HttpContext.Current;
Security\PassportIdentity.cs (3)
50HttpContext context = HttpContext.Current; 820HttpContext context = HttpContext.Current; 963HttpContext context = HttpContext.Current;
Security\RolePrincipal.cs (6)
101if (HostingEnvironment.IsHosted && EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc) && HttpContext.Current != null) 102EtwTrace.Trace(EtwTraceType.ETW_TYPE_ROLE_BEGIN, HttpContext.Current.WorkerRequest); 143if (HostingEnvironment.IsHosted && EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc) && HttpContext.Current != null) 144EtwTrace.Trace( EtwTraceType.ETW_TYPE_ROLE_END, HttpContext.Current.WorkerRequest, "RolePrincipal", _Identity.Name); 150if (HostingEnvironment.IsHosted && EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc) && HttpContext.Current != null) 151EtwTrace.Trace(EtwTraceType.ETW_TYPE_ROLE_END, HttpContext.Current.WorkerRequest, "RolePrincipal", _Identity.Name);
Security\Roles.cs (12)
96if (HostingEnvironment.IsHosted && EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc) && HttpContext.Current != null) 97EtwTrace.Trace(EtwTraceType.ETW_TYPE_ROLE_BEGIN, HttpContext.Current.WorkerRequest); 114if (HostingEnvironment.IsHosted && EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc) && HttpContext.Current != null) { 117EtwTrace.Trace(EtwTraceType.ETW_TYPE_ROLE_IS_USER_IN_ROLE, HttpContext.Current.WorkerRequest, isRolePrincipal ? "RolePrincipal" : Provider.GetType().FullName, username, roleName, status); 120EtwTrace.Trace(EtwTraceType.ETW_TYPE_ROLE_END, HttpContext.Current.WorkerRequest, isRolePrincipal ? "RolePrincipal" : Provider.GetType().FullName, username); 132if (HostingEnvironment.IsHosted && EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc) && HttpContext.Current != null) 133EtwTrace.Trace(EtwTraceType.ETW_TYPE_ROLE_BEGIN, HttpContext.Current.WorkerRequest); 153if (HostingEnvironment.IsHosted && EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc) && HttpContext.Current != null) { 161EtwTrace.Trace(EtwTraceType.ETW_TYPE_ROLE_GET_USER_ROLES, HttpContext.Current.WorkerRequest, isRolePrincipal ? "RolePrincipal" : Provider.GetType().FullName, username, roleNames, null); 163EtwTrace.Trace(EtwTraceType.ETW_TYPE_ROLE_END, HttpContext.Current.WorkerRequest, isRolePrincipal ? "RolePrincipal" : Provider.GetType().FullName, username); 429HttpContext context = HttpContext.Current; 606HttpContext cur = HttpContext.Current;
Security\WindowsTokenRoleProvider.cs (1)
193HttpContext context = HttpContext.Current;
SiteMapProvider.cs (2)
38HttpContext context = HttpContext.Current; 392if (node != null && node.IsAccessibleToUser(HttpContext.Current)) {
State\SessionStateContainer.cs (4)
188if (HttpContext.Current != null) 189return HttpContext.Current.Response.ContentEncoding.CodePage; 194if (HttpContext.Current != null) 195HttpContext.Current.Response.ContentEncoding = Encoding.GetEncoding(value);
State\SessionStateModule.cs (1)
552if (HttpContext.Current == null) {
StaticSiteMapProvider.cs (1)
220HttpContext context = HttpContext.Current;
UI\Control.cs (1)
402return HttpContext.Current;
UI\ControlAdapter.cs (1)
70HttpContext context = HttpContext.Current;
UI\ControlBuilder.cs (1)
672HttpContext context = HttpContext.Current;
UI\MasterPage.cs (1)
251HttpContext context = HttpContext.Current;
UI\Page.cs (2)
624_context = HttpContext.Current; 4063HttpContext currentContext = HttpContext.Current;
UI\RenderTraceListener.cs (4)
36if (_factories != null && HttpContext.Current != null) { 37RenderTraceListener listener = HttpContext.Current.Items[typeof(RenderTraceListener)] as RenderTraceListener; 39listener = CreateListener(HttpContext.Current); 40HttpContext.Current.Items[typeof(RenderTraceListener)] = listener;
UI\TemplateBuilder.cs (1)
178context = HttpContext.Current;
UI\ViewStateException.cs (1)
56HttpContext context = HttpContext.Current;
UI\WebControls\Content.cs (1)
67HttpContext context = HttpContext.Current;
UI\WebControls\LoginUtil.cs (1)
118HttpContext context = HttpContext.Current;
UI\WebControls\ModelMethodContext.cs (2)
32/// Gets the ModelMethodContext corresponding to the <see cref='System.Web.UI.Page' /> from <see cref='System.Web.HttpContext.Current' />. 37Page page = HttpContext.Current.Handler as Page;
UI\WebControls\Wizard.cs (1)
1188HttpContext context = HttpContext.Current;
Util\HttpEncoder.cs (1)
49HttpContext httpContext = HttpContext.Current;
Util\Profiler.cs (1)
52return (_pageOutput && !(_localOnly && !HttpContext.Current.Request.IsLocal));
WebPageTraceListener.cs (5)
30HttpContext context = HttpContext.Current; 40HttpContext context = HttpContext.Current; 50HttpContext context = HttpContext.Current; 60HttpContext context = HttpContext.Current; 69HttpContext context = HttpContext.Current;
XmlSiteMapProvider.cs (2)
121HttpContext context = HttpContext.Current; 953HttpContext context = HttpContext.Current;
System.Web.DataVisualization (48)
Common\Utilities\ImageLoader.cs (2)
209else if ( HttpContext.Current != null ) 211image = LoadFromFile(HttpContext.Current.Request.MapPath(imageURL));
WebForm\ChartWebControl.cs (1)
491if (_currentChartImageLocation.StartsWith("~", StringComparison.Ordinal) && HttpContext.Current != null && this.Page.Request != null)
WebForm\General\ChartHttpHandler.cs (45)
139if (HttpContext.Current != null) 145HttpContext.Current.Server.Execute(ChartHttpHandlerName + "?" + handlerCheckQry + "=0", w); 175if (HttpContext.Current != null) 316if (HttpContext.Current != null) 318return (string)HttpContext.Current.Items[ContextGuidKey]; 324if (HttpContext.Current != null) 328HttpContext.Current.Items.Remove(ContextGuidKey); 332HttpContext.Current.Items[ContextGuidKey] = value; 363String appDir = Path.GetDirectoryName(HttpContext.Current.Request.CurrentExecutionFilePath ?? "").Replace("\\","/"); 896if (HttpContext.Current != null && HttpContext.Current.Items.Contains(_folderKeyName)) 898return (string)HttpContext.Current.Items[_folderKeyName]; 912if (HttpContext.Current != null) 914HttpContext.Current.Items[_folderKeyName] = value; 1218fileDirectory = HttpContext.Current.Server.MapPath(this.Url); 1289if (HttpContext.Current.Session != null) 1292if (HttpContext.Current.Session.IsNewSession) 1294if (HttpContext.Current.Session.IsReadOnly) 1298HttpContext.Current.Session[this._sesionKey] = 0; 1300return HttpContext.Current.Session.SessionID; 1312if (HttpContext.Current != null) 1317if (HttpContext.Current.User.Identity.IsAuthenticated) 1320return HttpContext.Current.User.Identity.Name; 1322if (!String.IsNullOrEmpty(HttpContext.Current.Request.AnonymousID)) 1325return HttpContext.Current.Request.AnonymousID; 1332if (!HttpContext.Current.User.Identity.IsAuthenticated) 1337return HttpContext.Current.User.Identity.Name; 1340if (String.IsNullOrEmpty(HttpContext.Current.Request.AnonymousID)) 1345return HttpContext.Current.Request.AnonymousID; 1348if (HttpContext.Current.Session == null) 1546HttpContext.Current.Session[GetSessionImageKey(key)] = data; 1659data = (Byte[])HttpContext.Current.Session[GetSessionImageKey(key)]; 1694HttpContext.Current.Session.Remove(GetSessionImageKey(key)); 1725return HttpContext.Current.Session[GetSessionImageKey(key)] is Byte[]; 2002if (HttpContext.Current != null) 2005if (HttpContext.Current.Request != null) 2007Url = HttpContext.Current.Request.Url.ToString(); 2008Verb = HttpContext.Current.Request.HttpMethod; 2088HttpContext.Current.Trace.Write(ChartCategory, message, errorInfo); 2106if (HttpContext.Current != null) 2108if (HttpContext.Current.Items[Diagnostics.ContextID] == null) 2116HttpContext.Current.Items[Diagnostics.ContextID] = pageTrace; 2118return (HandlerPageTraceInfo)HttpContext.Current.Items[Diagnostics.ContextID]; 2135return HttpContext.Current != null && HttpContext.Current.Trace.IsEnabled;
System.Web.DynamicData (23)
DynamicData\DynamicControlParameter.cs (1)
61MetaTable table = MetaTableHelper.GetTableWithFullFallback(dataSource, HttpContext.Current.ToWrapper());
DynamicData\DynamicDataExtensions.cs (11)
21SetMetaTableInternal(control, table, null/* defaultValues*/, new HttpContextWrapper(HttpContext.Current)); 28SetMetaTableInternal(control, table, defaultValues, new HttpContextWrapper(HttpContext.Current)); 35SetMetaTableInternal(control, table, Misc.ConvertObjectToDictionary(defaultValues), new HttpContextWrapper(HttpContext.Current)); 39return GetDefaultValues(dataSource, new HttpContextWrapper(HttpContext.Current)); 43return GetDefaultValues(control, new HttpContextWrapper(HttpContext.Current)); 47return GetMetaTable(dataSource, new HttpContextWrapper(HttpContext.Current)); 51return TryGetMetaTable(dataSource, new HttpContextWrapper(HttpContext.Current), out table); 55return GetMetaTable(control, new HttpContextWrapper(HttpContext.Current)); 59return TryGetMetaTable(control, new HttpContextWrapper(HttpContext.Current), out table); 158return MetaTableHelper.GetTableWithFullFallback(dataSource, HttpContext.Current.ToWrapper()); 220return MetaTableHelper.FindMetaTable(current, HttpContext.Current.ToWrapper());
DynamicData\DynamicDataRouteHandler.cs (1)
40return _context ?? new HttpContextWrapper(System.Web.HttpContext.Current);
DynamicData\DynamicEntity.cs (1)
61return _context ?? new HttpContextWrapper(HttpContext.Current);
DynamicData\DynamicFilter.cs (1)
75return _context ?? new HttpContextWrapper(HttpContext.Current);
DynamicData\DynamicQueryStringParameter.cs (1)
19var table = MetaTableHelper.GetTableWithFullFallback(dataSource, HttpContext.Current.ToWrapper());
DynamicData\FilterRepeater.cs (1)
181MetaTable table = DynamicDataRouteHandler.GetRequestMetaTable(HttpContext.Current);
DynamicData\FilterUserControlBase.cs (1)
171table = DynamicDataRouteHandler.GetRequestMetaTable(HttpContext.Current);
DynamicData\MetaModel.cs (1)
75return _context ?? HttpContext.Current.ToWrapper();
DynamicData\MetaTable.cs (1)
63return _context ?? new HttpContextWrapper(HttpContext.Current);
DynamicData\QueryableFilterRepeater.cs (1)
29return _context ?? new HttpContextWrapper(HttpContext.Current);
DynamicData\Util\MetaTableHelper.cs (1)
124return FindMetaTable(current, HttpContext.Current.ToWrapper());
DynamicData\Util\Misc.cs (1)
306RequestContext requestContext = DynamicDataRouteHandler.GetRequestContext(HttpContext.Current);
System.Web.Extensions (22)
ApplicationServices\AuthenticationService.cs (5)
101ApplicationServiceHelper.EnsureAuthenticationServiceEnabled(HttpContext.Current, true); 116ApplicationServiceHelper.EnsureAuthenticationServiceEnabled(HttpContext.Current, true); 125ApplicationServiceHelper.EnsureAuthenticationServiceEnabled(HttpContext.Current, true); 126return HttpContext.Current.User.Identity.IsAuthenticated; 134ApplicationServiceHelper.EnsureAuthenticationServiceEnabled(HttpContext.Current, false);
ApplicationServices\ProfileService.cs (4)
70ApplicationServiceHelper.EnsureAuthenticated(HttpContext.Current); 120ApplicationServiceHelper.EnsureAuthenticated(HttpContext.Current); 165ApplicationServiceHelper.EnsureAuthenticated(HttpContext.Current); 284HttpContext context = HttpContext.Current;
ApplicationServices\RoleService.cs (2)
70IPrincipal user = ApplicationServiceHelper.GetCurrentUser(HttpContext.Current); 92IPrincipal user = ApplicationServiceHelper.GetCurrentUser(HttpContext.Current);
Handlers\ScriptModule.cs (2)
170WebServiceData webServiceData = WebServiceData.GetWebServiceData(HttpContext.Current, request.FilePath, false, true); 177RestHandler.ExecuteWebServiceCall(HttpContext.Current, methodData);
Handlers\ScriptResourceHandler.cs (1)
584if (!IsCompressionEnabled(HttpContext.Current)) {
Profile\ProfileService.cs (4)
25HttpContext context = HttpContext.Current; 135HttpContext context = HttpContext.Current; 147HttpContext context = HttpContext.Current; 165HttpContext context = HttpContext.Current;
Security\AuthenticationService.cs (4)
16ApplicationServiceHelper.EnsureAuthenticationServiceEnabled(HttpContext.Current, true); 31ApplicationServiceHelper.EnsureAuthenticationServiceEnabled(HttpContext.Current, false); 36ApplicationServiceHelper.EnsureAuthenticationServiceEnabled(HttpContext.Current, false); 37return HttpContext.Current.Request.IsAuthenticated;
System.Web.Mobile (14)
Mobile\CookielessData.cs (2)
30String inboundValue = HttpContext.Current.Request.QueryString[name]; 33inboundValue = HttpContext.Current.Request.Form[name];
UI\MobileControls\Adapters\HtmlPageAdapter.cs (1)
52SetPreferredEncodings(HttpContext.Current);
UI\MobileControls\Adapters\MobileTextWriter.cs (1)
151HttpContext.Current.Response.ContentType = contentType;
UI\MobileControls\Adapters\WmlFormAdapter.cs (1)
54HttpContext.Current.Response.Cookies.Remove(formsAuthCookieName);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicFormAdapter.cs (1)
44HttpContext.Current.Response.Cookies.Remove(formsAuthCookieName);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicPageAdapter.cs (1)
44HtmlPageAdapter.SetPreferredEncodings(HttpContext.Current);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlMobileTextWriter.cs (1)
811WriteAttribute ("encoding", HttpContext.Current.Response.ContentEncoding.WebName);
UI\MobileControls\DeviceSpecific.cs (1)
122HttpContext context = HttpContext.Current;
UI\MobileControls\MobilePage.cs (4)
269_runMode = (HttpContext.Current == null) ? RunMode.Design : RunMode.Runtime; 297Type t = ControlsConfig.GetFromContext(HttpContext.Current).CookielessDataDictionaryType; 1277Response.Expires = HttpContext.Current.Session.Timeout; 1396if(!HttpContext.Current.IsCustomErrorEnabled)
UI\MobileControls\SessionViewState.cs (1)
71history = new SessionViewStateHistory(HttpContext.Current);
System.Workflow.Activities (4)
Executors\WorkflowWebService.cs (4)
144if (HttpContext.Current != null) 155Object instanceId = HttpContext.Current.Items["__WorkflowInstanceId__"]; 164Object isActivationContext = HttpContext.Current.Items["__IsActivationContext__"]; 174HttpContext.Current.Items["__WorkflowInstanceId__"] = workflowInstanceId;
System.Workflow.Runtime (5)
Hosting\WorkflowWebHostingModule.cs (5)
69HttpCookie routingCookie = HttpContext.Current.Request.Cookies.Get("WF_WorkflowInstanceId"); 73HttpContext.Current.Items.Add("__WorkflowInstanceId__", new Guid(routingCookie.Value)); 81HttpCookie cookie = HttpContext.Current.Request.Cookies.Get("WF_WorkflowInstanceId"); 86Object workflowInstanceId = HttpContext.Current.Items["__WorkflowInstanceId__"]; 91HttpContext.Current.Response.Cookies.Add(cookie);