Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / SimpleHandlerFactory.cs / 1305376 / SimpleHandlerFactory.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * Handler Factory implementation for ASP.NET files * * Copyright (c) 2000 Microsoft Corporation */ namespace System.Web.UI { using System; using System.Web.Compilation; using Debug = System.Web.Util.Debug; /* * Handler Factory implementation for ASP.NET files */ internal class SimpleHandlerFactory : IHttpHandlerFactory2 { internal SimpleHandlerFactory() { } public virtual IHttpHandler GetHandler(HttpContext context, string requestType, string virtualPath, string path) { // This should never get called //Debug.Assert(false); return ((IHttpHandlerFactory2)this).GetHandler(context, requestType, VirtualPath.CreateNonRelative(virtualPath), path); } IHttpHandler IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) { BuildResultCompiledType result = (BuildResultCompiledType)BuildManager.GetVPathBuildResult( context, virtualPath); // Make sure the type has the correct base class (ASURT 123677) Util.CheckAssignableType(typeof(IHttpHandler), result.ResultType); return (IHttpHandler) result.CreateInstance(); } public virtual void ReleaseHandler(IHttpHandler handler) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * Handler Factory implementation for ASP.NET files * * Copyright (c) 2000 Microsoft Corporation */ namespace System.Web.UI { using System; using System.Web.Compilation; using Debug = System.Web.Util.Debug; /* * Handler Factory implementation for ASP.NET files */ internal class SimpleHandlerFactory : IHttpHandlerFactory2 { internal SimpleHandlerFactory() { } public virtual IHttpHandler GetHandler(HttpContext context, string requestType, string virtualPath, string path) { // This should never get called //Debug.Assert(false); return ((IHttpHandlerFactory2)this).GetHandler(context, requestType, VirtualPath.CreateNonRelative(virtualPath), path); } IHttpHandler IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) { BuildResultCompiledType result = (BuildResultCompiledType)BuildManager.GetVPathBuildResult( context, virtualPath); // Make sure the type has the correct base class (ASURT 123677) Util.CheckAssignableType(typeof(IHttpHandler), result.ResultType); return (IHttpHandler) result.CreateInstance(); } public virtual void ReleaseHandler(IHttpHandler handler) { } } } // 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
- NativeStructs.cs
- PropertyGridEditorPart.cs
- ColumnHeaderConverter.cs
- ValueTypeFixupInfo.cs
- ManagedIStream.cs
- SecurityCriticalDataForSet.cs
- SiteMapNodeItem.cs
- XComponentModel.cs
- EditingMode.cs
- MatrixAnimationUsingPath.cs
- StylusLogic.cs
- _SingleItemRequestCache.cs
- PackageFilter.cs
- TrackingMemoryStream.cs
- CodeIdentifier.cs
- WsdlExporter.cs
- CurrencyManager.cs
- PriorityBindingExpression.cs
- FileUtil.cs
- DataControlLinkButton.cs
- NodeInfo.cs
- SystemInformation.cs
- PathGradientBrush.cs
- Deflater.cs
- BypassElementCollection.cs
- PopupEventArgs.cs
- StylusPlugin.cs
- UnsafeNativeMethodsMilCoreApi.cs
- XmlParserContext.cs
- BaseTransportHeaders.cs
- XmlSchemaSimpleContentRestriction.cs
- ObjectSecurityT.cs
- ClientScriptManager.cs
- Utils.cs
- EllipseGeometry.cs
- WorkflowMarkupSerializerMapping.cs
- DesignerObjectListAdapter.cs
- DropShadowEffect.cs
- MessageQueue.cs
- WindowsTokenRoleProvider.cs
- cache.cs
- SQLInt64.cs
- Triplet.cs
- Inflater.cs
- WebPartCancelEventArgs.cs
- designeractionbehavior.cs
- Message.cs
- ScrollViewer.cs
- UIElementAutomationPeer.cs
- PathFigureCollection.cs
- SqlUDTStorage.cs
- VerificationException.cs
- EventLogPermissionHolder.cs
- SessionSwitchEventArgs.cs
- MdImport.cs
- FindCriteriaCD1.cs
- DiscoveryMessageSequenceGenerator.cs
- GridViewRowCollection.cs
- Help.cs
- HttpApplication.cs
- EntityTypeEmitter.cs
- Task.cs
- WorkflowServiceAttributes.cs
- ToolStripSeparatorRenderEventArgs.cs
- X509SecurityTokenAuthenticator.cs
- SqlMethodAttribute.cs
- RelatedEnd.cs
- DataGridGeneralPage.cs
- NullRuntimeConfig.cs
- Shared.cs
- VariableQuery.cs
- ADMembershipUser.cs
- SecUtil.cs
- BinaryObjectReader.cs
- DataColumnMappingCollection.cs
- ScrollChangedEventArgs.cs
- WindowsContainer.cs
- XmlSerializableWriter.cs
- OutputWindow.cs
- X509IssuerSerialKeyIdentifierClause.cs
- EdmSchemaAttribute.cs
- MimeTypeMapper.cs
- GenericEnumConverter.cs
- SymbolDocumentInfo.cs
- BitmapCodecInfoInternal.cs
- ListBoxItemWrapperAutomationPeer.cs
- GiveFeedbackEvent.cs
- DSASignatureFormatter.cs
- SspiSafeHandles.cs
- OracleParameter.cs
- ServerValidateEventArgs.cs
- SimpleTextLine.cs
- ChineseLunisolarCalendar.cs
- LoadItemsEventArgs.cs
- EnumBuilder.cs
- FixedPage.cs
- MetadataUtil.cs
- SessionIDManager.cs
- ResourcesChangeInfo.cs
- KeyValueSerializer.cs