Code:
/ DotNET / DotNET / 8.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
- ChtmlPhoneCallAdapter.cs
- bidPrivateBase.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- PasswordTextNavigator.cs
- ToolStripSplitButton.cs
- HatchBrush.cs
- RectangleF.cs
- GZipStream.cs
- Gdiplus.cs
- DescendantOverDescendantQuery.cs
- DataListCommandEventArgs.cs
- Propagator.JoinPropagator.cs
- RuleConditionDialog.cs
- ClientData.cs
- SafeNativeMethodsCLR.cs
- ProtectedConfigurationSection.cs
- TreeWalkHelper.cs
- VisualStyleInformation.cs
- Viewport3DVisual.cs
- CancellationHandler.cs
- DesignerObject.cs
- ProfilePropertySettings.cs
- ColorTranslator.cs
- ActionMismatchAddressingException.cs
- validationstate.cs
- SqlCaseSimplifier.cs
- WinEventQueueItem.cs
- PathFigureCollection.cs
- FormViewRow.cs
- PrintController.cs
- ApplyImportsAction.cs
- StateWorkerRequest.cs
- TypedTableBaseExtensions.cs
- SecurityPermission.cs
- MaskDescriptors.cs
- SqlClientMetaDataCollectionNames.cs
- ClientBuildManagerCallback.cs
- XmlIncludeAttribute.cs
- DataRow.cs
- MailMessageEventArgs.cs
- ObjectCacheSettings.cs
- TypeConverterHelper.cs
- PriorityItem.cs
- XmlSerializer.cs
- BaseServiceProvider.cs
- TableLayoutCellPaintEventArgs.cs
- NameSpaceEvent.cs
- EditableTreeList.cs
- SafeFileMappingHandle.cs
- MailHeaderInfo.cs
- ValidationHelper.cs
- HostingMessageProperty.cs
- TrimSurroundingWhitespaceAttribute.cs
- UxThemeWrapper.cs
- BitmapEffectDrawingContextWalker.cs
- LinkedResourceCollection.cs
- DockPanel.cs
- ToolStripItemClickedEventArgs.cs
- HostExecutionContextManager.cs
- RepeaterItemCollection.cs
- IPHostEntry.cs
- QueueSurrogate.cs
- PictureBox.cs
- SqlCacheDependencySection.cs
- PolicyManager.cs
- ValidationErrorEventArgs.cs
- SoapFault.cs
- NavigationEventArgs.cs
- InfoCardBaseException.cs
- UniformGrid.cs
- CodePropertyReferenceExpression.cs
- FileSystemInfo.cs
- odbcmetadatafactory.cs
- LayoutEvent.cs
- RuntimeConfigLKG.cs
- ScriptBehaviorDescriptor.cs
- StylusButtonCollection.cs
- UIElement3D.cs
- TextBoxRenderer.cs
- Clause.cs
- TextAutomationPeer.cs
- MediaCommands.cs
- WebContext.cs
- TimeSpanStorage.cs
- PassportAuthenticationEventArgs.cs
- MethodCallTranslator.cs
- ExtensionSimplifierMarkupObject.cs
- IssuanceTokenProviderBase.cs
- DPTypeDescriptorContext.cs
- RTLAwareMessageBox.cs
- DesignerSerializationOptionsAttribute.cs
- NamespaceTable.cs
- EmptyControlCollection.cs
- RegularExpressionValidator.cs
- OdbcConnectionStringbuilder.cs
- MembershipSection.cs
- Highlights.cs
- DateTimeSerializationSection.cs
- GridViewColumnCollectionChangedEventArgs.cs
- Transform3D.cs