Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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 != null && !_handler.IsReusable) _handler = null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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 != null && !_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
- ComponentChangedEvent.cs
- CustomAttribute.cs
- AssemblyEvidenceFactory.cs
- CustomWebEventKey.cs
- DataControlFieldCollection.cs
- PrinterResolution.cs
- Monitor.cs
- ClosableStream.cs
- ChangeTracker.cs
- ToolStripTextBox.cs
- Options.cs
- ColorAnimation.cs
- GridItemPattern.cs
- DrawListViewItemEventArgs.cs
- DataSourceCache.cs
- MultilineStringConverter.cs
- HMACSHA512.cs
- Image.cs
- XmlSchemaComplexContent.cs
- DataColumn.cs
- ToolboxComponentsCreatingEventArgs.cs
- CalloutQueueItem.cs
- ISessionStateStore.cs
- COM2Properties.cs
- CheckBoxRenderer.cs
- ConfigViewGenerator.cs
- GridViewAutomationPeer.cs
- InputScopeManager.cs
- RightsDocument.cs
- AccessibleObject.cs
- DbParameterHelper.cs
- DataGridViewCell.cs
- StrokeSerializer.cs
- GeneralTransform3DTo2DTo3D.cs
- SchemaObjectWriter.cs
- ReadWriteObjectLock.cs
- XmlSchemaCompilationSettings.cs
- OutputCacheSection.cs
- WebPartsSection.cs
- DataGridTableStyleMappingNameEditor.cs
- AnnotationAdorner.cs
- PagesSection.cs
- ServiceModelSectionGroup.cs
- DateTimeUtil.cs
- XamlSerializationHelper.cs
- SourceFilter.cs
- _PooledStream.cs
- HMACSHA256.cs
- SelectionBorderGlyph.cs
- ConstrainedDataObject.cs
- FileClassifier.cs
- TextEndOfParagraph.cs
- PreviewPageInfo.cs
- _Win32.cs
- ControllableStoryboardAction.cs
- DoubleLinkListEnumerator.cs
- StrokeNodeOperations.cs
- HttpCachePolicy.cs
- PageAction.cs
- RegionInfo.cs
- ChangesetResponse.cs
- MobileControlDesigner.cs
- SqlGenericUtil.cs
- QilParameter.cs
- DllHostedComPlusServiceHost.cs
- FixedDSBuilder.cs
- RowToFieldTransformer.cs
- InternalDispatchObject.cs
- ClipboardData.cs
- CodeDomConfigurationHandler.cs
- VarRefManager.cs
- ServicesUtilities.cs
- ToolStripDropDownItem.cs
- WindowsUpDown.cs
- ListSourceHelper.cs
- HtmlControl.cs
- TextModifier.cs
- ConfigXmlElement.cs
- AuthStoreRoleProvider.cs
- SortedDictionary.cs
- SoapInteropTypes.cs
- ErrorProvider.cs
- StylusPointCollection.cs
- LinkButton.cs
- CodeVariableReferenceExpression.cs
- XmlObjectSerializerReadContext.cs
- CollectionBase.cs
- EntitySqlQueryCacheKey.cs
- BidPrivateBase.cs
- SingleTagSectionHandler.cs
- TextRunCacheImp.cs
- AccessDataSourceView.cs
- SaveFileDialog.cs
- NameValueSectionHandler.cs
- GeometryCollection.cs
- HtmlShimManager.cs
- FullTextBreakpoint.cs
- DefaultPropertyAttribute.cs
- ListViewSelectEventArgs.cs
- AnnotationAuthorChangedEventArgs.cs