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
- List.cs
- XmlHierarchicalDataSourceView.cs
- ExpressionPrinter.cs
- NameNode.cs
- PerformanceCounterPermission.cs
- CompletionBookmark.cs
- ResourceSetExpression.cs
- DataGridPagingPage.cs
- SchemaSetCompiler.cs
- XsdBuilder.cs
- HMACRIPEMD160.cs
- BordersPage.cs
- RuntimeConfigLKG.cs
- CompilationLock.cs
- PageSetupDialog.cs
- ExtenderHelpers.cs
- VirtualDirectoryMappingCollection.cs
- FontSourceCollection.cs
- WebPartRestoreVerb.cs
- FixedSOMFixedBlock.cs
- PagesChangedEventArgs.cs
- KeyProperty.cs
- FrugalList.cs
- HtmlInputImage.cs
- FrameAutomationPeer.cs
- ContentPosition.cs
- ProxyElement.cs
- FixedFindEngine.cs
- HandoffBehavior.cs
- ImagingCache.cs
- ControlBuilderAttribute.cs
- AttributeCollection.cs
- DocumentOrderComparer.cs
- AspNetSynchronizationContext.cs
- ModuleBuilderData.cs
- Package.cs
- FaultConverter.cs
- XmlQualifiedName.cs
- XDRSchema.cs
- SoundPlayer.cs
- OdbcException.cs
- SymbolUsageManager.cs
- WmfPlaceableFileHeader.cs
- CompModSwitches.cs
- Convert.cs
- WmlValidatorAdapter.cs
- AuthenticationService.cs
- ConstantExpression.cs
- basevalidator.cs
- dataobject.cs
- RowBinding.cs
- TextDecorationUnitValidation.cs
- ColorTransform.cs
- SafeFileHandle.cs
- ValueTypePropertyReference.cs
- AutomationIdentifier.cs
- EncoderFallback.cs
- WarningException.cs
- DataComponentGenerator.cs
- SystemColors.cs
- CookieParameter.cs
- WebConfigurationHost.cs
- DataGridViewCellCollection.cs
- SerializationSectionGroup.cs
- WindowsListViewItemCheckBox.cs
- PointConverter.cs
- ConnectorSelectionGlyph.cs
- GifBitmapDecoder.cs
- MessageFault.cs
- CacheSection.cs
- WorkflowViewElement.cs
- UIAgentMonitor.cs
- SectionInformation.cs
- NameValueConfigurationElement.cs
- FileSystemEventArgs.cs
- SystemResources.cs
- DataGridViewCellCancelEventArgs.cs
- ObjectPropertyMapping.cs
- DynamicDocumentPaginator.cs
- TemplatePartAttribute.cs
- ParseHttpDate.cs
- CodeGen.cs
- InplaceBitmapMetadataWriter.cs
- MasterPageCodeDomTreeGenerator.cs
- ListViewInsertedEventArgs.cs
- ZipIOBlockManager.cs
- RequestCacheEntry.cs
- DrawingImage.cs
- autovalidator.cs
- CurrentChangedEventManager.cs
- SafeEventLogWriteHandle.cs
- CultureInfo.cs
- FrugalMap.cs
- NamedPipeTransportElement.cs
- TiffBitmapDecoder.cs
- XmlSerializationWriter.cs
- BamlTreeNode.cs
- ThousandthOfEmRealPoints.cs
- BaseTemplateBuildProvider.cs
- WebConfigurationFileMap.cs