Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; } } } // 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.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
- Operand.cs
- SetterBase.cs
- MenuAdapter.cs
- Timer.cs
- Int32CollectionValueSerializer.cs
- TransportationConfigurationTypeInstallComponent.cs
- FontStretch.cs
- FileDialog_Vista_Interop.cs
- DesignTimeParseData.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- XmlSchemaComplexType.cs
- TypeConstant.cs
- ListViewTableCell.cs
- TypeResolver.cs
- InfoCardAsymmetricCrypto.cs
- BehaviorEditorPart.cs
- GeneralTransform3DGroup.cs
- KeyValueSerializer.cs
- MouseEventArgs.cs
- TypeUsage.cs
- XdrBuilder.cs
- Transactions.cs
- TraceLog.cs
- _HTTPDateParse.cs
- WaitForChangedResult.cs
- CodeDomDecompiler.cs
- DataContractSerializerOperationBehavior.cs
- MainMenu.cs
- LocalizationComments.cs
- VersionedStream.cs
- Vector3DValueSerializer.cs
- MdiWindowListItemConverter.cs
- ECDsa.cs
- SymmetricCryptoHandle.cs
- XamlStyleSerializer.cs
- OdbcConnectionOpen.cs
- FlowDocumentReaderAutomationPeer.cs
- ImageBrush.cs
- ObjectTokenCategory.cs
- WeakReference.cs
- XsltLoader.cs
- DbDataSourceEnumerator.cs
- SystemIPInterfaceStatistics.cs
- HtmlTextArea.cs
- _DisconnectOverlappedAsyncResult.cs
- PackWebRequest.cs
- SelectionListDesigner.cs
- ComplexPropertyEntry.cs
- GroupQuery.cs
- FacetValues.cs
- DataChangedEventManager.cs
- PlaceHolder.cs
- WebPartTransformerAttribute.cs
- StylusOverProperty.cs
- PtsHelper.cs
- PKCS1MaskGenerationMethod.cs
- Crc32.cs
- ReadOnlyMetadataCollection.cs
- StyleModeStack.cs
- RegexFCD.cs
- ChannelFactory.cs
- SafeNativeMethodsCLR.cs
- FileCodeGroup.cs
- MessageQueueEnumerator.cs
- BrowserCapabilitiesCodeGenerator.cs
- ListDependantCardsRequest.cs
- IdleTimeoutMonitor.cs
- EpmContentDeSerializerBase.cs
- ScriptingProfileServiceSection.cs
- BooleanToVisibilityConverter.cs
- Point3DAnimationUsingKeyFrames.cs
- StoreAnnotationsMap.cs
- _BaseOverlappedAsyncResult.cs
- ControlAdapter.cs
- columnmapkeybuilder.cs
- QueryOperatorEnumerator.cs
- JsonServiceDocumentSerializer.cs
- DBConnection.cs
- WaveHeader.cs
- XpsFontSerializationService.cs
- PathTooLongException.cs
- assertwrapper.cs
- SplitContainerDesigner.cs
- RenderTargetBitmap.cs
- SqlConnectionHelper.cs
- LogExtentCollection.cs
- RetrieveVirtualItemEventArgs.cs
- Stylus.cs
- EventListenerClientSide.cs
- CustomErrorCollection.cs
- ToolZone.cs
- WorkflowInstanceRecord.cs
- FrameworkTemplate.cs
- InstallerTypeAttribute.cs
- WebPageTraceListener.cs
- RequestBringIntoViewEventArgs.cs
- ActionMismatchAddressingException.cs
- SmtpLoginAuthenticationModule.cs
- X509ThumbprintKeyIdentifierClause.cs
- PrimaryKeyTypeConverter.cs