Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / System.ServiceModel.Activation / System / ServiceModel / Activation / AspNetRouteServiceHttpHandler.cs / 1305376 / AspNetRouteServiceHttpHandler.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Activation { using System.Runtime; using System.Security; using System.ServiceModel; using System.Web; using System.Web.SessionState; class AspNetRouteServiceHttpHandler : IHttpAsyncHandler, IRequiresSessionState { string serviceVirtualPath; public AspNetRouteServiceHttpHandler(string virtualPath) { this.serviceVirtualPath = virtualPath; } public bool IsReusable { [Fx.Tag.SecurityNote(Miscellaneous = "RequiresReview - called outside PermitOnly context.")] get { return true; } } [Fx.Tag.SecurityNote(Critical = "Entry-point from asp.net, called outside PermitOnly context. ASP.NET calls are critical." + "ExecuteSynchronous is critical because it captures HostedImpersonationContext (and makes it available later) " + "so caller must ensure that this is called in the right place.")] [SecurityCritical] public void ProcessRequest(HttpContext context) { ServiceHostingEnvironment.SafeEnsureInitialized(); HostedHttpRequestAsyncResult.ExecuteSynchronous(context.ApplicationInstance, this.serviceVirtualPath, true, false); } [Fx.Tag.SecurityNote(Critical = "Entry-point from asp.net, called outside PermitOnly context. ASP.NET calls are critical." + "ExecuteSynchronous is critical because it captures HostedImpersonationContext (and makes it available later) " + "so caller must ensure that this is called in the right place.")] [SecurityCritical] public IAsyncResult BeginProcessRequest(HttpContext context, AsyncCallback callback, object extraData) { ServiceHostingEnvironment.SafeEnsureInitialized(); return new HostedHttpRequestAsyncResult(context.ApplicationInstance, this.serviceVirtualPath, true, false, callback, extraData); } [Fx.Tag.SecurityNote(Miscellaneous = "RequiresReview - called outside PermitOnly context.")] public void EndProcessRequest(IAsyncResult result) { HostedHttpRequestAsyncResult.End(result); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Activation { using System.Runtime; using System.Security; using System.ServiceModel; using System.Web; using System.Web.SessionState; class AspNetRouteServiceHttpHandler : IHttpAsyncHandler, IRequiresSessionState { string serviceVirtualPath; public AspNetRouteServiceHttpHandler(string virtualPath) { this.serviceVirtualPath = virtualPath; } public bool IsReusable { [Fx.Tag.SecurityNote(Miscellaneous = "RequiresReview - called outside PermitOnly context.")] get { return true; } } [Fx.Tag.SecurityNote(Critical = "Entry-point from asp.net, called outside PermitOnly context. ASP.NET calls are critical." + "ExecuteSynchronous is critical because it captures HostedImpersonationContext (and makes it available later) " + "so caller must ensure that this is called in the right place.")] [SecurityCritical] public void ProcessRequest(HttpContext context) { ServiceHostingEnvironment.SafeEnsureInitialized(); HostedHttpRequestAsyncResult.ExecuteSynchronous(context.ApplicationInstance, this.serviceVirtualPath, true, false); } [Fx.Tag.SecurityNote(Critical = "Entry-point from asp.net, called outside PermitOnly context. ASP.NET calls are critical." + "ExecuteSynchronous is critical because it captures HostedImpersonationContext (and makes it available later) " + "so caller must ensure that this is called in the right place.")] [SecurityCritical] public IAsyncResult BeginProcessRequest(HttpContext context, AsyncCallback callback, object extraData) { ServiceHostingEnvironment.SafeEnsureInitialized(); return new HostedHttpRequestAsyncResult(context.ApplicationInstance, this.serviceVirtualPath, true, false, callback, extraData); } [Fx.Tag.SecurityNote(Miscellaneous = "RequiresReview - called outside PermitOnly context.")] public void EndProcessRequest(IAsyncResult result) { HostedHttpRequestAsyncResult.End(result); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CheckBoxPopupAdapter.cs
- ObsoleteAttribute.cs
- PageStatePersister.cs
- ComponentEditorForm.cs
- HtmlInputText.cs
- DbProviderFactory.cs
- CLSCompliantAttribute.cs
- BulletChrome.cs
- BufferedWebEventProvider.cs
- ItemCollection.cs
- WebBrowserSiteBase.cs
- AssemblyInfo.cs
- XamlWriter.cs
- SignedPkcs7.cs
- MessageAction.cs
- PointLightBase.cs
- EventListener.cs
- OperandQuery.cs
- DeploymentExceptionMapper.cs
- PropertyGridView.cs
- HttpHandlersInstallComponent.cs
- UnionExpr.cs
- XmlSchemaAll.cs
- ApplicationSecurityInfo.cs
- SqlConnectionPoolProviderInfo.cs
- ContextCorrelationInitializer.cs
- RolePrincipal.cs
- XPathParser.cs
- ExceptionUtil.cs
- InvalidComObjectException.cs
- XmlSchemaElement.cs
- DictionaryMarkupSerializer.cs
- SqlProviderManifest.cs
- SelectedDatesCollection.cs
- BitmapMetadata.cs
- CheckBoxPopupAdapter.cs
- Identifier.cs
- documentsequencetextview.cs
- OperationInvokerTrace.cs
- ClientConvert.cs
- Scene3D.cs
- Dump.cs
- Stopwatch.cs
- ReachIDocumentPaginatorSerializer.cs
- PanelDesigner.cs
- ClaimComparer.cs
- MemberHolder.cs
- XmlAttributes.cs
- BlurEffect.cs
- BitConverter.cs
- NameValuePair.cs
- DataGridViewImageColumn.cs
- MouseActionValueSerializer.cs
- WindowsContainer.cs
- CodeComment.cs
- TemplateBuilder.cs
- Timeline.cs
- PeerNameRecord.cs
- Bitmap.cs
- COM2ExtendedUITypeEditor.cs
- LinqDataSource.cs
- SessionStateContainer.cs
- RsaSecurityToken.cs
- ScrollData.cs
- Win32MouseDevice.cs
- RecognizerStateChangedEventArgs.cs
- DataGridViewLinkCell.cs
- FactoryGenerator.cs
- TextBreakpoint.cs
- ClientScriptManagerWrapper.cs
- DefaultCompensation.cs
- DocumentViewerBase.cs
- _DisconnectOverlappedAsyncResult.cs
- EnumValAlphaComparer.cs
- WebServiceErrorEvent.cs
- AudioBase.cs
- OutputCache.cs
- MembershipPasswordException.cs
- SHA1Managed.cs
- MultipleViewPattern.cs
- RoutedEventArgs.cs
- FrameworkReadOnlyPropertyMetadata.cs
- DesignerDataTable.cs
- HtmlObjectListAdapter.cs
- PrincipalPermission.cs
- DirectionalLight.cs
- PassportIdentity.cs
- PngBitmapDecoder.cs
- PropertyItemInternal.cs
- Array.cs
- CodeGroup.cs
- DataGridViewAdvancedBorderStyle.cs
- TaskScheduler.cs
- EventRoute.cs
- MenuAdapter.cs
- Helper.cs
- PlatformNotSupportedException.cs
- EdmType.cs
- ActivationArguments.cs
- PropertyFilter.cs