Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PhonemeEventArgs.cs
- PasswordRecovery.cs
- SqlUtils.cs
- AttachInfo.cs
- ObjectRef.cs
- Light.cs
- ContentType.cs
- _RegBlobWebProxyDataBuilder.cs
- SqlUdtInfo.cs
- CodeThrowExceptionStatement.cs
- SqlInternalConnectionTds.cs
- HttpCacheParams.cs
- TablePattern.cs
- InfoCardAsymmetricCrypto.cs
- OutputCacheModule.cs
- XmlChildEnumerator.cs
- LOSFormatter.cs
- ShaperBuffers.cs
- ControlAdapter.cs
- TransformerTypeCollection.cs
- TypeElementCollection.cs
- EncodingDataItem.cs
- SqlCachedBuffer.cs
- EnumValidator.cs
- ILGenerator.cs
- HandlerFactoryCache.cs
- XmlConvert.cs
- DesignConnectionCollection.cs
- IBuiltInEvidence.cs
- EntityConnection.cs
- RegexMatchCollection.cs
- Interlocked.cs
- ZipIOCentralDirectoryBlock.cs
- DeclaredTypeElementCollection.cs
- ListViewGroupItemCollection.cs
- DefaultPrintController.cs
- CqlParserHelpers.cs
- WinEventQueueItem.cs
- FusionWrap.cs
- ExceptQueryOperator.cs
- WindowInteropHelper.cs
- GridViewUpdateEventArgs.cs
- DataSourceSelectArguments.cs
- BinarySerializer.cs
- WindowsToolbarItemAsMenuItem.cs
- DesignerImageAdapter.cs
- TypeElementCollection.cs
- SmiConnection.cs
- SizeConverter.cs
- DataServiceRequest.cs
- COSERVERINFO.cs
- MasterPageCodeDomTreeGenerator.cs
- HitTestWithPointDrawingContextWalker.cs
- EventSinkActivity.cs
- SQLMoneyStorage.cs
- PageCatalogPart.cs
- EventsTab.cs
- MappingMetadataHelper.cs
- AdornerLayer.cs
- ThreadStaticAttribute.cs
- RecordManager.cs
- WindowsAuthenticationEventArgs.cs
- Cursor.cs
- DataServiceHost.cs
- SqlMethods.cs
- SymmetricSecurityBindingElement.cs
- ExpressionBuilder.cs
- PageStatePersister.cs
- ToolStripContextMenu.cs
- JsonEncodingStreamWrapper.cs
- InplaceBitmapMetadataWriter.cs
- SqlResolver.cs
- Int64Converter.cs
- RenderingEventArgs.cs
- WmlLiteralTextAdapter.cs
- TableColumn.cs
- TypeLoadException.cs
- CompiledAction.cs
- ExpressionBinding.cs
- XmlSignificantWhitespace.cs
- Calendar.cs
- TranslateTransform3D.cs
- HwndTarget.cs
- CollectionViewGroupRoot.cs
- SortedDictionary.cs
- COM2AboutBoxPropertyDescriptor.cs
- Certificate.cs
- QueueException.cs
- SqlTriggerAttribute.cs
- ToolStripGrip.cs
- VScrollProperties.cs
- GeneralTransformGroup.cs
- LogExtent.cs
- UserInitiatedNavigationPermission.cs
- ColumnWidthChangingEvent.cs
- KoreanCalendar.cs
- ThreadStartException.cs
- HwndSourceParameters.cs
- ParallelTimeline.cs
- HwndHostAutomationPeer.cs