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
- StorageInfo.cs
- SemanticResultValue.cs
- DbProviderSpecificTypePropertyAttribute.cs
- Rule.cs
- TypeLibConverter.cs
- AudioBase.cs
- GACMembershipCondition.cs
- TdsParameterSetter.cs
- RandomDelayQueuedSendsAsyncResult.cs
- TransportBindingElement.cs
- RadialGradientBrush.cs
- Color.cs
- CompilerTypeWithParams.cs
- AuthorizationRule.cs
- Hex.cs
- XamlSerializerUtil.cs
- pingexception.cs
- TemplateBindingExtension.cs
- PropertyDescriptorCollection.cs
- FocusManager.cs
- SafeEventLogWriteHandle.cs
- SmtpException.cs
- EdmProperty.cs
- ScriptComponentDescriptor.cs
- ControlBuilderAttribute.cs
- DropDownButton.cs
- ExpressionTextBox.xaml.cs
- SqlDataAdapter.cs
- XmlSchemaValidationException.cs
- ZipIOFileItemStream.cs
- FormatStringEditor.cs
- AutomationPropertyInfo.cs
- CallTemplateAction.cs
- BindingRestrictions.cs
- CellNormalizer.cs
- Selection.cs
- CustomAttribute.cs
- WebServiceClientProxyGenerator.cs
- DataGridViewComboBoxCell.cs
- DetailsViewRowCollection.cs
- HttpRequest.cs
- EditorPart.cs
- OleDbCommandBuilder.cs
- XmlTextReader.cs
- _Events.cs
- PeerEndPoint.cs
- ObjectStateManagerMetadata.cs
- Context.cs
- ProfileParameter.cs
- ProcessModelInfo.cs
- MultipartIdentifier.cs
- CornerRadiusConverter.cs
- MissingSatelliteAssemblyException.cs
- ObjectQueryProvider.cs
- pingexception.cs
- ToolStripRendererSwitcher.cs
- SingleTagSectionHandler.cs
- DataListItemCollection.cs
- ControlDesigner.cs
- EdmConstants.cs
- TypeGeneratedEventArgs.cs
- StreamAsIStream.cs
- TableDetailsCollection.cs
- AsymmetricAlgorithm.cs
- StateDesigner.Layouts.cs
- EncryptedKey.cs
- XmlSchemaObjectTable.cs
- SafeNativeMethods.cs
- WindowsRegion.cs
- Expander.cs
- FastPropertyAccessor.cs
- BrushConverter.cs
- Misc.cs
- PathHelper.cs
- Keywords.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- FontUnitConverter.cs
- CodeGotoStatement.cs
- RotateTransform3D.cs
- DataFormats.cs
- ThreadTrace.cs
- SR.cs
- RadioButtonPopupAdapter.cs
- XmlEventCache.cs
- PersonalizationStateQuery.cs
- FileDialog.cs
- TableStyle.cs
- CapabilitiesRule.cs
- MeshGeometry3D.cs
- ColorContext.cs
- StorageModelBuildProvider.cs
- MetadataItemEmitter.cs
- CroppedBitmap.cs
- FixedDSBuilder.cs
- DiscreteKeyFrames.cs
- XmlQueryStaticData.cs
- _ListenerResponseStream.cs
- OleAutBinder.cs
- WorkflowInstanceQuery.cs
- Types.cs