Code:
/ FX-1434 / FX-1434 / 1.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
- XmlnsCompatibleWithAttribute.cs
- DocumentViewerBase.cs
- SystemIcmpV6Statistics.cs
- PopupRootAutomationPeer.cs
- DockPattern.cs
- RenderData.cs
- ConstraintManager.cs
- ThreadAttributes.cs
- SQLMembershipProvider.cs
- MapPathBasedVirtualPathProvider.cs
- SplineKeyFrames.cs
- ValidationSettings.cs
- SizeKeyFrameCollection.cs
- APCustomTypeDescriptor.cs
- NativeMethods.cs
- DefaultAssemblyResolver.cs
- MultiView.cs
- SelectionItemProviderWrapper.cs
- StylusPointPropertyInfo.cs
- BitmapEffectrendercontext.cs
- Walker.cs
- EventLogStatus.cs
- AssemblyAttributes.cs
- CodePageEncoding.cs
- XmlSchemaImporter.cs
- DataServiceRequestException.cs
- PackUriHelper.cs
- _NegoState.cs
- UInt16.cs
- NullableFloatAverageAggregationOperator.cs
- XmlUtilWriter.cs
- Maps.cs
- OdbcConnectionPoolProviderInfo.cs
- ConsoleKeyInfo.cs
- TraceLevelHelper.cs
- DiscardableAttribute.cs
- StrokeCollection.cs
- CommandLibraryHelper.cs
- ContentControl.cs
- StrokeNodeEnumerator.cs
- Unit.cs
- HostSecurityManager.cs
- isolationinterop.cs
- WsdlParser.cs
- RawStylusInputCustomData.cs
- XmlSchemaAny.cs
- FixedSOMElement.cs
- SqlXmlStorage.cs
- Signature.cs
- StorageModelBuildProvider.cs
- IBuiltInEvidence.cs
- LayoutDump.cs
- StorageMappingItemLoader.cs
- ScrollPatternIdentifiers.cs
- HtmlInputImage.cs
- ClientTarget.cs
- AuthenticationManager.cs
- ImageIndexConverter.cs
- TrackingProfileDeserializationException.cs
- DataServiceEntityAttribute.cs
- SourceFileInfo.cs
- TimeoutValidationAttribute.cs
- Msec.cs
- IncrementalReadDecoders.cs
- CalendarDateChangedEventArgs.cs
- WebPartActionVerb.cs
- SapiRecoContext.cs
- Label.cs
- PKCS1MaskGenerationMethod.cs
- ExpandedWrapper.cs
- WindowsGraphics.cs
- BufferedReadStream.cs
- DataExpression.cs
- AsymmetricCryptoHandle.cs
- SignedPkcs7.cs
- HtmlProps.cs
- UpdatePanelTriggerCollection.cs
- XmlEnumAttribute.cs
- DocumentPageTextView.cs
- IncomingWebResponseContext.cs
- TemplateLookupAction.cs
- NullableBoolConverter.cs
- ExecutedRoutedEventArgs.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- ObjectSelectorEditor.cs
- UInt16Converter.cs
- VerificationAttribute.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- DocumentOrderQuery.cs
- OleDbParameter.cs
- COAUTHINFO.cs
- ToolStripMenuItem.cs
- CustomError.cs
- FontFamilyValueSerializer.cs
- RefExpr.cs
- ToolboxItemCollection.cs
- CodeGroup.cs
- CreateUserErrorEventArgs.cs
- RemotingSurrogateSelector.cs
- MatrixAnimationUsingPath.cs