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
- Classification.cs
- Rule.cs
- XsltException.cs
- InProcStateClientManager.cs
- Dynamic.cs
- ObjectConverter.cs
- HttpCapabilitiesEvaluator.cs
- MatrixAnimationUsingKeyFrames.cs
- EncryptedPackage.cs
- PrincipalPermission.cs
- ExpressionBuilder.cs
- CodeAttributeArgumentCollection.cs
- RuntimeArgumentHandle.cs
- LayoutEvent.cs
- ListViewItemMouseHoverEvent.cs
- dbenumerator.cs
- CuspData.cs
- XsltFunctions.cs
- CompositeActivityDesigner.cs
- GAC.cs
- KeyFrames.cs
- odbcmetadatacolumnnames.cs
- MultiPropertyDescriptorGridEntry.cs
- Int16Converter.cs
- ComponentRenameEvent.cs
- FormClosingEvent.cs
- XPathMessageFilterElementComparer.cs
- EdmFunction.cs
- ProxyGenerator.cs
- FigureParaClient.cs
- OleDbCommandBuilder.cs
- IProvider.cs
- DependencyPropertyChangedEventArgs.cs
- DataStreams.cs
- CodeCompiler.cs
- TypedRowHandler.cs
- ProxyGenerationError.cs
- OutputCacheSection.cs
- DocumentXPathNavigator.cs
- DataSourceConverter.cs
- ImageListUtils.cs
- TaiwanCalendar.cs
- DrawingState.cs
- IResourceProvider.cs
- InitializerFacet.cs
- OdbcDataReader.cs
- SoapSchemaImporter.cs
- ControlIdConverter.cs
- ObjectParameter.cs
- ComponentChangedEvent.cs
- HTMLTextWriter.cs
- CleanUpVirtualizedItemEventArgs.cs
- QilDataSource.cs
- ProcessInfo.cs
- TextSegment.cs
- GenericTypeParameterBuilder.cs
- BaseCodePageEncoding.cs
- DeclarativeCatalogPart.cs
- CryptoHandle.cs
- SinglePageViewer.cs
- Help.cs
- GraphicsPath.cs
- PartitionResolver.cs
- DataServiceRequest.cs
- CharEnumerator.cs
- GridToolTip.cs
- StringUtil.cs
- BaseInfoTable.cs
- IDQuery.cs
- ToolBarTray.cs
- SelectedCellsCollection.cs
- TypeNameConverter.cs
- EpmSyndicationContentDeSerializer.cs
- EntityConnection.cs
- DbConnectionHelper.cs
- SmiConnection.cs
- RelationshipFixer.cs
- UnicodeEncoding.cs
- ArrangedElementCollection.cs
- AssemblySettingAttributes.cs
- MenuItemBinding.cs
- ThreadTrace.cs
- RecordManager.cs
- XmlSchemaDocumentation.cs
- ArcSegment.cs
- ZoneLinkButton.cs
- UnicodeEncoding.cs
- QilBinary.cs
- XmlSchemaSimpleTypeList.cs
- SchemaMerger.cs
- MediaPlayerState.cs
- Rfc2898DeriveBytes.cs
- DataListItem.cs
- SpotLight.cs
- SQLMembershipProvider.cs
- ConsumerConnectionPoint.cs
- TargetInvocationException.cs
- WindowsIdentity.cs
- XmlWrappingWriter.cs
- DataGridViewBand.cs