5 instantiations of HttpContext
System.Web (5)
Hosting\IPipelineRuntime.cs (2)
330HttpContext initHttpContext = new HttpContext(initWorkerRequest); 696context = new HttpContext(wr, false);
HttpRuntime.cs (2)
1645context = new HttpContext(wr, false /* initResponseWriter */); 1713HttpContext context = new HttpContext(wr, false /* initResponseWriter */);
httpserverutility.cs (1)
829HttpContext context = new HttpContext(request, response);
894 references to HttpContext
System.Runtime.Remoting (19)
channels\core\corechannel.cs (3)
874HttpContext httpContext = HttpContext.Current; 1132HttpRequest request = HttpContext.Current.Request;
channels\http\httpremotinghandler.cs (11)
66public void ProcessRequest(HttpContext context) 84private void InternalProcessRequest(HttpContext context) 221bool CanServiceRequest(HttpContext context) { 261string GetRequestUriForCurrentRequest(HttpContext context) { 281string GenerateFaultString(HttpContext context, Exception e) { 291void WriteException(HttpContext context, Exception e) { 307internal static bool IsLocal(HttpContext context) { 313internal static bool CustomErrorsEnabled(HttpContext context) { 338void DumpRequest(HttpContext context) 373public IHttpHandler GetHandler(HttpContext context, string verb, string url, string filePath) 544public void HandleRequest(HttpContext context)
metadata\sdlchannelsink.cs (2)
366HttpContext context = HttpContext.Current;
services\remotingservice.cs (3)
24public HttpContext Context 27HttpContext context = HttpContext.Current;
System.ServiceModel.Activation (8)
System\ServiceModel\Activation\AspNetRouteServiceHttpHandler.cs (2)
35public void ProcessRequest(HttpContext context) 46public IAsyncResult BeginProcessRequest(HttpContext context, AsyncCallback callback, object extraData)
System\ServiceModel\Activation\HostedHttpTransportManager.cs (2)
232HttpContext httpContext; 238this.httpContext = HttpContext.Current;
System\ServiceModel\Activation\HttpHandler.cs (1)
25public void ProcessRequest(HttpContext context)
System\ServiceModel\Activation\ServiceHttpHandlerFactory.cs (3)
18public IHttpHandler GetHandler(HttpContext context, string requestType, string url, string pathTranslated) 48public void ProcessRequest(HttpContext context) 59public IAsyncResult BeginProcessRequest(HttpContext context, AsyncCallback callback, object extraData)
System.ServiceModel.Web (18)
System\ServiceModel\Description\WebScriptClientGenerator.cs (1)
86HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.Public);
System\ServiceModel\Dispatcher\HelpPage.cs (8)
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); 117void CacheValidationCallback(HttpContext context, object state, ref HttpValidationStatus result)
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 (636)
Abstractions\HttpContextWrapper.cs (7)
26private readonly HttpContext _context; 28public HttpContextWrapper(HttpContext httpContext) { 269return HttpContext.GetGlobalResourceObject(classKey, resourceKey); 273return HttpContext.GetGlobalResourceObject(classKey, resourceKey, culture); 279return HttpContext.GetLocalResourceObject(virtualPath, resourceKey); 283return HttpContext.GetLocalResourceObject(virtualPath, resourceKey, culture); 318internal static Action<HttpContext> WrapCallback(Action<HttpContextBase> callback) {
Administration\WebAdminConfigurationHelper.cs (3)
45Type tempType = typeof(HttpContext).Assembly.GetType("System.Web.Security.Membership"); 77Type tempType = typeof(HttpContext).Assembly.GetType("System.Web.Security.Membership"); 93Type tempType = typeof(HttpContext).Assembly.GetType("System.Web.Security.Roles");
Cache\CacheEntry.cs (1)
281if (HttpContext.Current == null) {
Cache\OutputCache.cs (6)
157private static OutputCacheProvider GetProvider(HttpContext context) { 247HttpContext context = HttpContext.Current; 520OutputCacheProvider provider = GetProvider(HttpContext.Current); 586internal static void Remove(String key, HttpContext context) { 772OutputCacheProvider provider = GetProvider(HttpContext.Current);
Cache\SqlCacheDependency.cs (8)
106HttpContext context = HttpContext.Current; 225HttpContext context = HttpContext.Current; 792HttpContext context = HttpContext.Current; 1012HttpContext context = HttpContext.Current;
Compilation\AssemblyBuilder.cs (2)
968HttpContext context = HttpContext.Current;
Compilation\BuildManager.cs (13)
1488HttpContext context, string virtualPath) { 1509internal static BuildResult GetVPathBuildResult(HttpContext context, VirtualPath virtualPath) { 1514internal static BuildResult GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, 1524internal static BuildResult GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, 1540HttpContext context, VirtualPath virtualPath, bool noBuild, bool allowCrossApp, bool allowBuildInPrecompile) { 1549HttpContext context, VirtualPath virtualPath, bool noBuild, bool allowCrossApp, bool allowBuildInPrecompile, bool throwIfNotFound, bool ensureIsUpToDate = true) { 1555HttpContext context, VirtualPath virtualPath, bool noBuild, bool allowCrossApp, bool allowBuildInPrecompile) { 1560HttpContext context, VirtualPath virtualPath, bool noBuild, bool allowCrossApp, bool allowBuildInPrecompile, bool throwIfNotFound, bool ensureIsUpToDate = true) { 3141Type requiredBaseType, HttpContext context, bool allowCrossApp) { 3167HttpContext context, bool allowCrossApp) { 3177HttpContext context, bool allowCrossApp, bool throwIfNotFound) { 3254HttpContext context, string virtualPath) { 3259HttpContext context, string virtualPath, bool ensureIsUpToDate) {
Compilation\BuildProvider.cs (2)
407HttpContext context = null; 408if (EtwTrace.IsTraceEnabled(EtwTraceLevel.Verbose, EtwTraceFlags.Infrastructure) && (context = HttpContext.Current) != null)
Compilation\BuildResult.cs (2)
1031HttpContext context = HttpContext.Current;
Compilation\CompilationUtil.cs (1)
39internal static bool IsDebuggingEnabled(HttpContext context) {
Compilation\PageCodeDomTreeGenerator.cs (4)
460method.Parameters.Add(new CodeParameterDeclarationExpression(typeof(HttpContext), "context")); 518method.Parameters.Add(new CodeParameterDeclarationExpression(typeof(HttpContext), "context")); 582null, new Type[] { typeof(HttpContext) }, null); 595method.Parameters.Add(new CodeParameterDeclarationExpression(typeof(HttpContext), "context"));
Compilation\ThemeDirectoryCompiler.cs (1)
36internal static BuildResultCompiledType GetThemeBuildResultType(HttpContext context, string themeName) {
Configuration\AuthenticationConfig.cs (2)
47internal static String GetCompleteLoginUrl(HttpContext context, String loginUrl) { 59internal static bool AccessingLoginPage(HttpContext context, String loginUrl) {
Configuration\CustomErrorsSection.cs (2)
197internal static CustomErrorsSection GetSettings(HttpContext context) { 201internal static CustomErrorsSection GetSettings(HttpContext context, bool canThrow) {
Configuration\HandlerFactoryWrapper.cs (1)
28public IHttpHandler GetHandler(HttpContext context, String requestType, String url, String pathTranslated) {
Configuration\HttpCapabilitiesBase.cs (1)
403string ua = HttpCapabilitiesDefaultProvider.GetUserAgent(HttpContext.Current.Request);
Configuration\HttpConfigurationSystem.cs (2)
193HttpContext context = HttpContext.Current;
Configuration\MTConfigUtil.cs (5)
78static internal PagesSection GetPagesConfig(HttpContext context) { 118static internal CompilationSection GetCompilationConfig(HttpContext context) { 127HttpContext context = HttpContext.Current; 142static private S GetConfig<S>(HttpContext context) where S : ConfigurationSection {
Configuration\RuntimeConfig.cs (5)
43HttpContext context = HttpContext.Current; 62static internal RuntimeConfig GetConfig(HttpContext context) { 83static internal RuntimeConfig GetConfig(HttpContext context, VirtualPath path) { 178static internal RuntimeConfig GetLKGConfig(HttpContext context) {
Configuration\UrlAuthFailedErrorFormatter.cs (2)
37return GetErrorText(HttpContext.Current); 40internal static string GetErrorText(HttpContext context) {
DataAccess\ADConnectionHelper.cs (1)
51internal void Open (HttpContext context, bool revertImpersonate)
DataAccess\SqlConnectionHelper.cs (3)
201HttpContext context = HttpContext.Current; 299internal void Open(HttpContext context, bool revertImpersonate) {
DefaultHttpHandler.cs (5)
19private HttpContext _context; 25protected HttpContext Context { 57private static string MapPathWithAssert(HttpContext context, string virtualPath) { 61public virtual IAsyncResult BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state) { 120public virtual void ProcessRequest(HttpContext context) {
DynamicValidationShim.cs (3)
20internal static void EnableDynamicValidation(HttpContext context) { 28internal static bool IsValidationEnabled(HttpContext context) { 33internal static void GetUnvalidatedCollections(HttpContext context, out Func<NameValueCollection> formGetter, out Func<NameValueCollection> queryStringGetter) {
ErrorFormatter.cs (6)
120internal static bool RequiresAdaptiveErrorReporting(HttpContext context) 166internal virtual string GetAdaptiveErrorMessage(HttpContext context, bool dontShowSensitiveInfo) { 260private string GetPreferredRenderingType(HttpContext context) { 275private string GetStaticErrorMessage(HttpContext context) { 358return GetErrorMessage(HttpContext.Current, true); 363internal virtual string GetErrorMessage(HttpContext context, bool dontShowSensitiveInfo) {
Handlers\AssemblyResourceLoader.cs (11)
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; 424if (effectiveAssembly == HttpContext.SystemWebAssembly) { 463internal static bool IsValidWebResourceRequest(HttpContext context) { 504void IHttpHandler.ProcessRequest(HttpContext context) {
Handlers\TraceHandler.cs (3)
64private HttpContext _context; 75protected void ProcessRequest(HttpContext context) { 85void IHttpHandler.ProcessRequest(HttpContext context) {
Handlers\TransferRequestHandler.cs (3)
13public IAsyncResult BeginProcessRequest(HttpContext context, AsyncCallback cb, object extraData) 23private Task ProcessRequestAsync(HttpContext context) { 53public void ProcessRequest(HttpContext context)
Hosting\IIS7WorkerRequest.cs (5)
1532internal string ReMapHandlerAndGetHandlerTypeString(HttpContext httpContext, string path, out bool handlerExists) { 1662private void GetStatusChanges(HttpContext ctx) { 2080private void GetServerVarChanges(HttpContext ctx) { 2116private void GetHeaderChanges(HttpContext ctx, bool forRequest) { 2337internal void SynchronizeVariables(HttpContext context) {
Hosting\IPipelineRuntime.cs (8)
330HttpContext initHttpContext = new HttpContext(initWorkerRequest); 388private static HttpContext UnwrapContext(IntPtr rootedObjectsPointer) { 401HttpContext context = UnwrapContext(rootedObjectsPointer); 462internal static void DisposeHandler(HttpContext context, IntPtr nativeRequestContext, RequestNotificationStatus status) { 501HttpContext context = null; 686private static void InitializeRequestContext(IntPtr nativeRequestContext, int flags, out IIS7WorkerRequest wr, out HttpContext context) { 690bool etwEnabled = ((flags & HttpContext.FLAG_ETW_PROVIDER_ENABLED) == HttpContext.FLAG_ETW_PROVIDER_ENABLED);
HttpApplication.cs (31)
74private HttpContext _initContext; 137private HttpContext _context; 207public HttpContext Context { 1244private HttpHandlerAction GetHandlerMapping(HttpContext context, String requestType, VirtualPath path, bool useAppConfig) { 1282internal IHttpHandler MapIntegratedHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, bool useAppConfig, bool convertNativeStaticFileModule) { 1356internal IHttpHandler MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, bool useAppConfig) { 1427public virtual string GetVaryByCustomString(HttpContext context, string custom) { 1436public virtual string GetOutputCacheProviderName(HttpContext context) { 1464IAsyncResult IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) { 1507void IHttpHandler.ProcessRequest(HttpContext context) { 1533internal void ProcessSpecialRequest(HttpContext context, 1626internal void InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) { 1742internal void InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) { 2130HttpContext ISyncContext.HttpContext { 2396private void RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) { 2728internal void AssignContext(HttpContext context) { 2745internal IAsyncResult BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) { 3133HttpContext context = _application.Context; 3201HttpContext context = _application.Context; 3299HttpContext context = _application.Context; 3383HttpContext context = _application.Context; 3433HttpContext context = _application.Context; 3511private static void SuppressPostEndRequestIfNecessary(HttpContext context) { 3526HttpContext context = _application.Context; 3553var beginProcessRequestDelegate = AppVerifier.WrapBeginMethod<HttpContext>(_application, asyncHandler.BeginProcessRequest); 3646HttpContext context = _application.Context; 3764HttpContext context = _application.Context; 3792HttpContext context = _application.Context; 3875HttpContext context = app.Context; 4071HttpContext context = _application.Context; 4338private Exception ValidateHelper(HttpContext context) {
HttpApplicationFactory.cs (7)
138internal static void EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) { 168private void EnsureAppStartCalled(HttpContext context) { 353private HttpApplication GetNormalApplicationInstance(HttpContext context) { 388internal static HttpApplication GetPipelineApplicationInstance(IntPtr appContext, HttpContext context) { 397private HttpApplication GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) { 433private void FireApplicationOnStart(HttpContext context) { 596internal static IHttpHandler GetApplicationInstance(HttpContext context) {
HttpBufferlessInputStream.cs (2)
31private HttpContext _context; 40internal HttpBufferlessInputStream(HttpContext context, bool persistEntityBody, bool disableMaxRequestLength) {
HttpCachePolicy.cs (1)
154HttpContext context, Object data, ref HttpValidationStatus validationStatus);
HttpClientCertificate.cs (1)
129internal HttpClientCertificate(HttpContext context) {
HttpContext.cs (10)
58internal static readonly Assembly SystemWebAssembly = typeof(HttpContext).Assembly; 127private SubscriptionQueue<Action<HttpContext>> _requestCompletedQueue; 566public static HttpContext Current { 573return ContextBase.Current as HttpContext; 609public ISubscriptionToken AddOnRequestCompleted(Action<HttpContext> callback) { 2328private HttpContext _savedContext; 2330internal static HttpContext SwitchContext(HttpContext context) { 2331return ContextBase.SwitchContext(context) as HttpContext; 2334internal DisposableHttpContextWrapper(HttpContext context) {
HttpCookie.cs (2)
298private bool SupportsHttpOnly(HttpContext context) { 444internal HttpResponseHeader GetSetCookieHeader(HttpContext context) {
HttpDebugHandler.cs (1)
144public void ProcessRequest(HttpContext context) {
HTTPNotFoundHandler.cs (4)
28public void ProcessRequest(HttpContext context) { 55public void ProcessRequest(HttpContext context) { 86public void ProcessRequest(HttpContext context) { 114public void ProcessRequest(HttpContext context) {
HttpRequest.cs (7)
71private HttpContext _context; 164internal HttpRequest(HttpWorkerRequest wr, HttpContext context) { 233internal HttpContext Context { 242HttpContext context = Context ?? HttpContext.Current; 2693HttpContext contextToProvide = (HasTransitionedToWebSocketRequest) ? null : Context; 3339HttpContext context = Context;
HttpResponse.cs (9)
35public delegate String HttpResponseSubstitutionCallback(HttpContext context); 44private HttpContext _context; // context 122private SubscriptionQueue<Action<HttpContext>> _onSendingHeadersSubscriptionQueue = new SubscriptionQueue<Action<HttpContext>>(); 134internal HttpContext Context { 153internal HttpResponse(HttpWorkerRequest wr, HttpContext context) { 1023OutputCache.Remove(key, (HttpContext)null); 1033OutputCache.Remove(key, (HttpContext)null); 2250public ISubscriptionToken AddOnSendingHeaders(Action<HttpContext> callback) {
HttpRuntime.cs (18)
616private void FirstRequestInit(HttpContext context) { 709private void EnsureFirstRequestInit(HttpContext context) { 1109private void InitTrace(HttpContext context) { 1430internal static RequestNotificationStatus ProcessRequestNotification(IIS7WorkerRequest wr, HttpContext context) 1435private RequestNotificationStatus ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) { 1527private void FinishRequestNotification(IIS7WorkerRequest wr, HttpContext context, ref RequestNotificationStatus status) { 1577internal static void FinishPipelineRequest(HttpContext context) { 1642HttpContext context; 1713HttpContext context = new HttpContext(wr, false /* initResponseWriter */); 1747private void FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e) { 1908private static void SetExecutionTimePerformanceCounter(HttpContext context) { 2062HttpContext context = (HttpContext) ar.AsyncState; 2093HttpContext context = (HttpContext)ar.AsyncState; 2116HttpContext context = (HttpContext)arg; 3347internal static void RestrictIISFolders(HttpContext context) {
httpserverutility.cs (3)
42private HttpContext _context; 47internal HttpServerUtility(HttpContext context) { 829HttpContext context = new HttpContext(request, response);
HttpTaskAsyncHandler.cs (3)
28public virtual void ProcessRequest(HttpContext context) { 35public abstract Task ProcessRequestAsync(HttpContext context); 38IAsyncResult IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, object extraData) {
HttpWriter.cs (2)
541String s = _callback(HttpContext.Current); 590String s = _callback(HttpContext.Current);
IHttpAsyncHandler.cs (1)
26IAsyncResult BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData);
IHttpHandler.cs (1)
31void ProcessRequest(HttpContext context);
IHttpHandlerFactory.cs (2)
30IHttpHandler GetHandler(HttpContext context, String requestType, String url, String pathTranslated); 49IHttpHandler GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath);
IisTraceListener.cs (16)
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;
ImpersonationContext.cs (3)
155internal ClientImpersonationContext(HttpContext context) { 159internal ClientImpersonationContext(HttpContext context, bool throwOnError) { 163private void Start(HttpContext context, bool throwOnError) {
ImplicitAsyncPreloadModule.cs (1)
42HttpContext context = _app.Context;
Management\IisTraceWebEventProvider.cs (4)
23HttpContext context = HttpContext.Current; 42HttpContext context = HttpContext.Current;
Management\WebEvents.cs (7)
412HttpContext context = HttpContext.Current; 499HttpContext context = HttpContext.Current; 1019if (HttpContext.Current == null) { 1937HttpContext context = HttpContext.Current;
OutputCacheModule.cs (4)
132HttpContext context, 315string CreateOutputCachedItemKey(HttpContext context, CachedVary cachedVary) { 532HttpContext context; 1009HttpContext context;
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 (4)
19HttpContext context = HttpContext.Current; 49HttpContext context = HttpContext.Current;
Profile\ProfileEventArgs.cs (3)
24private HttpContext _Context; 31public HttpContext Context { get { return _Context;}} 40public ProfileEventArgs(HttpContext context) {
Profile\ProfileModule.cs (8)
124HttpContext context = ((HttpApplication)source).Context; 136HttpContext context = app.Context; 283private HttpContext _Context; 286public HttpContext Context { get { return _Context;}} 290public ProfileMigrateEventArgs(HttpContext context, string anonymousId) { 300private HttpContext _Context; 303public HttpContext Context { get { return _Context; } } 306public ProfileAutoSaveEventArgs(HttpContext context) {
Profile\SqlProfileProvider.cs (4)
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);
RequestTimeoutManager.cs (4)
105internal void Add(HttpContext context) { 130internal void Remove(HttpContext context) { 148private HttpContext _context; // the request 152internal RequestTimeoutEntry(HttpContext context) {
RootedObjects.cs (1)
56public HttpContext HttpContext {
Routing\RouteCollection.cs (2)
143HttpContext httpContext = HttpContext.Current;
Routing\UrlAuthFailureHandler.cs (1)
4public void ProcessRequest(HttpContext context) {
Routing\UrlRoutingHandler.cs (2)
33protected virtual void ProcessRequest(HttpContext httpContext) { 70void IHttpHandler.ProcessRequest(HttpContext context) {
Routing\UrlRoutingModule.cs (1)
96UrlAuthorizationModule.ReportUrlAuthorizationFailure(HttpContext.Current, this);
Security\AnonymousIdentificationModule.cs (6)
65HttpContext context = HttpContext.Current; 140HttpContext context; 412public HttpContext Context { get { return _Context; }} 415private HttpContext _Context; 418public AnonymousIdentificationEventArgs(HttpContext context) {
Security\AuthStoreRoleProvider.cs (4)
590HttpContext context = HttpContext.Current; 649HttpContext context = HttpContext.Current;
Security\BackStopAuthenticationModule.cs (2)
99HttpContext context; 139void WriteErrorMessage(HttpContext context) {
Security\CookielessHelper.cs (5)
30internal CookielessHelperClass(HttpContext context) { 211internal static bool UseCookieless(HttpContext context, bool doRedirect, HttpCookieMode cookieMode) { 225context = HttpContext.Current; 234context = HttpContext.Current; 406private HttpContext _Context;
Security\FileAuthorizationModule.cs (6)
128HttpContext context; 140internal static bool IsWindowsIdentity(HttpContext context) { 147private static bool IsUserAllowedToFile(HttpContext context, string fileName) { 285private void WriteErrorMessage(HttpContext context) { 297static internal bool RequestRequiresAuthorization(HttpContext context) { 321internal static bool IsUserAllowedToPath(HttpContext context, VirtualPath virtualPath)
Security\FormsAuthentication.cs (20)
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; 911static private bool IsPathWithinAppRoot(HttpContext context, string path)
Security\FormsAuthenticationEventArgs.cs (3)
24private HttpContext _Context; 45public HttpContext Context { get { return _Context;}} 51public FormsAuthenticationEventArgs(HttpContext context) {
Security\FormsAuthenticationModule.cs (3)
191HttpContext context; 237HttpContext context; 328private static FormsAuthenticationTicket ExtractTicketFromCookie(HttpContext context, String name, out bool cookielessTicket) {
Security\GenericAuthenticationEventArgs.cs (3)
21private HttpContext _Context; 26public HttpContext Context { get { return _Context;}} 32public DefaultAuthenticationEventArgs(HttpContext context) {
Security\Membership.cs (2)
591HttpContext cur = HttpContext.Current;
Security\PassportAuthenticationEventArgs.cs (3)
28private HttpContext _Context; 53public HttpContext Context { get { return _Context;}} 64public PassportAuthenticationEventArgs(PassportIdentity identity, HttpContext context) {
Security\PassportAuthenticationModule.cs (2)
126HttpContext context; 166HttpContext context;
Security\PassportIdentity.cs (7)
50HttpContext context = HttpContext.Current; 112private void SetHeaders(HttpContext context, String strResponseHeaders) { 820HttpContext context = HttpContext.Current; 963HttpContext context = HttpContext.Current;
Security\RoleManagerEventArgs.cs (3)
21private HttpContext _Context; 37public HttpContext Context { get { return _Context;}} 43public RoleManagerEventArgs(HttpContext context) {
Security\RoleManagerModule.cs (2)
90HttpContext context = app.Context; 157HttpContext context;
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 (14)
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\UrlAuthorizationModule.cs (5)
109internal static void ReportUrlAuthorizationFailure(HttpContext context, object webEventSource) { 128HttpContext context; 158static void WriteErrorMessage(HttpContext context) { 165static internal bool RequestRequiresAuthorization(HttpContext context) { 178internal static bool IsUserAllowedToPath(HttpContext context, VirtualPath virtualPath)
Security\WindowsAuthenticationEventArgs.cs (3)
24private HttpContext _Context; 51public HttpContext Context { get { return _Context;}} 63public WindowsAuthenticationEventArgs(WindowsIdentity identity, HttpContext context) {
Security\WindowsAuthenticationModule.cs (1)
120HttpContext context = app.Context;;
Security\WindowsTokenRoleProvider.cs (2)
193HttpContext context = HttpContext.Current;
SiteMap.cs (3)
172private HttpContext _context; 175public SiteMapResolveEventArgs(HttpContext context, SiteMapProvider provider) { 186public HttpContext Context {
SiteMapNode.cs (1)
521public virtual bool IsAccessibleToUser(HttpContext context) {
SiteMapProvider.cs (6)
38HttpContext context = HttpContext.Current; 132public virtual SiteMapNode FindSiteMapNode(HttpContext context) { 328public virtual bool IsAccessibleToUser(HttpContext context, SiteMapNode node) { 365protected SiteMapNode ResolveSiteMapNode(HttpContext context) { 392if (node != null && node.IsAccessibleToUser(HttpContext.Current)) {
State\InProcStateClientManager.cs (11)
98public override void InitializeRequest(HttpContext context) 102SessionStateStoreData DoGet(HttpContext context, 196public override SessionStateStoreData GetItem(HttpContext context, 206public override SessionStateStoreData GetItemExclusive(HttpContext context, 217public override void ReleaseItemExclusive(HttpContext context, 246public override void SetAndReleaseItemExclusive(HttpContext context, 363public override void CreateUninitializedItem(HttpContext context, String id, int timeout) { 402public override void RemoveItem(HttpContext context, 440public override void ResetItemTimeout(HttpContext context, String id) 449public override SessionStateStoreData CreateNewStoreData(HttpContext context, int timeout) 455public override void EndRequest(HttpContext context)
State\ISessionStateStore.cs (10)
40public abstract void InitializeRequest(HttpContext context); 57public abstract SessionStateStoreData GetItem(HttpContext context, 80public abstract SessionStateStoreData GetItemExclusive(HttpContext context, 89public abstract void ReleaseItemExclusive(HttpContext context, 100public abstract void SetAndReleaseItemExclusive(HttpContext context, 107public abstract void RemoveItem(HttpContext context, 113public abstract void ResetItemTimeout(HttpContext context, String id); 117public abstract SessionStateStoreData CreateNewStoreData(HttpContext context, int timeout); 119public abstract void CreateUninitializedItem(HttpContext context, String id, int timeout); 122public abstract void EndRequest(HttpContext context);
State\OutOfProcStateClientManager.cs (11)
246public override void InitializeRequest(HttpContext context) { 432internal SessionStateStoreData DoGet(HttpContext context, 517public override SessionStateStoreData GetItem(HttpContext context, 530public override SessionStateStoreData GetItemExclusive(HttpContext context, 542public override void ReleaseItemExclusive(HttpContext context, 557public override void SetAndReleaseItemExclusive(HttpContext context, 596public override void RemoveItem(HttpContext context, 612public override void ResetItemTimeout(HttpContext context, String id) { 621public override SessionStateStoreData CreateNewStoreData(HttpContext context, int timeout) 628public override void CreateUninitializedItem(HttpContext context, String id, int timeout) { 646public override void EndRequest(HttpContext context) {
State\SessionIDManager.cs (13)
31bool InitializeRequest(HttpContext context, bool suppressAutoDetectRedirect, out bool supportSessionIDReissue); 35String GetSessionID(HttpContext context); 38String CreateSessionID(HttpContext context); 46void SaveSessionID(HttpContext context, string id, out bool redirected, out bool cookieAdded); 52void RemoveSessionID(HttpContext context); 140internal void GetCookielessSessionID(HttpContext context, bool allowRedirect, out bool cookieless) { 244internal bool UseCookieless(HttpContext context) { 259void CheckInitializeRequestCalled(HttpContext context) { 265public bool InitializeRequest(HttpContext context, bool suppressAutoDetectRedirect, out bool supportSessionIDReissue) { 290public String GetSessionID(HttpContext context) { 313virtual public String CreateSessionID(HttpContext context) { 322public void SaveSessionID(HttpContext context, String id, out bool redirected, 391public void RemoveSessionID(HttpContext context) {
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 (7)
221HttpContext _rqContext; 552if (HttpContext.Current == null) { 1113void ChangeImpersonation(HttpContext context, bool timerThread) { 1256HttpContext context; 1427HttpContext context; 1510public void ReleaseSessionState(HttpContext context) { 1519public Task ReleaseSessionStateAsync(HttpContext context) {
State\SessionStateUtil.cs (11)
39static public void AddHttpSessionStateToContext(HttpContext context, IHttpSessionState container) { 50static internal void AddHttpSessionStateModuleToContext(HttpContext context, SessionStateModule module, bool delayed) { 54static internal void RemoveHttpSessionStateFromContext(HttpContext context, bool delayed) { 63static public void RemoveHttpSessionStateFromContext(HttpContext context) { 68static public IHttpSessionState GetHttpSessionStateFromContext(HttpContext context) { 72static public HttpStaticObjectsCollection GetSessionStaticObjects(HttpContext context) { 81static public bool IsSessionStateRequired(HttpContext context) { 90static public bool IsSessionStateReadOnly(HttpContext context) { 94internal static SessionStateStoreData CreateLegitStoreData(HttpContext context, 145internal static SessionStateStoreData Deserialize(HttpContext context, Stream stream) { 209static internal SessionStateStoreData DeserializeStoreData(HttpContext context, Stream stream, bool compressionEnabled) {
State\sqlstateclientmanager.cs (12)
69HttpContext _rqContext; 253public override void InitializeRequest(HttpContext context) { 265public override void EndRequest(HttpContext context) { 405SessionStateStoreData DoGet(HttpContext context, String id, bool getExclusive, 569public override SessionStateStoreData GetItem(HttpContext context, 581public override SessionStateStoreData GetItemExclusive(HttpContext context, 594public override void ReleaseItemExclusive(HttpContext context, 620public override void SetAndReleaseItemExclusive(HttpContext context, 706public override void RemoveItem(HttpContext context, 732public override void ResetItemTimeout(HttpContext context, String id) { 752public override SessionStateStoreData CreateNewStoreData(HttpContext context, int timeout) 758public override void CreateUninitializedItem(HttpContext context, String id, int timeout) {
State\StateRuntime.cs (14)
259public void ProcessRequest(HttpContext context) { 294private void ReportInvalidHeader(HttpContext context, String header) { 304private void ReportLocked(HttpContext context, CachedContent content) { 321private void ReportActionFlags(HttpContext context, int flags) { 331private void ReportNotFound(HttpContext context) { 335bool GetOptionalNonNegativeInt32HeaderValue(HttpContext context, string header, out int value) 364bool GetRequiredNonNegativeInt32HeaderValue(HttpContext context, string header, out int value) 375bool GetOptionalInt32HeaderValue(HttpContext context, string header, out int value, out bool found) 411internal /*public*/ void DoGet(HttpContext context) { 501internal /*public*/ void DoPut(HttpContext context) { 510unsafe IntPtr FinishPut(HttpContext context) { 637internal /*public*/ void DoDelete(HttpContext context) { 680internal /*public*/ void DoHead(HttpContext context) { 695internal /*public*/ void DoUnknown(HttpContext context) {
StaticFileHandler.cs (5)
65private static string GenerateETag(HttpContext context, DateTime lastModified, DateTime now) { 291public void ProcessRequest(HttpContext context) { 329internal static bool ProcessRangeRequest(HttpContext context, 478internal static void ProcessRequestInternal(HttpContext context, string overrideVirtualPath) { 579private static void SendFile(string physicalPath, long offset, long length, long fileLength, HttpContext context) {
StaticSiteMapProvider.cs (2)
220HttpContext context = HttpContext.Current;
ThreadContext.cs (3)
25private HttpContext _originalHttpContext; 33internal ThreadContext(HttpContext httpContext) { 47internal HttpContext HttpContext {
UI\Control.cs (8)
203HttpContext context = Context; 395protected internal virtual HttpContext Context { 402return HttpContext.Current; 415HttpContext context = Context; 961HttpContext context = Context; 1004HttpContext context = Context; 1179HttpContext context = Context; 2606HttpContext context = (Page == null) ? null : Page._context;
UI\ControlAdapter.cs (2)
70HttpContext context = HttpContext.Current;
UI\ControlBuilder.cs (2)
672HttpContext context = HttpContext.Current;
UI\MasterPage.cs (3)
164internal static MasterPage CreateMaster(TemplateControl owner, HttpContext context, 251HttpContext context = HttpContext.Current;
UI\ObjectStateFormatter.cs (2)
468resolvedType = HttpContext.SystemWebAssembly.GetType(typeName, true); 870if (type.Assembly == HttpContext.SystemWebAssembly) {
UI\Page.cs (16)
363internal HttpContext _context; 621protected internal override HttpContext Context { 624_context = HttpContext.Current; 4063HttpContext currentContext = HttpContext.Current; 4344public virtual void ProcessRequest(HttpContext context) { 4378private void ProcessRequestWithAssert(HttpContext context) { 4382private void ProcessRequestWithNoAssert(HttpContext context) { 4625HttpContext con = Context; 4921HttpContext con = Context; 5560private void SetIntrinsics(HttpContext context) { 5564private void SetIntrinsics(HttpContext context, bool allowAsync) { 5664protected IAsyncResult AspCompatBeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) { 5990protected IAsyncResult AsyncPageBeginProcessRequest(HttpContext context, AsyncCallback callback, Object extraData) { 6010private async Task ProcessRequestAsync(HttpContext context) { 6069private IAsyncResult LegacyAsyncPageBeginProcessRequest(HttpContext context, AsyncCallback callback, Object extraData) {
UI\PageHandlerFactory.cs (3)
36public virtual IHttpHandler GetHandler(HttpContext context, string requestType, string virtualPath, string path) { 45IHttpHandler IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, 59private IHttpHandler GetHandlerHelper(HttpContext context, string requestType,
UI\PageParser.cs (2)
108string inputFile, HttpContext context) { 121string inputFile, HttpContext context) {
UI\RenderTraceListener.cs (7)
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; 49private static RenderTraceListener CreateListener(HttpContext context) { 70public virtual void Initialize(HttpContext context) { 108public override void Initialize(HttpContext context) {
UI\SimpleHandlerFactory.cs (2)
26public virtual IHttpHandler GetHandler(HttpContext context, string requestType, 36IHttpHandler IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType,
UI\SimpleWebHandlerParser.cs (2)
94protected SimpleWebHandlerParser(HttpContext context, string virtualPath, string physicalPath) { 539public static Type GetCompiledType(string inputFile, HttpContext context) {
UI\TemplateBuilder.cs (2)
172HttpContext context = null; 178context = HttpContext.Current;
UI\TraceContext.cs (2)
54private HttpContext _context; 70public TraceContext(HttpContext context) {
UI\Util.cs (3)
1659internal static bool IsUserAllowedToPath(HttpContext context, VirtualPath virtualPath) { 1680private static bool IsUserAllowedToPathWithAssert(HttpContext context, VirtualPath virtualPath) { 1684private static bool IsUserAllowedToPathWithNoAssert(HttpContext context, VirtualPath virtualPath) {
UI\ViewStateException.cs (2)
56HttpContext context = HttpContext.Current;
UI\WebControls\AccessDataSourceView.cs (1)
27public AccessDataSourceView(AccessDataSource owner, string name, HttpContext context) : base(owner, name, context) {
UI\WebControls\AdPostCacheSubstitution.cs (2)
30internal void RegisterPostCacheCallBack(HttpContext context, 39internal string Render(HttpContext context) {
UI\WebControls\Content.cs (2)
67HttpContext context = HttpContext.Current;
UI\WebControls\ControlParameter.cs (1)
144protected internal override object Evaluate(HttpContext context, Control control) {
UI\WebControls\CookieParameter.cs (1)
101protected internal override object Evaluate(HttpContext context, Control control) {
UI\WebControls\DataListItem.cs (1)
102HttpContext con = Context;
UI\WebControls\FormParameter.cs (1)
102protected internal override object Evaluate(HttpContext context, Control control) {
UI\WebControls\LoginUtil.cs (2)
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\ObjectDataSourceView.cs (2)
43private HttpContext _context; 72public ObjectDataSourceView(ObjectDataSource owner, string name, HttpContext context)
UI\WebControls\Parameter.cs (2)
535protected internal virtual object Evaluate(HttpContext context, Control control) { 607internal void UpdateValue(HttpContext context, Control control) {
UI\WebControls\ParameterCollection.cs (2)
181public IOrderedDictionary GetValues(HttpContext context, Control control) { 298public void UpdateValues(HttpContext context, Control control) {
UI\WebControls\ProfileParameter.cs (1)
101protected internal override object Evaluate(HttpContext context, Control control) {
UI\WebControls\QueryStringParameter.cs (1)
102protected internal override object Evaluate(HttpContext context, Control control) {
UI\WebControls\RouteParameter.cs (1)
93protected internal override object Evaluate(HttpContext context, Control control) {
UI\WebControls\SessionParameter.cs (1)
101protected internal override object Evaluate(HttpContext context, Control control) {
UI\WebControls\SqlDataSourceView.cs (2)
47private HttpContext _context; 74public SqlDataSourceView(SqlDataSource owner, string name, HttpContext context) : base(owner, name) {
UI\WebControls\Wizard.cs (2)
1188HttpContext context = HttpContext.Current;
UrlMappingsModule.cs (1)
33internal static void UrlMappingRewritePath(HttpContext context) {
Util\AppVerifier.cs (7)
199HttpContext context = httpApplication.Context; 278HttpContext assignedContextUponCallingBeginHandler = httpApplication.Context; // used to determine whether the underlying request disappeared 476HttpContext originalHttpContext = (syncContext != null) ? syncContext.HttpContext : null; 496HttpContext currentHttpContext = (syncContext != null) ? syncContext.HttpContext : null; 538internal static Action<RequestNotificationStatus> GetRequestNotificationStatusCheckDelegate(HttpContext context, RequestNotification currentNotification, bool isPostNotification) { 550internal static Action<RequestNotificationStatus> GetRequestNotificationStatusCheckDelegateImpl(HttpContext context, RequestNotification currentNotification, bool isPostNotification, Action<AppVerifierException> errorHandler) { 653private static string TryGetRequestUrl(HttpContext context) {
Util\AspCompat.cs (6)
142private HttpContext _context; // context for callback 158internal AspCompatApplicationStep(HttpContext context, AspCompatCallback code) { 163private AspCompatApplicationStep(HttpContext context, HttpApplication app, String sessionId, EventHandler codeEventHandler, Object codeEventSource, EventArgs codeEventArgs) { 171private void Init(HttpContext context, HttpApplication app) { 276HttpContext context = Current._context; 372internal static void RaiseAspCompatEvent(HttpContext context, HttpApplication app, String sessionId, EventHandler eventHandler, Object source, EventArgs eventArgs) {
Util\HttpEncoder.cs (2)
49HttpContext httpContext = HttpContext.Current;
Util\ISyncContext.cs (1)
18HttpContext HttpContext { get; }
Util\Profiler.cs (3)
52return (_pageOutput && !(_localOnly && !HttpContext.Current.Request.IsLocal)); 103internal void StartRequest(HttpContext context) { 107internal void EndRequest(HttpContext context) {
Util\RequestValidator.cs (2)
67public bool InvokeIsValidRequestString(HttpContext context, string value, RequestValidationSource requestValidationSource, string collectionKey, out int validationFailureIndex) { 77protected internal virtual bool IsValidRequestString(HttpContext context, string value, RequestValidationSource requestValidationSource, string collectionKey, out int validationFailureIndex) {
Util\TaskExtensions.cs (1)
24public static WithinCancellableCallbackTaskAwaitable WithinCancellableCallback(this Task task, HttpContext context) {
Util\WithinCancellableCallbackTaskAwaitable.cs (5)
22public WithinCancellableCallbackTaskAwaitable(HttpContext context, TaskAwaiter innerAwaiter) { 35private readonly HttpContext _context; 38internal WithinCancellableCallbackTaskAwaiter(HttpContext context, TaskAwaiter innerAwaiter) { 51HttpContext context = _context; 69HttpContext context = _context;
WebPageTraceListener.cs (10)
30HttpContext context = HttpContext.Current; 40HttpContext context = HttpContext.Current; 50HttpContext context = HttpContext.Current; 60HttpContext context = HttpContext.Current; 69HttpContext context = HttpContext.Current;
WebSocketPipeline.cs (3)
24private readonly HttpContext _httpContext; 29public WebSocketPipeline(RootedObjects root, HttpContext httpContext, Func<AspNetWebSocketContext, Task> userFunc, string subProtocol) { 160HttpContext ISyncContext.HttpContext {
XmlSiteMapProvider.cs (5)
121HttpContext context = HttpContext.Current; 941HttpContext.GetGlobalResourceObject(classKey, resourceKey); 953HttpContext context = HttpContext.Current;
System.Web.DataVisualization (51)
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 (48)
139if (HttpContext.Current != null) 145HttpContext.Current.Server.Execute(ChartHttpHandlerName + "?" + handlerCheckQry + "=0", w); 175if (HttpContext.Current != null) 257private static bool ProcessSavedChartImage(HttpContext context) 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("\\","/"); 520private static void DiagnosticWriteAll(HttpContext context) 705void IHttpHandler.ProcessRequest(HttpContext context) 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 (33)
DynamicData\ControlFilterExpression.cs (1)
45public override void SetContext(Control owner, HttpContext context, IQueryableDataSource dataSource) {
DynamicData\DynamicControlParameter.cs (2)
61MetaTable table = MetaTableHelper.GetTableWithFullFallback(dataSource, HttpContext.Current.ToWrapper()); 159protected override object Evaluate(HttpContext context, Control control) {
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 (4)
40return _context ?? new HttpContextWrapper(System.Web.HttpContext.Current); 142public static RequestContext GetRequestContext(HttpContext httpContext) { 175public static MetaTable GetRequestMetaTable(HttpContext httpContext) { 193public static void SetRequestMetaTable(HttpContext httpContext, MetaTable table) {
DynamicData\DynamicEntity.cs (1)
61return _context ?? new HttpContextWrapper(HttpContext.Current);
DynamicData\DynamicFilter.cs (1)
75return _context ?? new HttpContextWrapper(HttpContext.Current);
DynamicData\DynamicFilterExpression.cs (1)
22public override void SetContext(Control owner, HttpContext context, IQueryableDataSource dataSource) {
DynamicData\DynamicQueryStringParameter.cs (2)
19var table = MetaTableHelper.GetTableWithFullFallback(dataSource, HttpContext.Current.ToWrapper()); 35protected override object Evaluate(HttpContext context, Control control) {
DynamicData\DynamicRouteExpression.cs (1)
31public override void SetContext(Control owner, HttpContext context, IQueryableDataSource dataSource) {
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 (2)
63return _context ?? new HttpContextWrapper(HttpContext.Current); 854public IDictionary<string, object> GetColumnValuesFromRoute(HttpContext context) {
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 (2)
19public static HttpContextWrapper ToWrapper(this HttpContext context) { 306RequestContext requestContext = DynamicDataRouteHandler.GetRequestContext(HttpContext.Current);
System.Web.Entity (1)
System\Data\WebControls\EntityDataSource.cs (1)
796internal HttpContext HttpContext
System.Web.Extensions (83)
ApplicationServices\ApplicationServiceHelper.cs (3)
75internal static void EnsureAuthenticated(HttpContext context) { 109internal static void EnsureAuthenticationServiceEnabled(HttpContext context, bool enforceSSL) { 165internal static IPrincipal GetCurrentUser(HttpContext context) {
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 (5)
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 (5)
27private static bool ShouldSkipAuthorization(HttpContext context) { 82HttpContext context = app.Context; 127HttpContext context = response.Context; 170WebServiceData webServiceData = WebServiceData.GetWebServiceData(HttpContext.Current, request.FilePath, false, true); 177RestHandler.ExecuteWebServiceCall(HttpContext.Current, methodData);
Handlers\ScriptResourceHandler.cs (4)
228private static bool IsCompressionEnabled(HttpContext context) { 270protected virtual void ProcessRequest(HttpContext context) { 548void IHttpHandler.ProcessRequest(HttpContext context) { 584if (!IsCompressionEnabled(HttpContext.Current)) {
Profile\ProfileService.cs (10)
25HttpContext context = HttpContext.Current; 35private static Dictionary<string, object> GetProfile(HttpContext context, IEnumerable<string> properties) { 77private static Collection<string> SetProfile(HttpContext context, IDictionary<string, object> values) { 135HttpContext context = HttpContext.Current; 147HttpContext context = HttpContext.Current; 165HttpContext context = HttpContext.Current;
Script\Services\PageClientProxyGenerator.cs (1)
30internal static string GetClientProxyScript(HttpContext context, IPage page, bool debug) {
Script\Services\RestClientProxyHandler.cs (1)
10public void ProcessRequest(HttpContext context) {
Script\Services\RestHandler.cs (10)
27internal static IHttpHandler CreateHandler(HttpContext context) { 62private static void InitializeCachePolicy(WebServiceMethodData methodData, HttpContext context) { 84private static IDictionary<string, object> GetRawParamsFromGetRequest(HttpContext context, JavaScriptSerializer serializer, WebServiceMethodData methodData) { 98private static IDictionary<string, object> GetRawParamsFromPostRequest(HttpContext context, JavaScriptSerializer serializer) { 112private static IDictionary<string, object> GetRawParams(WebServiceMethodData methodData, HttpContext context) { 132private static void InvokeMethod(HttpContext context, WebServiceMethodData methodData, IDictionary<string, object> rawParams) { 187internal static void ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData) { 211internal static void WriteExceptionJsonString(HttpContext context, Exception ex) { 215internal static void WriteExceptionJsonString(HttpContext context, Exception ex, int statusCode) { 247public void ProcessRequest(HttpContext context) {
Script\Services\RestHandlerFactory.cs (2)
15public virtual IHttpHandler GetHandler(HttpContext context, string requestType, string url, string pathTranslated) { 34internal static bool IsRestRequest(HttpContext context) {
Script\Services\ScriptHandlerFactory.cs (3)
35public void ProcessRequest(HttpContext context) { 50public IAsyncResult BeginProcessRequest(HttpContext context, AsyncCallback cb, object extraData) { 70public virtual IHttpHandler GetHandler(HttpContext context, string requestType, string url, string pathTranslated) {
Script\Services\WebServiceClientProxyGenerator.cs (2)
19internal static string GetInlineClientProxyScript(string path, HttpContext context, bool debug) { 35internal static string GetClientProxyScript(HttpContext context) {
Script\Services\WebServiceData.cs (3)
77internal static WebServiceData GetWebServiceData(HttpContext context, string virtualPath) { 85internal static WebServiceData GetWebServiceData(HttpContext context, string virtualPath, bool failIfNoData, bool pageMethods) { 90internal static WebServiceData GetWebServiceData(HttpContext context, string virtualPath, bool failIfNoData, bool pageMethods, bool inlineScript) {
Security\AuthenticationService.cs (4)
16ApplicationServiceHelper.EnsureAuthenticationServiceEnabled(HttpContext.Current, true); 31ApplicationServiceHelper.EnsureAuthenticationServiceEnabled(HttpContext.Current, false); 36ApplicationServiceHelper.EnsureAuthenticationServiceEnabled(HttpContext.Current, false); 37return HttpContext.Current.Request.IsAuthenticated;
UI\AuthenticationServiceManager.cs (2)
28internal static void ConfigureAuthenticationService(ref StringBuilder sb, HttpContext context, ScriptManager scriptManager, List<ScriptManagerProxy> proxies) { 56private static void GenerateInitializationScript(ref StringBuilder sb, HttpContext context, ScriptManager scriptManager, string serviceUrl) {
UI\ProfileServiceManager.cs (2)
34internal static void ConfigureProfileService(ref StringBuilder sb, HttpContext context, ScriptManager scriptManager, List<ScriptManagerProxy> proxies) { 80private static void GenerateInitializationScript(ref StringBuilder sb, HttpContext context, ScriptManager scriptManager, string serviceUrl, ArrayList loadedProperties) {
UI\RoleServiceManager.cs (2)
28internal static void ConfigureRoleService(ref StringBuilder sb, HttpContext context, ScriptManager scriptManager, List<ScriptManagerProxy> proxies) { 66private static void GenerateInitializationScript(ref StringBuilder sb, HttpContext context, ScriptManager scriptManager, string serviceUrl, bool loadRoles) {
UI\WebControls\ContextDataSourceView.cs (2)
26protected ContextDataSourceView(DataSourceControl owner, string viewName, HttpContext context) 31internal ContextDataSourceView(DataSourceControl owner, string viewName, HttpContext context, IDynamicQueryable queryable)
UI\WebControls\DataSourceHelper.cs (1)
29public static IDictionary<string, object> ToDictionary(this ParameterCollection parameters, HttpContext context, Control control) {
UI\WebControls\Expressions\DataSourceExpression.cs (2)
15protected HttpContext Context { 85public virtual void SetContext(Control owner, HttpContext context, IQueryableDataSource dataSource) {
UI\WebControls\Expressions\DataSourceExpressionCollection.cs (2)
20public HttpContext Context { 40internal void SetContext(Control owner, HttpContext context, IQueryableDataSource dataSource) {
UI\WebControls\Expressions\ParameterDataSourceExpression.cs (1)
30public override void SetContext(Control owner, HttpContext context, IQueryableDataSource dataSource) {
UI\WebControls\Expressions\QueryExpression.cs (2)
16private HttpContext _context; 33public void Initialize(Control owner, HttpContext context, IQueryableDataSource dataSource) {
UI\WebControls\LinqDataSourceView.cs (3)
39private HttpContext _context; 55public LinqDataSourceView(LinqDataSource owner, string name, HttpContext context) 60internal LinqDataSourceView(LinqDataSource owner, string name, HttpContext context,
UI\WebControls\QueryableDataSourceHelper.cs (1)
108internal static IDictionary<string, object> ToEscapedParameterKeys(this ParameterCollection parameters, HttpContext context, Control control) {
UI\WebControls\QueryableDataSourceView.cs (3)
31private HttpContext _context; 55protected QueryableDataSourceView(DataSourceControl owner, string viewName, HttpContext context) 61internal QueryableDataSourceView(DataSourceControl owner, string viewName, HttpContext context, IDynamicQueryable queryable)
System.Web.Mobile (30)
Mobile\CookielessData.cs (2)
30String inboundValue = HttpContext.Current.Request.QueryString[name]; 33inboundValue = HttpContext.Current.Request.Form[name];
Mobile\ErrorHandlerModule.cs (3)
95HttpContext context = null; 150private bool RequiresAdaptiveErrorReporting(HttpContext context, Exception error) 181private IHttpHandler CreateErrorFormatter(HttpContext context)
UI\MobileControls\Adapters\ChtmlPageAdapter.cs (1)
47public new static bool DeviceQualifies(HttpContext context)
UI\MobileControls\Adapters\HtmlPageAdapter.cs (3)
52SetPreferredEncodings(HttpContext.Current); 75public static bool DeviceQualifies(HttpContext context) 392internal static void SetPreferredEncodings(HttpContext context) {
UI\MobileControls\Adapters\MobileTextWriter.cs (1)
151HttpContext.Current.Response.ContentType = contentType;
UI\MobileControls\Adapters\UpWmlPageAdapter.cs (1)
37public static new bool DeviceQualifies(HttpContext context)
UI\MobileControls\Adapters\WmlFormAdapter.cs (1)
54HttpContext.Current.Response.Cookies.Remove(formsAuthCookieName);
UI\MobileControls\Adapters\WmlPageAdapter.cs (1)
59public static bool DeviceQualifies(HttpContext context)
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicFormAdapter.cs (1)
44HttpContext.Current.Response.Cookies.Remove(formsAuthCookieName);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicPageAdapter.cs (2)
44HtmlPageAdapter.SetPreferredEncodings(HttpContext.Current); 306public static bool DeviceQualifies(HttpContext context) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlCssHandler.cs (1)
26public void ProcessRequest (HttpContext context) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlMobileTextWriter.cs (1)
811WriteAttribute ("encoding", HttpContext.Current.Response.ContentEncoding.WebName);
UI\MobileControls\ControlsConfig.cs (2)
34internal static ControlsConfig GetFromContext(HttpContext context) 66internal /*public*/ IndividualDeviceConfig GetDeviceConfig(HttpContext context)
UI\MobileControls\DeviceSpecific.cs (2)
122HttpContext context = HttpContext.Current;
UI\MobileControls\IndividualDeviceConfig.cs (2)
34internal delegate bool DeviceQualifiesDelegate(HttpContext context); 91internal /*public*/ bool DeviceQualifies(HttpContext context)
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 (2)
71history = new SessionViewStateHistory(HttpContext.Current); 190public SessionViewStateHistory(HttpContext context)
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);
System.Xaml.Hosting (6)
System\Xaml\Hosting\XamlHttpHandlerFactory.cs (6)
29public IHttpHandler GetHandler(HttpContext context, string requestType, 127public void ProcessRequest(HttpContext context) 148public IAsyncResult BeginProcessRequest(HttpContext context, AsyncCallback cb, object extraData) 172public IHttpHandler GetHandler(HttpContext context, string requestType, 235IHttpHandler GetHandlerFirstTime(HttpContext context, string requestType, 289IHttpHandler GetHandlerSubSequent(HttpContext context, string requestType,