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
- Base64Encoder.cs
- EntityDataSourceEntityTypeFilterItem.cs
- BatchWriter.cs
- HttpClientCertificate.cs
- RestrictedTransactionalPackage.cs
- CommonBehaviorsSection.cs
- UnionExpr.cs
- TableStyle.cs
- XmlSchemaSimpleTypeRestriction.cs
- WindowsPrincipal.cs
- Schema.cs
- ListControlStringCollectionEditor.cs
- ConnectionInterfaceCollection.cs
- OleDbConnection.cs
- Stroke2.cs
- ControlAdapter.cs
- TextBoxAutomationPeer.cs
- EditorPartChrome.cs
- LayoutDump.cs
- InfoCardSymmetricCrypto.cs
- ResolveCriteria11.cs
- AxisAngleRotation3D.cs
- RequestCacheValidator.cs
- TypeUtil.cs
- ServiceNotStartedException.cs
- RoleManagerEventArgs.cs
- BufferModeSettings.cs
- activationcontext.cs
- PointCollection.cs
- RichListBox.cs
- ImageBrush.cs
- CroppedBitmap.cs
- ProxyFragment.cs
- SecurityManager.cs
- PrintingPermissionAttribute.cs
- ObjectCloneHelper.cs
- RuntimeConfig.cs
- InternalConfigHost.cs
- HwndSourceParameters.cs
- System.Data_BID.cs
- TabControlAutomationPeer.cs
- GeometryHitTestParameters.cs
- ProfessionalColors.cs
- HealthMonitoringSection.cs
- GlyphRunDrawing.cs
- Mappings.cs
- CurrentTimeZone.cs
- SystemSounds.cs
- RegisteredArrayDeclaration.cs
- ConsumerConnectionPoint.cs
- UnsafeNativeMethods.cs
- KeyValueConfigurationCollection.cs
- ArgIterator.cs
- BaseTemplatedMobileComponentEditor.cs
- InstalledFontCollection.cs
- BindingList.cs
- StyleXamlParser.cs
- Identifier.cs
- TabPageDesigner.cs
- TouchesCapturedWithinProperty.cs
- CodeEventReferenceExpression.cs
- JapaneseCalendar.cs
- TemplateColumn.cs
- InternalPermissions.cs
- SqlDataSourceSelectingEventArgs.cs
- SqlFacetAttribute.cs
- MetaModel.cs
- formatter.cs
- BaseParagraph.cs
- ExpressionParser.cs
- MetadataArtifactLoaderFile.cs
- SelectionUIService.cs
- SimpleTextLine.cs
- LiteralControl.cs
- TextSelection.cs
- CodeSubDirectoriesCollection.cs
- TogglePatternIdentifiers.cs
- HttpHeaderCollection.cs
- XmlSchemaComplexContentRestriction.cs
- SectionVisual.cs
- ListBindingConverter.cs
- DrawTreeNodeEventArgs.cs
- ManagedIStream.cs
- MailDefinitionBodyFileNameEditor.cs
- CryptoApi.cs
- SmiEventSink_Default.cs
- EpmCustomContentWriterNodeData.cs
- CodeGroup.cs
- DrawingContextDrawingContextWalker.cs
- NavigationExpr.cs
- ThousandthOfEmRealDoubles.cs
- RemoteWebConfigurationHostStream.cs
- DefaultProxySection.cs
- ConcurrentBag.cs
- FileRecordSequence.cs
- MonthCalendarDesigner.cs
- UnSafeCharBuffer.cs
- altserialization.cs
- ModulesEntry.cs
- DbExpressionBuilder.cs