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
- FunctionOverloadResolver.cs
- MouseButtonEventArgs.cs
- SQlBooleanStorage.cs
- PaperSize.cs
- Route.cs
- OpCopier.cs
- VScrollProperties.cs
- HttpListener.cs
- XmlUtf8RawTextWriter.cs
- HttpCookieCollection.cs
- OleCmdHelper.cs
- ConstNode.cs
- BroadcastEventHelper.cs
- HttpApplication.cs
- DrawingAttributesDefaultValueFactory.cs
- HttpWebResponse.cs
- GridItemProviderWrapper.cs
- AtlasWeb.Designer.cs
- PrePrepareMethodAttribute.cs
- DataServiceProcessingPipeline.cs
- TextEndOfLine.cs
- CaseKeyBox.ViewModel.cs
- BindingBase.cs
- OAVariantLib.cs
- DetailsViewInsertEventArgs.cs
- EntitySqlQueryBuilder.cs
- CoTaskMemSafeHandle.cs
- SmiEventSink_DeferedProcessing.cs
- PlatformCulture.cs
- SrgsText.cs
- HideDisabledControlAdapter.cs
- SqlEnums.cs
- AttachedPropertiesService.cs
- WebPartZone.cs
- Statements.cs
- ColumnResizeUndoUnit.cs
- XmlSignatureManifest.cs
- EmptyImpersonationContext.cs
- BinaryMethodMessage.cs
- StreamingContext.cs
- ByteStreamMessageEncodingElement.cs
- DataBindingExpressionBuilder.cs
- ObjectRef.cs
- CommentEmitter.cs
- WebPartDeleteVerb.cs
- BitmapCodecInfo.cs
- SerializationHelper.cs
- DecodeHelper.cs
- DocumentPageViewAutomationPeer.cs
- IPPacketInformation.cs
- MemberRelationshipService.cs
- ConnectAlgorithms.cs
- WindowsAuthenticationEventArgs.cs
- IgnoreSectionHandler.cs
- InheritanceService.cs
- EntityRecordInfo.cs
- NodeInfo.cs
- HttpBufferlessInputStream.cs
- UIElementHelper.cs
- ConsumerConnectionPointCollection.cs
- GridViewSortEventArgs.cs
- Parser.cs
- EventProperty.cs
- PointCollectionConverter.cs
- ToRequest.cs
- StylusPointPropertyUnit.cs
- SelectionChangedEventArgs.cs
- NativeCompoundFileAPIs.cs
- CryptoStream.cs
- ConstructorExpr.cs
- AutoResetEvent.cs
- ExcCanonicalXml.cs
- TreePrinter.cs
- WebPartTransformer.cs
- CodeDelegateCreateExpression.cs
- SearchForVirtualItemEventArgs.cs
- ListenerAdaptersInstallComponent.cs
- TabItem.cs
- XmlILStorageConverter.cs
- OdbcError.cs
- SemanticTag.cs
- ResourceContainer.cs
- NotConverter.cs
- ParseElementCollection.cs
- TypeAccessException.cs
- SortQuery.cs
- BrushMappingModeValidation.cs
- XmlResolver.cs
- CodeAccessPermission.cs
- PointAnimationUsingPath.cs
- AsyncResult.cs
- OrderedDictionaryStateHelper.cs
- SoapRpcMethodAttribute.cs
- DataGridPageChangedEventArgs.cs
- XmlUnspecifiedAttribute.cs
- DataBindEngine.cs
- ImportContext.cs
- dbenumerator.cs
- Canvas.cs
- LinearQuaternionKeyFrame.cs