Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / SimpleHandlerFactory.cs / 1 / 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
- DbParameterHelper.cs
- RijndaelManagedTransform.cs
- DataTransferEventArgs.cs
- VerificationException.cs
- ExtendedProtectionPolicy.cs
- StaticSiteMapProvider.cs
- PassportAuthenticationModule.cs
- ErrorProvider.cs
- Rect3D.cs
- WeakRefEnumerator.cs
- PublisherIdentityPermission.cs
- DecoderFallback.cs
- ByteStreamMessageEncodingElement.cs
- NominalTypeEliminator.cs
- ProgressBar.cs
- DrawingContextDrawingContextWalker.cs
- COM2PictureConverter.cs
- cookiecontainer.cs
- HitTestFilterBehavior.cs
- FunctionNode.cs
- CharUnicodeInfo.cs
- TableRow.cs
- Int16Converter.cs
- SQLInt16Storage.cs
- XmlResolver.cs
- DbProviderSpecificTypePropertyAttribute.cs
- FileSystemEventArgs.cs
- PolicyDesigner.cs
- ConnectionStringsSection.cs
- UrlAuthorizationModule.cs
- BinaryFormatterWriter.cs
- DeploymentExceptionMapper.cs
- PathData.cs
- ConfigurationSchemaErrors.cs
- FilteredXmlReader.cs
- ExpandCollapseProviderWrapper.cs
- ProcessInputEventArgs.cs
- XmlSchemaSet.cs
- CacheChildrenQuery.cs
- FloaterBaseParaClient.cs
- DependencyPropertyConverter.cs
- LayoutTable.cs
- ResourceDefaultValueAttribute.cs
- InheritablePropertyChangeInfo.cs
- PersonalizationProvider.cs
- counter.cs
- AssemblyNameProxy.cs
- XmlIgnoreAttribute.cs
- ApplicationManager.cs
- MetadataPropertyCollection.cs
- SqlUtils.cs
- WSDualHttpBindingCollectionElement.cs
- XmlWrappingWriter.cs
- Pens.cs
- DescriptionAttribute.cs
- EmbossBitmapEffect.cs
- HtmlContainerControl.cs
- MonitoringDescriptionAttribute.cs
- _FtpControlStream.cs
- DodSequenceMerge.cs
- InputLanguage.cs
- ChangeDirector.cs
- SuppressMergeCheckAttribute.cs
- ComAdminWrapper.cs
- CookieHandler.cs
- ToolStripItemTextRenderEventArgs.cs
- WebPartAddingEventArgs.cs
- ContractUtils.cs
- DbConnectionStringBuilder.cs
- DataComponentMethodGenerator.cs
- SystemBrushes.cs
- ComplexPropertyEntry.cs
- OverrideMode.cs
- NamespaceList.cs
- FileLogRecordStream.cs
- HtmlInputButton.cs
- SafeIUnknown.cs
- LineServicesRun.cs
- MembershipValidatePasswordEventArgs.cs
- TabControlEvent.cs
- MetadataElement.cs
- MailWebEventProvider.cs
- HighContrastHelper.cs
- SizeF.cs
- AuditLevel.cs
- HTTPNotFoundHandler.cs
- HandleRef.cs
- WebPartsPersonalizationAuthorization.cs
- FrameworkContentElement.cs
- DefaultDialogButtons.cs
- InputEventArgs.cs
- AsyncDataRequest.cs
- ExpressionVisitor.cs
- TransformerConfigurationWizardBase.cs
- Matrix.cs
- OleDbEnumerator.cs
- NumberSubstitution.cs
- MembershipSection.cs
- QueryGenerator.cs
- XmlHelper.cs