Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CalendarDesigner.cs
- StringHandle.cs
- BStrWrapper.cs
- GeometryValueSerializer.cs
- ImportContext.cs
- LinearKeyFrames.cs
- ExpandoObject.cs
- CommentAction.cs
- IEnumerable.cs
- DateTimeConverter.cs
- SqlProfileProvider.cs
- AnnotationAuthorChangedEventArgs.cs
- SqlFunctions.cs
- ResourceDisplayNameAttribute.cs
- WindowsStatic.cs
- XslAstAnalyzer.cs
- ButtonBaseDesigner.cs
- TemplateParser.cs
- TextEndOfLine.cs
- InheritanceRules.cs
- DetailsViewRow.cs
- BuildProvider.cs
- VisualTarget.cs
- StylusButtonCollection.cs
- XPathPatternParser.cs
- UniformGrid.cs
- DictionaryBase.cs
- SystemColors.cs
- WindowsRebar.cs
- DbDataReader.cs
- DataControlButton.cs
- InlinedAggregationOperator.cs
- ClientSettingsSection.cs
- ListItemConverter.cs
- ProfileService.cs
- CodeStatementCollection.cs
- GenericUriParser.cs
- DockPanel.cs
- TrackingMemoryStream.cs
- PositiveTimeSpanValidator.cs
- PerformanceCounterPermissionEntry.cs
- UnmanagedMemoryStream.cs
- SqlReferenceCollection.cs
- HtmlTitle.cs
- SymbolMethod.cs
- Popup.cs
- mediaeventargs.cs
- ClientFormsAuthenticationCredentials.cs
- TreePrinter.cs
- Byte.cs
- hwndwrapper.cs
- lengthconverter.cs
- ManipulationDevice.cs
- MobileCapabilities.cs
- StorageMappingFragment.cs
- IPEndPoint.cs
- RectAnimation.cs
- DataServiceConfiguration.cs
- X509Certificate.cs
- FixedSOMTableRow.cs
- AssemblyResourceLoader.cs
- MembershipAdapter.cs
- TransactionFilter.cs
- KeyTimeConverter.cs
- WaitForChangedResult.cs
- SerializableAttribute.cs
- DataGridRow.cs
- TokenizerHelper.cs
- ParseElementCollection.cs
- MenuItem.cs
- validationstate.cs
- StyleCollectionEditor.cs
- MemberDomainMap.cs
- OleDbException.cs
- StructuredProperty.cs
- ClientTarget.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- SettingsPropertyCollection.cs
- FormViewDesigner.cs
- InstalledFontCollection.cs
- BaseTemplateCodeDomTreeGenerator.cs
- StreamInfo.cs
- DNS.cs
- _SslStream.cs
- AutomationProperties.cs
- SqlConnectionFactory.cs
- SpecularMaterial.cs
- MsmqNonTransactedPoisonHandler.cs
- RegexCharClass.cs
- RectangleGeometry.cs
- Panel.cs
- EntityTemplateUserControl.cs
- ToolStripProgressBar.cs
- LoginName.cs
- PropertyGridEditorPart.cs
- HeaderUtility.cs
- InfoCardService.cs
- InkCanvasAutomationPeer.cs
- FilterInvalidBodyAccessException.cs
- UnmanagedHandle.cs