Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / Configuration / HandlerFactoryWrapper.cs / 2 / 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 != null && !_handler.IsReusable) _handler = null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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 != null && !_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
- Substitution.cs
- ValueChangedEventManager.cs
- WebZone.cs
- ZipIOModeEnforcingStream.cs
- DrawingDrawingContext.cs
- HTMLTextWriter.cs
- EventProvider.cs
- KeyEvent.cs
- PolyQuadraticBezierSegment.cs
- ActivityInfo.cs
- PeekCompletedEventArgs.cs
- OAVariantLib.cs
- SwitchAttribute.cs
- PreservationFileReader.cs
- ClientSettingsStore.cs
- XmlTypeAttribute.cs
- ExclusiveTcpTransportManager.cs
- QilName.cs
- AttachedPropertiesService.cs
- EditorAttribute.cs
- SessionStateSection.cs
- DataGrid.cs
- BCLDebug.cs
- ContentPlaceHolder.cs
- DbDataAdapter.cs
- X509CertificateChain.cs
- ResourceLoader.cs
- XamlFigureLengthSerializer.cs
- SqlClientWrapperSmiStream.cs
- DataGridViewCellEventArgs.cs
- ProfileSettingsCollection.cs
- Compiler.cs
- DecoderNLS.cs
- EventlogProvider.cs
- TableRowGroup.cs
- ObfuscationAttribute.cs
- BoundPropertyEntry.cs
- ItemAutomationPeer.cs
- shaperfactoryquerycacheentry.cs
- IList.cs
- MarkupProperty.cs
- BindingValueChangedEventArgs.cs
- StreamHelper.cs
- Base64Decoder.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SinglePageViewer.cs
- FormViewUpdateEventArgs.cs
- ColumnMapVisitor.cs
- QuotedPairReader.cs
- ObjectSecurity.cs
- FieldTemplateUserControl.cs
- X509ClientCertificateCredentialsElement.cs
- UnknownExceptionActionHelper.cs
- FormViewPagerRow.cs
- MetabaseServerConfig.cs
- ArrayHelper.cs
- CodeVariableReferenceExpression.cs
- CheckBoxBaseAdapter.cs
- TransformProviderWrapper.cs
- TemplateControlParser.cs
- PartialCachingControl.cs
- EventSetter.cs
- PersonalizableTypeEntry.cs
- List.cs
- URL.cs
- XmlSchemaObject.cs
- ClockController.cs
- ConnectionProviderAttribute.cs
- GPRECTF.cs
- OrderedDictionaryStateHelper.cs
- ParseChildrenAsPropertiesAttribute.cs
- DataPager.cs
- AsyncPostBackTrigger.cs
- EnumValAlphaComparer.cs
- WebProxyScriptElement.cs
- Membership.cs
- UnmanagedMemoryStream.cs
- CellTreeNodeVisitors.cs
- PersonalizationProvider.cs
- OleDbConnectionInternal.cs
- WebUtil.cs
- ActiveDocumentEvent.cs
- RC2CryptoServiceProvider.cs
- DesignerVerbToolStripMenuItem.cs
- GeneralTransformGroup.cs
- LingerOption.cs
- DesignerDataConnection.cs
- PrintPageEvent.cs
- TabletDevice.cs
- ColumnReorderedEventArgs.cs
- ResourcesBuildProvider.cs
- SecurityDocument.cs
- AnimationTimeline.cs
- MatrixIndependentAnimationStorage.cs
- PenContext.cs
- TdsParserSessionPool.cs
- EncryptedHeader.cs
- KeyManager.cs
- DataBindingCollection.cs
- HttpRequest.cs