Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EvidenceTypeDescriptor.cs
- SqlProfileProvider.cs
- LoggedException.cs
- InvalidateEvent.cs
- VirtualDirectoryMappingCollection.cs
- SQLBytesStorage.cs
- FontUnitConverter.cs
- MimePart.cs
- DrawingContextWalker.cs
- HelpProvider.cs
- DataStorage.cs
- InnerItemCollectionView.cs
- ReceiveContext.cs
- PictureBox.cs
- NameSpaceEvent.cs
- PerformanceCounterCategory.cs
- UIElement3D.cs
- CodeCastExpression.cs
- Helpers.cs
- Attribute.cs
- XmlExtensionFunction.cs
- LocationReferenceEnvironment.cs
- Font.cs
- IDReferencePropertyAttribute.cs
- BitmapImage.cs
- HtmlInputPassword.cs
- InlineCollection.cs
- DeploymentSection.cs
- control.ime.cs
- WebPartEventArgs.cs
- ReadOnlyPropertyMetadata.cs
- AxisAngleRotation3D.cs
- SqlEnums.cs
- TextContainerHelper.cs
- ReaderOutput.cs
- WebBrowser.cs
- OpCopier.cs
- DictationGrammar.cs
- StickyNoteContentControl.cs
- DbDataRecord.cs
- StateManagedCollection.cs
- SqlMethodCallConverter.cs
- _IPv4Address.cs
- StrokeNodeEnumerator.cs
- ComponentEvent.cs
- MeasureItemEvent.cs
- HandleCollector.cs
- Attributes.cs
- ConsumerConnectionPointCollection.cs
- TreeWalkHelper.cs
- CounterSet.cs
- MetaTable.cs
- EventArgs.cs
- WebSysDefaultValueAttribute.cs
- InvokeBinder.cs
- XmlSchemaElement.cs
- LogRestartAreaEnumerator.cs
- CodeSnippetStatement.cs
- TrustLevelCollection.cs
- ServerValidateEventArgs.cs
- OperationAbortedException.cs
- EntityDataSourceWrapperCollection.cs
- DeflateInput.cs
- SoapMessage.cs
- TextOnlyOutput.cs
- XmlObjectSerializerReadContextComplex.cs
- BooleanSwitch.cs
- DataGridTextBoxColumn.cs
- BamlStream.cs
- EdmProviderManifest.cs
- InvokeAction.cs
- HttpHandlersSection.cs
- MethodImplAttribute.cs
- ControlEvent.cs
- RC2CryptoServiceProvider.cs
- MergePropertyDescriptor.cs
- FormsAuthenticationEventArgs.cs
- SoapServerMethod.cs
- ManifestResourceInfo.cs
- UpdatePanelTrigger.cs
- GlyphElement.cs
- SQLMembershipProvider.cs
- ChannelManager.cs
- TableCell.cs
- ExeConfigurationFileMap.cs
- ProviderUtil.cs
- DataControlButton.cs
- PartialTrustHelpers.cs
- ByteStorage.cs
- UpdateEventArgs.cs
- CmsInterop.cs
- PagerStyle.cs
- SqlHelper.cs
- ButtonBaseAutomationPeer.cs
- ExecutionContext.cs
- CircleEase.cs
- Config.cs
- DataFormats.cs
- HttpModulesSection.cs
- LoadWorkflowByKeyAsyncResult.cs