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
- DesignOnlyAttribute.cs
- CompiledQuery.cs
- BasicHttpBindingCollectionElement.cs
- FormViewDesigner.cs
- IdentitySection.cs
- ConfigurationManager.cs
- CallSiteHelpers.cs
- DataGridViewMethods.cs
- HyperLinkColumn.cs
- ScriptingWebServicesSectionGroup.cs
- XmlDsigSep2000.cs
- ServiceHttpHandlerFactory.cs
- SecurityDescriptor.cs
- RichTextBox.cs
- ClientType.cs
- XmlDeclaration.cs
- SuppressMergeCheckAttribute.cs
- TreeSet.cs
- AutomationPatternInfo.cs
- AuthenticationModuleElementCollection.cs
- HtmlInputFile.cs
- PropertyToken.cs
- AssemblyBuilder.cs
- ZeroOpNode.cs
- GlyphCache.cs
- ConfigurationSectionCollection.cs
- CodeEventReferenceExpression.cs
- FrameworkElementFactory.cs
- SmtpCommands.cs
- ConditionCollection.cs
- ISO2022Encoding.cs
- CDSsyncETWBCLProvider.cs
- infer.cs
- ExtendedPropertyCollection.cs
- StateBag.cs
- BitSet.cs
- OutputCacheSettingsSection.cs
- DataGridViewRowEventArgs.cs
- ScaleTransform.cs
- RemoteWebConfigurationHost.cs
- FontInfo.cs
- LocatorPart.cs
- SoapSchemaImporter.cs
- Utility.cs
- EmptyEnumerator.cs
- PbrsForward.cs
- UnionCodeGroup.cs
- CallbackHandler.cs
- FormViewUpdatedEventArgs.cs
- XsltQilFactory.cs
- SafePointer.cs
- DataServiceContext.cs
- Rotation3DKeyFrameCollection.cs
- GenericParameterDataContract.cs
- UpDownBase.cs
- WizardForm.cs
- PolyQuadraticBezierSegment.cs
- PropertyGridView.cs
- DataGridViewCellStyleChangedEventArgs.cs
- TreeNodeStyle.cs
- DataGridRowHeaderAutomationPeer.cs
- NativeMethods.cs
- TextContainerChangeEventArgs.cs
- ThreadExceptionEvent.cs
- PointConverter.cs
- AddDataControlFieldDialog.cs
- SoapSchemaExporter.cs
- DetailsViewDeleteEventArgs.cs
- CharacterString.cs
- PositiveTimeSpanValidatorAttribute.cs
- BuildResult.cs
- ReadWriteSpinLock.cs
- NameGenerator.cs
- TypeInitializationException.cs
- Point.cs
- StringUtil.cs
- ClosureBinding.cs
- QueryCacheManager.cs
- ChildTable.cs
- GcSettings.cs
- TripleDESCryptoServiceProvider.cs
- FixedLineResult.cs
- AutomationPattern.cs
- ToolStripHighContrastRenderer.cs
- TreeNodeCollectionEditor.cs
- UnionExpr.cs
- CriticalExceptions.cs
- ExecutionEngineException.cs
- CheckBoxBaseAdapter.cs
- CodeMethodReturnStatement.cs
- RequestTimeoutManager.cs
- DBSqlParser.cs
- TimelineClockCollection.cs
- WindowsRegion.cs
- EntryWrittenEventArgs.cs
- ToolStripContentPanelDesigner.cs
- EndPoint.cs
- querybuilder.cs
- RepeaterCommandEventArgs.cs
- TextPenaltyModule.cs