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
- WebCodeGenerator.cs
- CallbackHandler.cs
- XmlDigitalSignatureProcessor.cs
- NamespaceEmitter.cs
- SRGSCompiler.cs
- ToolStripDropDownClosingEventArgs.cs
- MemberMaps.cs
- IPHostEntry.cs
- Button.cs
- XamlFilter.cs
- Convert.cs
- BitmapScalingModeValidation.cs
- DataGridViewMethods.cs
- DesignerActionUI.cs
- PictureBox.cs
- ScrollItemPattern.cs
- ConfigurationManagerHelper.cs
- WebPartEditVerb.cs
- SourceInterpreter.cs
- AppDomainCompilerProxy.cs
- ImageMetadata.cs
- SQLBinaryStorage.cs
- FrameworkElement.cs
- SQLRoleProvider.cs
- ScriptResourceHandler.cs
- StrokeNodeOperations.cs
- TreeViewItemAutomationPeer.cs
- TemplateLookupAction.cs
- MetadataItem.cs
- DocumentPageViewAutomationPeer.cs
- SqlSupersetValidator.cs
- ProxyElement.cs
- TextElementEnumerator.cs
- DetailsViewUpdatedEventArgs.cs
- FileSystemWatcher.cs
- URLString.cs
- Point3DCollection.cs
- Binding.cs
- Simplifier.cs
- Matrix3D.cs
- SQLConvert.cs
- InternalDispatchObject.cs
- AutomationElement.cs
- RemoteWebConfigurationHostStream.cs
- PointAnimation.cs
- ArrangedElement.cs
- ImageKeyConverter.cs
- EndOfStreamException.cs
- ToolStripDropDownMenu.cs
- UIPropertyMetadata.cs
- ObjectSecurityT.cs
- FormViewDeleteEventArgs.cs
- WebPartDisplayMode.cs
- Wrapper.cs
- EntityChangedParams.cs
- DecoderFallback.cs
- TextOutput.cs
- FixedSOMSemanticBox.cs
- ListMarkerLine.cs
- OpenTypeMethods.cs
- TextBoxBase.cs
- Rect.cs
- DetailsViewDeleteEventArgs.cs
- SiteMapNode.cs
- StringToken.cs
- Point.cs
- QilSortKey.cs
- WindowsContainer.cs
- TypeConverterMarkupExtension.cs
- MultiView.cs
- MetadataImporter.cs
- TcpServerChannel.cs
- ChangeProcessor.cs
- SerialPinChanges.cs
- FormViewDesigner.cs
- MediaContext.cs
- DataColumnChangeEvent.cs
- __FastResourceComparer.cs
- BamlLocalizableResource.cs
- Italic.cs
- Line.cs
- XmlTextEncoder.cs
- ListCollectionView.cs
- DefaultHttpHandler.cs
- Deflater.cs
- JsonWriter.cs
- X509UI.cs
- SmtpAuthenticationManager.cs
- ZipIOFileItemStream.cs
- ErrorFormatter.cs
- SQLDecimal.cs
- KeyGestureConverter.cs
- ModelTreeEnumerator.cs
- PenThreadWorker.cs
- Executor.cs
- DateTimeFormat.cs
- SymbolType.cs
- ParseChildrenAsPropertiesAttribute.cs
- DiagnosticsElement.cs
- OSFeature.cs