Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / HandlerFactoryWrapper.cs / 1305376 / 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; } } } // 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
- contentDescriptor.cs
- EntityDataSourceDesignerHelper.cs
- StructuralComparisons.cs
- DocumentPageHost.cs
- Tokenizer.cs
- Function.cs
- TagPrefixCollection.cs
- XmlSchemaAppInfo.cs
- LambdaCompiler.Unary.cs
- DiscreteKeyFrames.cs
- SeekableReadStream.cs
- BinaryKeyIdentifierClause.cs
- PolicyManager.cs
- PopupRoot.cs
- TabletDevice.cs
- ArglessEventHandlerProxy.cs
- PropertyTabChangedEvent.cs
- Light.cs
- TimerElapsedEvenArgs.cs
- PermissionSetTriple.cs
- ObjectDataSourceEventArgs.cs
- IPPacketInformation.cs
- CompilationPass2TaskInternal.cs
- ConfigurationManagerInternalFactory.cs
- SchemaMapping.cs
- NativeMethodsCLR.cs
- DbModificationCommandTree.cs
- comcontractssection.cs
- TriggerBase.cs
- Single.cs
- DataGridViewColumn.cs
- OverrideMode.cs
- FormsAuthenticationTicket.cs
- UrlAuthorizationModule.cs
- AbandonedMutexException.cs
- FieldTemplateUserControl.cs
- RemoteWebConfigurationHost.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ExpressionConverter.cs
- GridItemProviderWrapper.cs
- GetImportedCardRequest.cs
- TextReader.cs
- Matrix3D.cs
- EventSourceCreationData.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- QueryContext.cs
- OrderedEnumerableRowCollection.cs
- FixUp.cs
- BindingManagerDataErrorEventArgs.cs
- COM2PropertyDescriptor.cs
- IriParsingElement.cs
- VariableQuery.cs
- DesignerAutoFormatStyle.cs
- CodeGroup.cs
- DataGridItemEventArgs.cs
- ScriptModule.cs
- MaterializeFromAtom.cs
- SrgsElement.cs
- Focus.cs
- WebPart.cs
- IISMapPath.cs
- SettingsAttributes.cs
- CollectionViewProxy.cs
- TypeForwardedToAttribute.cs
- TableCellCollection.cs
- SpellerError.cs
- DataAdapter.cs
- DataObjectCopyingEventArgs.cs
- EditingCommands.cs
- CookieProtection.cs
- Transform3DCollection.cs
- HostExecutionContextManager.cs
- XsltOutput.cs
- keycontainerpermission.cs
- MissingMemberException.cs
- FactoryRecord.cs
- _ScatterGatherBuffers.cs
- MimeWriter.cs
- InProcStateClientManager.cs
- MemberCollection.cs
- Condition.cs
- RawStylusInputCustomDataList.cs
- BufferedReadStream.cs
- FixedPage.cs
- XPathEmptyIterator.cs
- EtwTrace.cs
- RenderContext.cs
- RewritingPass.cs
- RepeaterItem.cs
- XmlEntity.cs
- ServiceObjectContainer.cs
- SEHException.cs
- SystemUdpStatistics.cs
- EntityAdapter.cs
- SqlError.cs
- TypeConverterAttribute.cs
- CustomAssemblyResolver.cs
- ProcessInfo.cs
- TrackingCondition.cs
- FacetDescription.cs