Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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. //------------------------------------------------------------------------------ //// 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
- AbstractSvcMapFileLoader.cs
- ComponentDispatcher.cs
- ToolStripControlHost.cs
- LockingPersistenceProvider.cs
- FormsAuthenticationCredentials.cs
- StorageBasedPackageProperties.cs
- UrlMapping.cs
- StateWorkerRequest.cs
- ToolConsole.cs
- OuterGlowBitmapEffect.cs
- SqlXml.cs
- CollectionBuilder.cs
- WpfKnownMember.cs
- InputProviderSite.cs
- RSAOAEPKeyExchangeFormatter.cs
- JournalEntry.cs
- SpecialNameAttribute.cs
- Win32Native.cs
- CurrencyManager.cs
- CompleteWizardStep.cs
- TagMapCollection.cs
- webproxy.cs
- GradientBrush.cs
- RegionInfo.cs
- OleCmdHelper.cs
- Helpers.cs
- PropertyPath.cs
- ImmutableObjectAttribute.cs
- ClientScriptManager.cs
- FamilyMapCollection.cs
- XmlElementAttribute.cs
- IDReferencePropertyAttribute.cs
- ScaleTransform.cs
- DirectoryInfo.cs
- RegexParser.cs
- MaskDesignerDialog.cs
- LightweightCodeGenerator.cs
- TableAutomationPeer.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- Win32Exception.cs
- UpnEndpointIdentityExtension.cs
- RegexTree.cs
- TakeQueryOptionExpression.cs
- DesigntimeLicenseContext.cs
- GeneralTransform3DTo2DTo3D.cs
- DbgUtil.cs
- RegexCharClass.cs
- HttpListenerException.cs
- DiagnosticEventProvider.cs
- PageBuildProvider.cs
- GeneratedCodeAttribute.cs
- ContentFilePart.cs
- GeneralTransform3DTo2DTo3D.cs
- RegexParser.cs
- FormViewInsertedEventArgs.cs
- HitTestResult.cs
- CacheHelper.cs
- DataPagerFieldItem.cs
- PerformanceCounterTraceRecord.cs
- VisualState.cs
- UpdatePanelControlTrigger.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- DrawingContextWalker.cs
- ImageIndexConverter.cs
- SamlConstants.cs
- QilValidationVisitor.cs
- SHA256Cng.cs
- DynamicHyperLink.cs
- TextTreeInsertElementUndoUnit.cs
- CryptoConfig.cs
- HttpConfigurationSystem.cs
- JavaScriptObjectDeserializer.cs
- XmlSchemaGroupRef.cs
- DataContractSerializerElement.cs
- Publisher.cs
- ModelMemberCollection.cs
- NativeWrapper.cs
- EDesignUtil.cs
- AppearanceEditorPart.cs
- MarshalDirectiveException.cs
- TraceRecord.cs
- DifferencingCollection.cs
- XPathNavigator.cs
- CommonDialog.cs
- sqlnorm.cs
- ConfigurationManagerHelper.cs
- TextPointer.cs
- SecurityManager.cs
- DES.cs
- SizeF.cs
- AppSettingsExpressionBuilder.cs
- SiteMap.cs
- ElementUtil.cs
- _TimerThread.cs
- SemanticResultValue.cs
- SignatureDescription.cs
- UnionQueryOperator.cs
- MethodToken.cs
- AnnouncementInnerClient11.cs
- SerializationException.cs