Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / HandlerFactoryWrapper.cs / 1305376 / HandlerFactoryWrapper.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * Config related classes for HttpApplication */ namespace System.Web.Configuration { using System; using System.Web.Util; /* * Single instance handler factory */ internal class HandlerFactoryWrapper : IHttpHandlerFactory { private IHttpHandler _handler; private Type _handlerType; internal HandlerFactoryWrapper(IHttpHandler handler, Type handlerType) { _handler = handler; _handlerType = handlerType; } public IHttpHandler GetHandler(HttpContext context, String requestType, String url, String pathTranslated) { if (_handler == null) _handler = (IHttpHandler)HttpRuntime.CreateNonPublicInstance(_handlerType); return _handler; } public void ReleaseHandler(IHttpHandler handler) { Debug.Assert(handler == _handler); if (!_handler.IsReusable) _handler = null; } } } // 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
- TemplateParser.cs
- Rectangle.cs
- XNameConverter.cs
- User.cs
- StylusDevice.cs
- Cursors.cs
- ErrorStyle.cs
- DataGridRowHeader.cs
- EncoderBestFitFallback.cs
- TransformedBitmap.cs
- GeometryModel3D.cs
- StreamInfo.cs
- XmlSerializableWriter.cs
- XmlSerializationReader.cs
- NewExpression.cs
- ComAwareEventInfo.cs
- GradientStopCollection.cs
- FrameDimension.cs
- SelectionProviderWrapper.cs
- HtmlInputHidden.cs
- DataSourceSelectArguments.cs
- ALinqExpressionVisitor.cs
- WsatTransactionFormatter.cs
- HttpRawResponse.cs
- ExtensibleClassFactory.cs
- TcpClientChannel.cs
- MultipleViewPattern.cs
- SchemaInfo.cs
- BridgeDataReader.cs
- TextReader.cs
- ConfigXmlDocument.cs
- SecureEnvironment.cs
- ResolvedKeyFrameEntry.cs
- HMACRIPEMD160.cs
- XmlSchemaValidator.cs
- NodeLabelEditEvent.cs
- SmiXetterAccessMap.cs
- SqlMethodCallConverter.cs
- ApplicationContext.cs
- SwitchLevelAttribute.cs
- AlternateViewCollection.cs
- RootBrowserWindowAutomationPeer.cs
- CompiledXpathExpr.cs
- BCLDebug.cs
- IISMapPath.cs
- CheckPair.cs
- SchemaImporterExtensionsSection.cs
- TextDecorationCollectionConverter.cs
- WindowsSpinner.cs
- GlobalId.cs
- RegistryPermission.cs
- ViewValidator.cs
- StaticExtension.cs
- WebResourceAttribute.cs
- ParallelSeparator.xaml.cs
- PrintingPermission.cs
- TextProviderWrapper.cs
- X500Name.cs
- CorrelationManager.cs
- CompareValidator.cs
- Exceptions.cs
- RawTextInputReport.cs
- FacetEnabledSchemaElement.cs
- XmlSchemaValidationException.cs
- WindowsPrincipal.cs
- PasswordDeriveBytes.cs
- ToolStripKeyboardHandlingService.cs
- SingleObjectCollection.cs
- DisposableCollectionWrapper.cs
- QuaternionRotation3D.cs
- UrlMappingsModule.cs
- SQLByte.cs
- ProjectionPath.cs
- PrinterSettings.cs
- CodeSubDirectoriesCollection.cs
- FullTrustAssembly.cs
- BinaryObjectReader.cs
- ObjectViewEntityCollectionData.cs
- CacheVirtualItemsEvent.cs
- TaskExceptionHolder.cs
- NamespaceTable.cs
- SubMenuStyleCollection.cs
- NameTable.cs
- updatecommandorderer.cs
- ImageMapEventArgs.cs
- AutomationEvent.cs
- Attachment.cs
- Control.cs
- ReferentialConstraint.cs
- CheckBox.cs
- BindingList.cs
- ToolboxItemSnapLineBehavior.cs
- DelegateHelpers.Generated.cs
- SchemaAttDef.cs
- PathFigure.cs
- CrossContextChannel.cs
- NameValueConfigurationElement.cs
- Fx.cs
- DataBindingHandlerAttribute.cs
- ConfigXmlWhitespace.cs