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
- ManagedWndProcTracker.cs
- BitmapSource.cs
- PlatformCulture.cs
- SerializationEventsCache.cs
- ToolStripDropDownButton.cs
- List.cs
- DSASignatureFormatter.cs
- RenderContext.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- RadioButtonRenderer.cs
- MissingManifestResourceException.cs
- Package.cs
- SqlStatistics.cs
- ShapeTypeface.cs
- SafeNativeMethods.cs
- WindowsPrincipal.cs
- FontCacheLogic.cs
- RegexStringValidatorAttribute.cs
- SqlDataSourceSelectingEventArgs.cs
- NameTable.cs
- Drawing.cs
- HashMembershipCondition.cs
- BindingFormattingDialog.cs
- PermissionRequestEvidence.cs
- FragmentQueryProcessor.cs
- WorkflowServiceHostFactory.cs
- WebPartTransformer.cs
- CryptoProvider.cs
- WindowsFormsSectionHandler.cs
- LogicalExpr.cs
- CompatibleComparer.cs
- TypeConverter.cs
- WebPartConnectionsConnectVerb.cs
- LinqDataSourceView.cs
- _KerberosClient.cs
- PartManifestEntry.cs
- MatrixCamera.cs
- CryptoProvider.cs
- PropertyTabAttribute.cs
- StylusCollection.cs
- DataControlImageButton.cs
- ArgumentNullException.cs
- SystemIPAddressInformation.cs
- AdobeCFFWrapper.cs
- WebBrowserHelper.cs
- ControllableStoryboardAction.cs
- PointIndependentAnimationStorage.cs
- TextSelection.cs
- DiffuseMaterial.cs
- IResourceProvider.cs
- ArrayWithOffset.cs
- HandleTable.cs
- ObjectListComponentEditor.cs
- SQLBinary.cs
- ListViewItemSelectionChangedEvent.cs
- lengthconverter.cs
- FieldNameLookup.cs
- ButtonFieldBase.cs
- TypeSystemProvider.cs
- DataColumnMapping.cs
- MouseOverProperty.cs
- AttributeInfo.cs
- CacheAxisQuery.cs
- __Filters.cs
- _HelperAsyncResults.cs
- BuildManager.cs
- ContainerControl.cs
- MetafileHeaderWmf.cs
- PresentationUIStyleResources.cs
- BindingCollection.cs
- XmlReflectionMember.cs
- QilLoop.cs
- CornerRadiusConverter.cs
- EnumMember.cs
- DesigntimeLicenseContext.cs
- FileLevelControlBuilderAttribute.cs
- DataServiceHost.cs
- HttpResponseInternalBase.cs
- SqlConnectionPoolGroupProviderInfo.cs
- OneOf.cs
- PrintPreviewGraphics.cs
- DataGridViewElement.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ToolboxItemCollection.cs
- BaseParagraph.cs
- ExtractedStateEntry.cs
- RegexReplacement.cs
- PageSettings.cs
- TypographyProperties.cs
- ColorAnimation.cs
- PartBasedPackageProperties.cs
- BulletDecorator.cs
- PackagePartCollection.cs
- IfAction.cs
- DuplicateWaitObjectException.cs
- TextSchema.cs
- BuildProvider.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- DockPanel.cs
- BitmapEffectInput.cs