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
- CodeAccessPermission.cs
- BitStack.cs
- ColumnPropertiesGroup.cs
- DataRecordInfo.cs
- ServicesUtilities.cs
- InputProcessorProfilesLoader.cs
- SqlGenericUtil.cs
- AssemblyAttributesGoHere.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- DataGridSortCommandEventArgs.cs
- DefaultExpression.cs
- ListenerSessionConnection.cs
- ADMembershipUser.cs
- TypeListConverter.cs
- TextElementCollection.cs
- SafeMILHandleMemoryPressure.cs
- TableAdapterManagerGenerator.cs
- BypassElementCollection.cs
- TemplateComponentConnector.cs
- NavigationEventArgs.cs
- versioninfo.cs
- KeyEventArgs.cs
- WindowHideOrCloseTracker.cs
- SpecularMaterial.cs
- AndCondition.cs
- Ray3DHitTestResult.cs
- PermissionSet.cs
- CurrentTimeZone.cs
- InstanceDataCollectionCollection.cs
- DataViewListener.cs
- WebPartConnectionsConfigureVerb.cs
- SelectorItemAutomationPeer.cs
- VectorConverter.cs
- SafeProcessHandle.cs
- ParentUndoUnit.cs
- TextBoxView.cs
- SrgsRule.cs
- StylusPlugInCollection.cs
- Pool.cs
- EndpointAddressMessageFilter.cs
- SystemInformation.cs
- XmlSchemaValidationException.cs
- TemplateControlBuildProvider.cs
- HttpModulesSection.cs
- namescope.cs
- AesCryptoServiceProvider.cs
- Schema.cs
- NativeMethods.cs
- SchemaImporterExtensionElementCollection.cs
- DataServiceQueryException.cs
- UserUseLicenseDictionaryLoader.cs
- PhysicalFontFamily.cs
- Binding.cs
- SqlCommandBuilder.cs
- _ContextAwareResult.cs
- AvTrace.cs
- BuiltInExpr.cs
- ETagAttribute.cs
- PeerToPeerException.cs
- Base64Encoder.cs
- uribuilder.cs
- PropertyPathConverter.cs
- ListBindingHelper.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- EventProxy.cs
- DoubleLinkListEnumerator.cs
- WindowsEditBox.cs
- VerticalAlignConverter.cs
- EmptyCollection.cs
- RemoteWebConfigurationHost.cs
- SoapAttributes.cs
- ManagementEventWatcher.cs
- SqlError.cs
- TimeManager.cs
- Attributes.cs
- ColumnClickEvent.cs
- TransformConverter.cs
- ThreadAbortException.cs
- HtmlElementCollection.cs
- ObfuscationAttribute.cs
- SoapCodeExporter.cs
- XmlSerializer.cs
- KeyValueConfigurationCollection.cs
- WindowsIPAddress.cs
- XmlSchemaNotation.cs
- SplayTreeNode.cs
- ProfileModule.cs
- PermissionRequestEvidence.cs
- Matrix3D.cs
- DataContractSerializerServiceBehavior.cs
- BuilderInfo.cs
- DetailsViewUpdatedEventArgs.cs
- dbenumerator.cs
- CodeObject.cs
- DataGridViewRowPostPaintEventArgs.cs
- XmlNamespaceManager.cs
- XmlSchemaGroup.cs
- ActivatedMessageQueue.cs
- IntersectQueryOperator.cs
- WizardStepBase.cs