Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- LocalFileSettingsProvider.cs
- RSAProtectedConfigurationProvider.cs
- COM2PictureConverter.cs
- ListViewUpdateEventArgs.cs
- EventLogEntry.cs
- ByteAnimationBase.cs
- OleDbEnumerator.cs
- ImageKeyConverter.cs
- MenuItemBinding.cs
- ConfigXmlSignificantWhitespace.cs
- Int32.cs
- SelectionPattern.cs
- RawStylusInputCustomData.cs
- SequenceNumber.cs
- UnmanagedMemoryStreamWrapper.cs
- DependencyPropertyValueSerializer.cs
- DrawToolTipEventArgs.cs
- ReferenceEqualityComparer.cs
- TempFiles.cs
- SharedConnectionInfo.cs
- SmtpDigestAuthenticationModule.cs
- Matrix3D.cs
- TabControlEvent.cs
- IdleTimeoutMonitor.cs
- ConfigurationStrings.cs
- EncodingDataItem.cs
- DataMisalignedException.cs
- ArrangedElement.cs
- EntityDataSourceReferenceGroup.cs
- XmlConvert.cs
- ParserStack.cs
- SQLResource.cs
- ToolStripEditorManager.cs
- OperationContext.cs
- Msec.cs
- DataSourceProvider.cs
- TextInfo.cs
- SymbolTable.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- MessageQueue.cs
- BypassElement.cs
- DecoderFallback.cs
- KeyConverter.cs
- TransportChannelFactory.cs
- ChannelPoolSettings.cs
- PasswordDeriveBytes.cs
- _NetworkingPerfCounters.cs
- Int16KeyFrameCollection.cs
- DataView.cs
- DbDataRecord.cs
- DependencyObject.cs
- UpdateCompiler.cs
- CopyOfAction.cs
- UICuesEvent.cs
- GenerateScriptTypeAttribute.cs
- Control.cs
- XmlReflectionImporter.cs
- PropertyStore.cs
- CorrelationResolver.cs
- RealizedColumnsBlock.cs
- DataGridViewColumnEventArgs.cs
- StylusSystemGestureEventArgs.cs
- DataAdapter.cs
- HelpInfo.cs
- smtpconnection.cs
- rsa.cs
- CurrentChangingEventManager.cs
- DisposableCollectionWrapper.cs
- LinkLabel.cs
- AtomicFile.cs
- propertytag.cs
- TextDpi.cs
- MessageEncoderFactory.cs
- MSAANativeProvider.cs
- NextPreviousPagerField.cs
- TaskHelper.cs
- ThemeableAttribute.cs
- assemblycache.cs
- XmlSortKey.cs
- StateMachineSubscription.cs
- AttachedPropertyMethodSelector.cs
- TimelineGroup.cs
- ResolveMatchesApril2005.cs
- ValuePatternIdentifiers.cs
- DBConcurrencyException.cs
- TreeNodeBindingCollection.cs
- AtomServiceDocumentSerializer.cs
- Int64AnimationBase.cs
- DataServiceResponse.cs
- CollectionDataContract.cs
- DataGridViewRowsRemovedEventArgs.cs
- SqlDataSourceSelectingEventArgs.cs
- QueryCursorEventArgs.cs
- PlatformNotSupportedException.cs
- EventMappingSettings.cs
- DiscoveryDocument.cs
- DtdParser.cs
- UIPropertyMetadata.cs
- X500Name.cs
- CallbackHandler.cs