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
- EncryptedPackageFilter.cs
- InstanceLockQueryResult.cs
- StringDictionary.cs
- CloudCollection.cs
- _OverlappedAsyncResult.cs
- XmlSchemaCollection.cs
- IdentityModelStringsVersion1.cs
- MeshGeometry3D.cs
- Image.cs
- StagingAreaInputItem.cs
- Rectangle.cs
- ReferenceConverter.cs
- Int32Collection.cs
- AsymmetricSignatureFormatter.cs
- _IPv6Address.cs
- QuestionEventArgs.cs
- InputReferenceExpression.cs
- Process.cs
- TableRowGroup.cs
- SQLSingleStorage.cs
- DateTime.cs
- ProfileInfo.cs
- LongValidatorAttribute.cs
- RefreshPropertiesAttribute.cs
- SafeThreadHandle.cs
- AnalyzedTree.cs
- ListViewItem.cs
- ControlCollection.cs
- AsyncPostBackTrigger.cs
- SwitchExpression.cs
- EventSinkHelperWriter.cs
- HeaderedContentControl.cs
- EntityDataReader.cs
- FloaterParagraph.cs
- MetabaseServerConfig.cs
- Internal.cs
- StorageAssociationSetMapping.cs
- EventMappingSettings.cs
- MetadataItem_Static.cs
- StreamUpgradeAcceptor.cs
- ProcessHostConfigUtils.cs
- _AutoWebProxyScriptWrapper.cs
- PublisherIdentityPermission.cs
- GlyphShapingProperties.cs
- GlyphRunDrawing.cs
- BrowserCapabilitiesFactory35.cs
- Cursor.cs
- NativeMethods.cs
- MemoryRecordBuffer.cs
- Ops.cs
- ThicknessAnimation.cs
- CodeAttributeArgument.cs
- DeviceContext2.cs
- InputScopeManager.cs
- CryptoApi.cs
- UserNamePasswordValidator.cs
- DataBindingHandlerAttribute.cs
- SafeFileMappingHandle.cs
- IISUnsafeMethods.cs
- CredentialCache.cs
- HttpCachePolicyElement.cs
- BufferManager.cs
- BitmapVisualManager.cs
- Win32.cs
- SecondaryViewProvider.cs
- GridItemCollection.cs
- RedBlackList.cs
- PageHandlerFactory.cs
- FileAuthorizationModule.cs
- TextDecoration.cs
- StorageSetMapping.cs
- StructuralCache.cs
- HelpExampleGenerator.cs
- BitmapImage.cs
- DesignerContextDescriptor.cs
- StrongNamePublicKeyBlob.cs
- Interop.cs
- Point4DConverter.cs
- AutoResizedEvent.cs
- FrameworkElement.cs
- SystemGatewayIPAddressInformation.cs
- SizeKeyFrameCollection.cs
- WaitingCursor.cs
- StandardCommandToolStripMenuItem.cs
- ProtectedConfigurationSection.cs
- FlowDocumentFormatter.cs
- MdbDataFileEditor.cs
- XmlMembersMapping.cs
- DSASignatureDeformatter.cs
- XmlIlVisitor.cs
- SQLDouble.cs
- Size3DConverter.cs
- UnsafeNativeMethods.cs
- MatrixUtil.cs
- SharedUtils.cs
- ToolTip.cs
- MappingException.cs
- Border.cs
- _AuthenticationState.cs
- SqlRowUpdatedEvent.cs