Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / SimpleHandlerFactory.cs / 1 / 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
- XmlConvert.cs
- FixedSOMFixedBlock.cs
- RangeValidator.cs
- ToolStripPanelRow.cs
- TableLayoutPanelCellPosition.cs
- FormsAuthenticationUserCollection.cs
- WaitHandle.cs
- DataServiceCollectionOfT.cs
- Memoizer.cs
- TableLayout.cs
- DataBinding.cs
- TypeLoadException.cs
- LoadedOrUnloadedOperation.cs
- Rotation3DAnimation.cs
- StaticSiteMapProvider.cs
- Classification.cs
- CodeDOMProvider.cs
- Pts.cs
- QueryStringParameter.cs
- ScriptServiceAttribute.cs
- PeerNameRecordCollection.cs
- LabelLiteral.cs
- SqlParameterCollection.cs
- RectConverter.cs
- AttributeConverter.cs
- CompiledQuery.cs
- PropertyGeneratedEventArgs.cs
- _SslStream.cs
- PrinterUnitConvert.cs
- EmptyStringExpandableObjectConverter.cs
- ArgumentException.cs
- ReflectionUtil.cs
- TitleStyle.cs
- ContainerUIElement3D.cs
- ContentElement.cs
- SafeNativeMethods.cs
- WarningException.cs
- MruCache.cs
- CipherData.cs
- HotSpot.cs
- XmlAttribute.cs
- CompModSwitches.cs
- OneOf.cs
- ExtentKey.cs
- RolePrincipal.cs
- AstTree.cs
- HandlerBase.cs
- Int16Converter.cs
- ClientEventManager.cs
- UpdateProgress.cs
- GridEntryCollection.cs
- ProfilePropertyNameValidator.cs
- QueryCursorEventArgs.cs
- InvalidateEvent.cs
- EditingMode.cs
- ClientBuildManagerCallback.cs
- TemplateBuilder.cs
- EncodingFallbackAwareXmlTextWriter.cs
- Parameter.cs
- CustomAttributeFormatException.cs
- WebServiceFaultDesigner.cs
- ResourceDescriptionAttribute.cs
- DataKeyPropertyAttribute.cs
- _SslState.cs
- _DisconnectOverlappedAsyncResult.cs
- Clock.cs
- Helpers.cs
- Activator.cs
- CodeMemberProperty.cs
- ChangePasswordDesigner.cs
- CodeEventReferenceExpression.cs
- UIElement3D.cs
- PrintControllerWithStatusDialog.cs
- CompositeDispatchFormatter.cs
- ToolboxItemWrapper.cs
- BaseWebProxyFinder.cs
- ToolTipAutomationPeer.cs
- SmiGettersStream.cs
- CollectionView.cs
- PictureBox.cs
- MobileTextWriter.cs
- WebEvents.cs
- TextServicesLoader.cs
- ObjectSet.cs
- ApplicationBuildProvider.cs
- RuleSetReference.cs
- CfgArc.cs
- PagesChangedEventArgs.cs
- HtmlPanelAdapter.cs
- DictionaryGlobals.cs
- AlignmentYValidation.cs
- LayoutManager.cs
- CodeExpressionStatement.cs
- SqlProviderUtilities.cs
- SQLDecimalStorage.cs
- SystemException.cs
- HttpCacheVary.cs
- ExpressionBindingCollection.cs
- PtsCache.cs
- SoapReflectionImporter.cs