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
- DivideByZeroException.cs
- SafeNativeMethods.cs
- HtmlTextBoxAdapter.cs
- MethodBuilderInstantiation.cs
- NamespaceEmitter.cs
- DesignerLoader.cs
- PreparingEnlistment.cs
- XmlElementAttributes.cs
- SrgsGrammarCompiler.cs
- ExternalException.cs
- StaticFileHandler.cs
- ReflectPropertyDescriptor.cs
- PersistenceTypeAttribute.cs
- SystemResourceHost.cs
- XhtmlBasicLabelAdapter.cs
- CacheMemory.cs
- ConfigurationStrings.cs
- BindingList.cs
- PipelineComponent.cs
- DiscardableAttribute.cs
- ManualResetEvent.cs
- WebControlParameterProxy.cs
- ReachObjectContext.cs
- MarkerProperties.cs
- WebControlAdapter.cs
- _StreamFramer.cs
- NotifyCollectionChangedEventArgs.cs
- BatchServiceHost.cs
- XmlNamespaceMapping.cs
- DrawingServices.cs
- MulticastNotSupportedException.cs
- MimeTypePropertyAttribute.cs
- Formatter.cs
- DesignTimeVisibleAttribute.cs
- GeneralTransform.cs
- TextAnchor.cs
- LogManagementAsyncResult.cs
- precedingquery.cs
- ResXResourceReader.cs
- Color.cs
- CodeGenHelper.cs
- ConditionalExpression.cs
- DbParameterHelper.cs
- SmiMetaDataProperty.cs
- SqlUDTStorage.cs
- _ScatterGatherBuffers.cs
- FlagsAttribute.cs
- FileAuthorizationModule.cs
- Size.cs
- Matrix.cs
- DelegateArgument.cs
- RelOps.cs
- base64Transforms.cs
- ImageClickEventArgs.cs
- PauseStoryboard.cs
- ZoneLinkButton.cs
- ProviderUtil.cs
- PageRanges.cs
- StdRegProviderWrapper.cs
- DataTemplateKey.cs
- CacheHelper.cs
- ValidationRuleCollection.cs
- IFlowDocumentViewer.cs
- MetadataPropertyvalue.cs
- ValidationResult.cs
- LocalizabilityAttribute.cs
- TreeNodeCollection.cs
- Image.cs
- RowBinding.cs
- HtmlInputButton.cs
- CannotUnloadAppDomainException.cs
- Hex.cs
- XMLSchema.cs
- WebPartManagerInternals.cs
- ExpressionBuilderContext.cs
- DocumentScope.cs
- smtppermission.cs
- FlowLayout.cs
- RuleProcessor.cs
- FunctionImportElement.cs
- SplineKeyFrames.cs
- SHA384.cs
- SecurityDescriptor.cs
- dataobject.cs
- CapabilitiesRule.cs
- StorageMappingItemLoader.cs
- WebDescriptionAttribute.cs
- LayoutExceptionEventArgs.cs
- SelectionProviderWrapper.cs
- XslUrlEditor.cs
- BitmapEffectDrawingContextWalker.cs
- ThreadStateException.cs
- BitmapScalingModeValidation.cs
- NamespaceExpr.cs
- PagePropertiesChangingEventArgs.cs
- SoapProtocolReflector.cs
- Int32RectValueSerializer.cs
- ProfileParameter.cs
- ArrayHelper.cs
- ReadOnlyCollectionBase.cs