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
- WorkflowLayouts.cs
- LockCookie.cs
- AssemblyAttributesGoHere.cs
- CharacterBuffer.cs
- ConnectionStringsSection.cs
- NativeObjectSecurity.cs
- XmlTextReaderImplHelpers.cs
- WindowProviderWrapper.cs
- CheckBoxDesigner.cs
- JsonFormatWriterGenerator.cs
- SimpleBitVector32.cs
- TypeConverterValueSerializer.cs
- MetadataWorkspace.cs
- XmlNavigatorFilter.cs
- FlowDocument.cs
- XslVisitor.cs
- OverlappedAsyncResult.cs
- SByteStorage.cs
- PointAnimationBase.cs
- EntityDataSourceReferenceGroup.cs
- TypeBuilder.cs
- TypedTableBaseExtensions.cs
- PingOptions.cs
- XmlDocumentSerializer.cs
- BindingsCollection.cs
- TableRowCollection.cs
- StoreAnnotationsMap.cs
- DefaultHttpHandler.cs
- List.cs
- FieldToken.cs
- SecureStringHasher.cs
- Transform3DGroup.cs
- XmlAggregates.cs
- X509ScopedServiceCertificateElementCollection.cs
- EventMappingSettings.cs
- CacheDependency.cs
- WorkflowViewService.cs
- StructuralType.cs
- FontUnitConverter.cs
- MetadataItemSerializer.cs
- ItemList.cs
- LayoutSettings.cs
- SAPICategories.cs
- QilExpression.cs
- ShutDownListener.cs
- InkCanvas.cs
- SafeThemeHandle.cs
- SchemaImporter.cs
- WebPartsPersonalization.cs
- XmlSerializerFactory.cs
- PrivateFontCollection.cs
- MiniConstructorInfo.cs
- X509Extension.cs
- BaseConfigurationRecord.cs
- SystemIPv6InterfaceProperties.cs
- SchemaCollectionPreprocessor.cs
- XPathParser.cs
- SerializableTypeCodeDomSerializer.cs
- PropertyMap.cs
- DataConnectionHelper.cs
- AssemblyAssociatedContentFileAttribute.cs
- SimpleWorkerRequest.cs
- WebServiceData.cs
- BinaryParser.cs
- OleServicesContext.cs
- CardSpacePolicyElement.cs
- MeshGeometry3D.cs
- TraceFilter.cs
- NameValueFileSectionHandler.cs
- RecognizeCompletedEventArgs.cs
- Region.cs
- SapiAttributeParser.cs
- HierarchicalDataBoundControlAdapter.cs
- DataSourceProvider.cs
- EventlogProvider.cs
- EntityClientCacheEntry.cs
- ColorContext.cs
- PageThemeBuildProvider.cs
- StateBag.cs
- FilteredAttributeCollection.cs
- OneOfScalarConst.cs
- ColorConverter.cs
- JsonCollectionDataContract.cs
- SoapSchemaMember.cs
- ReferencedType.cs
- ObjectQuery.cs
- HelpKeywordAttribute.cs
- ReadOnlyAttribute.cs
- DataGridViewLinkCell.cs
- StreamResourceInfo.cs
- WindowsFormsSectionHandler.cs
- COAUTHINFO.cs
- ComponentRenameEvent.cs
- Policy.cs
- DocumentCollection.cs
- RSAOAEPKeyExchangeFormatter.cs
- MailSettingsSection.cs
- CorrelationToken.cs
- DeclaredTypeValidator.cs
- WaitHandle.cs