Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeBlockBuilder.cs
- SQLMoney.cs
- SecurityBindingElement.cs
- HttpHandlerAction.cs
- EventLogPermissionEntryCollection.cs
- SimpleRecyclingCache.cs
- StrongNameIdentityPermission.cs
- RC2CryptoServiceProvider.cs
- FlowDocumentView.cs
- HttpPostedFile.cs
- UIPropertyMetadata.cs
- ToolStripManager.cs
- ComPlusAuthorization.cs
- DesignerWidgets.cs
- DataKey.cs
- bidPrivateBase.cs
- DependencyPropertyHelper.cs
- ListBox.cs
- CompareValidator.cs
- PeerInvitationResponse.cs
- DefaultObjectMappingItemCollection.cs
- CachingHintValidation.cs
- PropertyItem.cs
- HttpFileCollectionWrapper.cs
- FormsAuthentication.cs
- NotifyInputEventArgs.cs
- BoundingRectTracker.cs
- SelectionChangedEventArgs.cs
- ContentDisposition.cs
- ToolStripContentPanel.cs
- NetworkStream.cs
- HttpListenerRequest.cs
- BoundPropertyEntry.cs
- TreeNodeEventArgs.cs
- StyleHelper.cs
- SiteMapNodeCollection.cs
- SessionPageStatePersister.cs
- QuestionEventArgs.cs
- PositiveTimeSpanValidatorAttribute.cs
- SqlGenericUtil.cs
- XmlSchemaParticle.cs
- RequestUriProcessor.cs
- XmlNodeReader.cs
- iisPickupDirectory.cs
- ComponentCache.cs
- Stacktrace.cs
- CellTreeNode.cs
- WebPartDisplayModeCollection.cs
- AdapterUtil.cs
- DataGridTablesFactory.cs
- Transform3DCollection.cs
- FeatureAttribute.cs
- ObjectViewQueryResultData.cs
- GridViewSelectEventArgs.cs
- FlatButtonAppearance.cs
- ToolStripDropDown.cs
- ServicesUtilities.cs
- MissingManifestResourceException.cs
- ExpressionList.cs
- HttpHandlersSection.cs
- ExitEventArgs.cs
- EventRecord.cs
- FormClosedEvent.cs
- ListSurrogate.cs
- ObjectStorage.cs
- TemplateBindingExpressionConverter.cs
- AspNetSynchronizationContext.cs
- AnonymousIdentificationSection.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- ColorMap.cs
- CodeIdentifiers.cs
- AspNetHostingPermission.cs
- ToolStripPanelRenderEventArgs.cs
- ColorTransformHelper.cs
- ComplexObject.cs
- SelectedDatesCollection.cs
- ACL.cs
- StylusSystemGestureEventArgs.cs
- Journaling.cs
- RecognizedPhrase.cs
- StringAnimationUsingKeyFrames.cs
- EntityContainerAssociationSet.cs
- PathFigureCollectionConverter.cs
- ContainerActivationHelper.cs
- WindowsFormsSectionHandler.cs
- DriveNotFoundException.cs
- DataSourceControlBuilder.cs
- EllipseGeometry.cs
- CodeTypeConstructor.cs
- SecurityManager.cs
- VectorAnimation.cs
- CompositeScriptReference.cs
- MainMenu.cs
- ValueQuery.cs
- BindingCompleteEventArgs.cs
- AppDomain.cs
- StrokeCollectionDefaultValueFactory.cs
- ZipQueryOperator.cs
- DPAPIProtectedConfigurationProvider.cs
- ServiceDiscoveryBehavior.cs