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
- Control.cs
- CompositeDuplexBindingElement.cs
- TransactionState.cs
- AutomationAttributeInfo.cs
- ListMarkerLine.cs
- DebugViewWriter.cs
- ViewStateException.cs
- PixelShader.cs
- NamespaceEmitter.cs
- CodeGroup.cs
- ListViewUpdatedEventArgs.cs
- NumberEdit.cs
- invalidudtexception.cs
- StorageMappingItemCollection.cs
- RoutedEvent.cs
- ObjectListField.cs
- FontCollection.cs
- SchemaHelper.cs
- DuplicateWaitObjectException.cs
- InkPresenter.cs
- SecurityRequiresReviewAttribute.cs
- RuntimeConfig.cs
- BitVector32.cs
- InputElement.cs
- Label.cs
- Timer.cs
- OutputCacheModule.cs
- SolidBrush.cs
- _ListenerResponseStream.cs
- DataListItem.cs
- Int32Collection.cs
- OdbcEnvironment.cs
- SimpleNameService.cs
- SQLChars.cs
- SqlClientWrapperSmiStream.cs
- OrderedDictionaryStateHelper.cs
- TemplateControlCodeDomTreeGenerator.cs
- ProxyGenerationError.cs
- Math.cs
- ProviderMetadata.cs
- StyleHelper.cs
- DrawListViewColumnHeaderEventArgs.cs
- IisTraceWebEventProvider.cs
- CorrelationExtension.cs
- LabelEditEvent.cs
- XmlStreamStore.cs
- WindowsSlider.cs
- CompilerError.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- CompositionCommandSet.cs
- ReachDocumentReferenceCollectionSerializer.cs
- XmlSchema.cs
- IconConverter.cs
- BindingNavigator.cs
- X509Utils.cs
- MulticastNotSupportedException.cs
- BitStack.cs
- DesignerSerializationOptionsAttribute.cs
- BaseParser.cs
- Accessible.cs
- PartialList.cs
- Conditional.cs
- ActivityWithResultValueSerializer.cs
- tooltip.cs
- FillErrorEventArgs.cs
- SmtpTransport.cs
- IncomingWebResponseContext.cs
- StatusStrip.cs
- Label.cs
- selecteditemcollection.cs
- XmlAttributeProperties.cs
- TextEditorTyping.cs
- BaseDataBoundControl.cs
- AssemblyFilter.cs
- PngBitmapEncoder.cs
- Configuration.cs
- Point3DIndependentAnimationStorage.cs
- FixedDocumentPaginator.cs
- Automation.cs
- AssemblyBuilderData.cs
- PolicyStatement.cs
- ButtonChrome.cs
- _ProxyChain.cs
- mediaclock.cs
- SiteMapDataSourceView.cs
- path.cs
- AuthenticateEventArgs.cs
- SmtpSection.cs
- assemblycache.cs
- Message.cs
- BitmapScalingModeValidation.cs
- NetworkInterface.cs
- WindowsTitleBar.cs
- LogRestartAreaEnumerator.cs
- DataBoundLiteralControl.cs
- HtmlGenericControl.cs
- ContextProperty.cs
- OledbConnectionStringbuilder.cs
- ToolStripGripRenderEventArgs.cs
- HealthMonitoringSectionHelper.cs