Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / SimpleHandlerFactory.cs / 2 / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ChannelCacheSettings.cs
- DrawingAttributes.cs
- WebPartConnectionsConfigureVerb.cs
- shaperfactory.cs
- ScopelessEnumAttribute.cs
- PhysicalFontFamily.cs
- TextContainerHelper.cs
- FixedSOMPageConstructor.cs
- MouseCaptureWithinProperty.cs
- ContourSegment.cs
- WindowsNonControl.cs
- DataList.cs
- ExpressionCopier.cs
- CopyOnWriteList.cs
- ImageUrlEditor.cs
- SQLByte.cs
- Collection.cs
- PropertyChangeTracker.cs
- DescendantQuery.cs
- XmlUtil.cs
- ParenthesizePropertyNameAttribute.cs
- IResourceProvider.cs
- WebConvert.cs
- ProcessingInstructionAction.cs
- EnumerableRowCollection.cs
- XmlSchemaImport.cs
- DynamicObjectAccessor.cs
- ObjectConverter.cs
- ScriptingWebServicesSectionGroup.cs
- ImportOptions.cs
- InputLanguageCollection.cs
- ViewStateChangedEventArgs.cs
- DataGridViewComboBoxColumn.cs
- basevalidator.cs
- FilterableAttribute.cs
- RoleManagerEventArgs.cs
- IconHelper.cs
- BinaryFormatter.cs
- SerializableAttribute.cs
- CfgParser.cs
- XmlWellformedWriter.cs
- SiteMapNode.cs
- NameNode.cs
- SQLGuidStorage.cs
- ColumnProvider.cs
- brushes.cs
- ValueOfAction.cs
- HashCryptoHandle.cs
- WhitespaceRule.cs
- Stream.cs
- DocumentSequenceHighlightLayer.cs
- MappingItemCollection.cs
- MaterialCollection.cs
- NamespaceExpr.cs
- ListViewInsertionMark.cs
- AssociationTypeEmitter.cs
- ReliableChannelListener.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- LiteralControl.cs
- AsymmetricSignatureFormatter.cs
- Focus.cs
- MessageQueueEnumerator.cs
- TransactionTraceIdentifier.cs
- ApplyTemplatesAction.cs
- KerberosRequestorSecurityToken.cs
- WebPartRestoreVerb.cs
- Input.cs
- SmiContext.cs
- CorePropertiesFilter.cs
- FastPropertyAccessor.cs
- DataGridViewCellEventArgs.cs
- SecurityManager.cs
- PageRequestManager.cs
- wgx_exports.cs
- XmlSchemaAnnotation.cs
- NonVisualControlAttribute.cs
- RtfControlWordInfo.cs
- ListViewHitTestInfo.cs
- Point3D.cs
- XmlMembersMapping.cs
- ButtonField.cs
- HtmlFormWrapper.cs
- ColumnMap.cs
- ContentValidator.cs
- QilReplaceVisitor.cs
- ConsoleEntryPoint.cs
- ResourcesChangeInfo.cs
- RadioButtonPopupAdapter.cs
- CryptoSession.cs
- SortedDictionary.cs
- ExpressionBinding.cs
- CollectionViewGroupRoot.cs
- CodeGotoStatement.cs
- CodeArgumentReferenceExpression.cs
- TypeListConverter.cs
- DataStreamFromComStream.cs
- SoapTypeAttribute.cs
- InputBinder.cs
- XmlDictionaryWriter.cs
- DataGridViewCheckBoxColumn.cs