Code:
/ FX-1434 / FX-1434 / 1.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
- CategoryNameCollection.cs
- CodeMemberEvent.cs
- SamlEvidence.cs
- FixedBufferAttribute.cs
- DataRecord.cs
- DataGridTextBox.cs
- ProviderConnectionPoint.cs
- PropertyPathWorker.cs
- AccessDataSource.cs
- DataGridViewRowPostPaintEventArgs.cs
- DataGrid.cs
- RequestQueryParser.cs
- LicenseProviderAttribute.cs
- PointKeyFrameCollection.cs
- SessionStateUtil.cs
- ServerProtocol.cs
- TimeZone.cs
- RestClientProxyHandler.cs
- FakeModelItemImpl.cs
- CharUnicodeInfo.cs
- XPathAxisIterator.cs
- ScriptServiceAttribute.cs
- ArgIterator.cs
- IdentityNotMappedException.cs
- AtlasWeb.Designer.cs
- X509ChainPolicy.cs
- CommandID.cs
- IndexedString.cs
- AttributeProviderAttribute.cs
- UnmanagedMarshal.cs
- DocumentPageView.cs
- DocumentPage.cs
- SQLConvert.cs
- AutomationPeer.cs
- SubpageParaClient.cs
- OleDbMetaDataFactory.cs
- XamlInterfaces.cs
- XmlSchemaComplexContentExtension.cs
- X509RawDataKeyIdentifierClause.cs
- UriGenerator.cs
- PerformanceCounter.cs
- XmlMembersMapping.cs
- EllipticalNodeOperations.cs
- ReferencedAssembly.cs
- XmlElementList.cs
- DataServiceQuery.cs
- unsafenativemethodsother.cs
- ActivityExecutorSurrogate.cs
- SqlDataReader.cs
- InkPresenterAutomationPeer.cs
- DatatypeImplementation.cs
- ProgressBarAutomationPeer.cs
- Soap.cs
- HelpKeywordAttribute.cs
- HttpGetProtocolImporter.cs
- unsafenativemethodstextservices.cs
- ProxyWebPart.cs
- ProcessStartInfo.cs
- OleDbCommandBuilder.cs
- Utils.cs
- FontNamesConverter.cs
- ScriptingWebServicesSectionGroup.cs
- XhtmlBasicPhoneCallAdapter.cs
- MethodExpr.cs
- ActivityDesignerLayoutSerializers.cs
- LocalizabilityAttribute.cs
- HMAC.cs
- ProxyWebPartManager.cs
- DateTimeFormatInfoScanner.cs
- dataobject.cs
- EncryptedXml.cs
- DictionaryItemsCollection.cs
- mediaeventshelper.cs
- SynchronizedInputPattern.cs
- SignedPkcs7.cs
- MiniConstructorInfo.cs
- TraceContextEventArgs.cs
- PermissionSetEnumerator.cs
- xdrvalidator.cs
- XmlILStorageConverter.cs
- RetriableClipboard.cs
- DefaultPerformanceCounters.cs
- RouteItem.cs
- Constraint.cs
- FileDialogCustomPlacesCollection.cs
- OutgoingWebResponseContext.cs
- RowBinding.cs
- GetRecipientListRequest.cs
- DesignTimeData.cs
- QueryContinueDragEvent.cs
- AppDomainShutdownMonitor.cs
- ToolboxItemFilterAttribute.cs
- ByteStorage.cs
- Number.cs
- RoleManagerSection.cs
- AtomicFile.cs
- ConfigUtil.cs
- SpStreamWrapper.cs
- DataBoundControlAdapter.cs
- Point3DKeyFrameCollection.cs