Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / HandlerFactoryWrapper.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ErrorHandler.cs
- DeferredRunTextReference.cs
- ToolStripDropDownButton.cs
- assemblycache.cs
- ConfigurationException.cs
- SystemInformation.cs
- AstTree.cs
- JobDuplex.cs
- XdrBuilder.cs
- LayoutUtils.cs
- DoubleUtil.cs
- SystemIPAddressInformation.cs
- XsdDateTime.cs
- CatalogPartChrome.cs
- FixedTextContainer.cs
- Profiler.cs
- OLEDB_Util.cs
- NestedContainer.cs
- TextSegment.cs
- Debug.cs
- TraceInternal.cs
- AliasGenerator.cs
- PathParser.cs
- ColorContext.cs
- SqlWebEventProvider.cs
- TrustSection.cs
- XsltLoader.cs
- QuaternionKeyFrameCollection.cs
- BuildResultCache.cs
- SurrogateSelector.cs
- CommentEmitter.cs
- ToolStripSplitStackLayout.cs
- AssemblyCache.cs
- CreateUserWizard.cs
- WebServiceParameterData.cs
- KeyEvent.cs
- TaskSchedulerException.cs
- FileChangesMonitor.cs
- PropertyCollection.cs
- DataServiceConfiguration.cs
- DataColumnCollection.cs
- ListMarkerSourceInfo.cs
- PeerInputChannel.cs
- MsmqDiagnostics.cs
- DesignerHelpers.cs
- Transform3DCollection.cs
- DocumentCollection.cs
- CodeLabeledStatement.cs
- AlternateView.cs
- HashCryptoHandle.cs
- Oid.cs
- SafeLocalAllocation.cs
- COM2PropertyPageUITypeConverter.cs
- DataStreamFromComStream.cs
- StackOverflowException.cs
- ObjectReferenceStack.cs
- StandardToolWindows.cs
- EventLogPermissionEntryCollection.cs
- IPEndPoint.cs
- DoubleAnimationClockResource.cs
- DataSourceControl.cs
- ProfileService.cs
- DoubleAnimationUsingPath.cs
- BeginStoryboard.cs
- DbBuffer.cs
- StringUtil.cs
- ExtenderProviderService.cs
- ListViewGroupItemCollection.cs
- Themes.cs
- Pkcs7Signer.cs
- CollectionBase.cs
- XmlWriterTraceListener.cs
- HelpProvider.cs
- ListSourceHelper.cs
- Fault.cs
- StyleCollection.cs
- documentsequencetextcontainer.cs
- InputBinding.cs
- DataGridViewRow.cs
- ColumnBinding.cs
- KeyNotFoundException.cs
- NotConverter.cs
- TemplatedWizardStep.cs
- DocumentSequenceHighlightLayer.cs
- GestureRecognizer.cs
- Codec.cs
- SoapAttributes.cs
- UdpConstants.cs
- XmlSchemaGroupRef.cs
- EdmValidator.cs
- IPHostEntry.cs
- DataServiceQueryException.cs
- CheckBoxField.cs
- NetworkInformationException.cs
- OptimalTextSource.cs
- UInt16Storage.cs
- MsmqNonTransactedPoisonHandler.cs
- ProjectionPruner.cs
- PropertyPathConverter.cs
- EdmTypeAttribute.cs