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
- FirstMatchCodeGroup.cs
- DbExpressionVisitor_TResultType.cs
- DbProviderSpecificTypePropertyAttribute.cs
- BitmapEncoder.cs
- MimeMultiPart.cs
- RemoteWebConfigurationHostStream.cs
- PropertyDescriptorComparer.cs
- TableRowGroup.cs
- ThreadExceptionEvent.cs
- TextDocumentView.cs
- DataGridViewCellFormattingEventArgs.cs
- DataRelation.cs
- IdentityReference.cs
- CanonicalFontFamilyReference.cs
- SiteMapDataSourceView.cs
- QuadraticBezierSegment.cs
- MimeWriter.cs
- Privilege.cs
- DirectoryInfo.cs
- ComplexTypeEmitter.cs
- DoubleCollectionConverter.cs
- CharacterString.cs
- DataGridViewCellParsingEventArgs.cs
- DataGridViewCellFormattingEventArgs.cs
- DeflateStream.cs
- Base64Encoder.cs
- WebWorkflowRole.cs
- ResourceReferenceKeyNotFoundException.cs
- DynamicDocumentPaginator.cs
- Visitors.cs
- PerformanceCounterManager.cs
- UnescapedXmlDiagnosticData.cs
- PrintPreviewControl.cs
- NestedContainer.cs
- TransformDescriptor.cs
- prompt.cs
- TextEditorTables.cs
- GreenMethods.cs
- ReceiveCompletedEventArgs.cs
- DataGridViewDataErrorEventArgs.cs
- TableSectionStyle.cs
- Decimal.cs
- DesignerAttribute.cs
- UnsafeNativeMethods.cs
- DataObjectPastingEventArgs.cs
- Serializer.cs
- PartManifestEntry.cs
- ReverseComparer.cs
- SymbolPair.cs
- JsonFormatReaderGenerator.cs
- ExpressionConverter.cs
- ValidationErrorEventArgs.cs
- WebPartEditorOkVerb.cs
- ComboBoxRenderer.cs
- IndexerNameAttribute.cs
- RegistryPermission.cs
- X509ChainPolicy.cs
- MinMaxParagraphWidth.cs
- ListViewDesigner.cs
- OrderByLifter.cs
- QueryOptionExpression.cs
- PreservationFileWriter.cs
- CodeRemoveEventStatement.cs
- basevalidator.cs
- XsdCachingReader.cs
- InputScopeConverter.cs
- WithStatement.cs
- Pair.cs
- Decoder.cs
- CodeAttributeArgument.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- EntityDataSourceWizardForm.cs
- SQLResource.cs
- PageParserFilter.cs
- PriorityBinding.cs
- ComboBoxAutomationPeer.cs
- StylusCollection.cs
- FocusWithinProperty.cs
- UnhandledExceptionEventArgs.cs
- DateTimeFormatInfo.cs
- HttpListener.cs
- NullRuntimeConfig.cs
- Comparer.cs
- WinFormsComponentEditor.cs
- MessagePropertyFilter.cs
- ellipse.cs
- BaseServiceProvider.cs
- JoinGraph.cs
- OracleSqlParser.cs
- OleDbInfoMessageEvent.cs
- StatusCommandUI.cs
- TextDecorationUnitValidation.cs
- HtmlTableCellCollection.cs
- ServiceCredentialsElement.cs
- TreeNode.cs
- x509utils.cs
- CachedBitmap.cs
- TargetPerspective.cs
- WebDisplayNameAttribute.cs
- Point3DConverter.cs