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
- UserPreferenceChangedEventArgs.cs
- LayoutTableCell.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- SoapAttributeOverrides.cs
- DesignOnlyAttribute.cs
- ReverseInheritProperty.cs
- PackageDigitalSignatureManager.cs
- path.cs
- ParameterCollection.cs
- StatusBar.cs
- _FtpControlStream.cs
- Win32KeyboardDevice.cs
- SymmetricKeyWrap.cs
- _NetworkingPerfCounters.cs
- Char.cs
- FacetChecker.cs
- ToolStripPanelRow.cs
- CookielessHelper.cs
- FontUnitConverter.cs
- FixUpCollection.cs
- SafeCryptoHandles.cs
- AppDomainProtocolHandler.cs
- DesignerTransactionCloseEvent.cs
- XmlAttribute.cs
- PropertyFilterAttribute.cs
- ISAPIApplicationHost.cs
- BulletDecorator.cs
- SafeRegistryHandle.cs
- DataSourceView.cs
- SqlTriggerAttribute.cs
- ImageUrlEditor.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- AlternateViewCollection.cs
- NameValueFileSectionHandler.cs
- SemanticTag.cs
- Model3D.cs
- DragStartedEventArgs.cs
- BaseTypeViewSchema.cs
- ClrProviderManifest.cs
- CqlGenerator.cs
- OracleRowUpdatedEventArgs.cs
- CommandPlan.cs
- JsonServiceDocumentSerializer.cs
- Point4D.cs
- TextRangeSerialization.cs
- DataControlFieldCollection.cs
- JsonQNameDataContract.cs
- HttpServerProtocol.cs
- CodeStatementCollection.cs
- EdmItemCollection.cs
- ArrayMergeHelper.cs
- HtmlInputPassword.cs
- BoolLiteral.cs
- ResourceReferenceKeyNotFoundException.cs
- SafeCertificateStore.cs
- HtmlImage.cs
- FixedSOMTableRow.cs
- DiffuseMaterial.cs
- CriticalExceptions.cs
- ServiceModelConfiguration.cs
- SoapFaultCodes.cs
- ToolboxComponentsCreatingEventArgs.cs
- HttpCacheParams.cs
- DrawListViewColumnHeaderEventArgs.cs
- Propagator.JoinPropagator.cs
- SerialPinChanges.cs
- RSAOAEPKeyExchangeDeformatter.cs
- RequestQueryParser.cs
- BamlBinaryWriter.cs
- DictionaryEditChange.cs
- UnsafeNativeMethods.cs
- PaintValueEventArgs.cs
- DependencyProperty.cs
- OleDbConnectionFactory.cs
- SerializerProvider.cs
- FunctionQuery.cs
- IisTraceListener.cs
- ZipIOExtraField.cs
- BitmapCodecInfo.cs
- LoginStatusDesigner.cs
- FileChangesMonitor.cs
- BindingSource.cs
- StringAnimationBase.cs
- ContentHostHelper.cs
- SqlRemoveConstantOrderBy.cs
- ColumnTypeConverter.cs
- UdpChannelFactory.cs
- FreezableDefaultValueFactory.cs
- GenericIdentity.cs
- Symbol.cs
- PassportAuthenticationModule.cs
- ExtenderProvidedPropertyAttribute.cs
- QilInvokeEarlyBound.cs
- ISCIIEncoding.cs
- TableLayoutSettingsTypeConverter.cs
- TableCell.cs
- PackageDigitalSignature.cs
- FigureHelper.cs
- ValidationResult.cs
- ProgressChangedEventArgs.cs