Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / SimpleHandlerFactory.cs / 4 / 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
- Page.cs
- Timeline.cs
- RecognizedWordUnit.cs
- CodeCompiler.cs
- MulticastDelegate.cs
- AdapterUtil.cs
- SetterBase.cs
- BasicAsyncResult.cs
- VerificationException.cs
- StoreContentChangedEventArgs.cs
- ItemsPresenter.cs
- FixedPage.cs
- TableHeaderCell.cs
- CursorInteropHelper.cs
- ErrorHandler.cs
- SqlDelegatedTransaction.cs
- SortFieldComparer.cs
- ExternalCalls.cs
- Size3D.cs
- ContentWrapperAttribute.cs
- IdentityNotMappedException.cs
- PlatformCulture.cs
- JoinGraph.cs
- GroupStyle.cs
- PowerStatus.cs
- CuspData.cs
- HttpCookieCollection.cs
- PermissionAttributes.cs
- PropertyFilterAttribute.cs
- Bold.cs
- DataGridViewRowCollection.cs
- SecureStringHasher.cs
- ViewKeyConstraint.cs
- InvalidProgramException.cs
- HtmlTableCellCollection.cs
- UserCancellationException.cs
- RoutedEventValueSerializer.cs
- GifBitmapEncoder.cs
- CodeMemberEvent.cs
- GeometryGroup.cs
- ActivityWithResultValueSerializer.cs
- DbParameterHelper.cs
- ClaimSet.cs
- WorkflowTimerService.cs
- DataGridViewRow.cs
- UriWriter.cs
- StickyNoteContentControl.cs
- NativeMethods.cs
- ThreadStartException.cs
- linebase.cs
- BitmapVisualManager.cs
- RtfNavigator.cs
- FileFormatException.cs
- SynchronizedDispatch.cs
- SectionUpdates.cs
- PeerNodeAddress.cs
- XmlSignificantWhitespace.cs
- BookmarkList.cs
- DocumentPage.cs
- TriggerActionCollection.cs
- updatecommandorderer.cs
- Trace.cs
- ObjectDataSourceMethodEditor.cs
- WriteLineDesigner.xaml.cs
- GridView.cs
- ReadOnlyMetadataCollection.cs
- Ref.cs
- KeyInfo.cs
- MenuEventArgs.cs
- ListViewSelectEventArgs.cs
- DesigntimeLicenseContextSerializer.cs
- XmlChildEnumerator.cs
- HostingPreferredMapPath.cs
- CustomCategoryAttribute.cs
- CompModSwitches.cs
- CounterSample.cs
- WebBrowserEvent.cs
- WsatServiceCertificate.cs
- LeaseManager.cs
- SubstitutionList.cs
- HierarchicalDataTemplate.cs
- ViewRendering.cs
- Pen.cs
- OrderByLifter.cs
- MappedMetaModel.cs
- SqlMethodCallConverter.cs
- ObjectQueryState.cs
- DiscoveryReferences.cs
- PerfService.cs
- MainMenu.cs
- Partitioner.cs
- AssemblyResourceLoader.cs
- SplitContainer.cs
- x509utils.cs
- dbdatarecord.cs
- SmiContext.cs
- InheritedPropertyChangedEventArgs.cs
- CatalogPart.cs
- Graph.cs
- RangeBaseAutomationPeer.cs