Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ListBindingHelper.cs
- InheritablePropertyChangeInfo.cs
- SystemUnicastIPAddressInformation.cs
- HttpHandlersInstallComponent.cs
- EditorAttribute.cs
- RuntimeArgumentHandle.cs
- ListViewItem.cs
- UnaryNode.cs
- FixUp.cs
- WindowsEditBoxRange.cs
- SqlExpander.cs
- RichTextBoxConstants.cs
- WsatServiceAddress.cs
- ClipboardProcessor.cs
- QueryStringParameter.cs
- URIFormatException.cs
- basevalidator.cs
- AlphabetConverter.cs
- FragmentQuery.cs
- HtmlSelect.cs
- CopyOnWriteList.cs
- CodeConstructor.cs
- Window.cs
- MouseGestureValueSerializer.cs
- XmlRawWriter.cs
- TypeAccessException.cs
- SByte.cs
- SpeechRecognitionEngine.cs
- AutomationElementCollection.cs
- DockProviderWrapper.cs
- TextTreeTextNode.cs
- SessionPageStatePersister.cs
- BitmapSource.cs
- MarkerProperties.cs
- ContextMenu.cs
- CryptoProvider.cs
- PenThread.cs
- XamlFilter.cs
- SoapConverter.cs
- SrgsElementFactoryCompiler.cs
- CalendarTable.cs
- RunWorkerCompletedEventArgs.cs
- MarkupCompiler.cs
- LockCookie.cs
- TableRowGroup.cs
- ProxyAttribute.cs
- ImageList.cs
- DataGridTable.cs
- ValueConversionAttribute.cs
- ResXResourceWriter.cs
- PublishLicense.cs
- RemotingAttributes.cs
- PhysicalAddress.cs
- coordinator.cs
- DateTimeValueSerializerContext.cs
- MatrixTransform.cs
- Directory.cs
- PtsCache.cs
- GZipDecoder.cs
- UsernameTokenFactoryCredential.cs
- mansign.cs
- ToolBar.cs
- State.cs
- LinqDataSourceDisposeEventArgs.cs
- FixedElement.cs
- TemplatedAdorner.cs
- UnsignedPublishLicense.cs
- InfoCardTrace.cs
- OrderByBuilder.cs
- OdbcConnectionPoolProviderInfo.cs
- CompoundFileStorageReference.cs
- SystemWebSectionGroup.cs
- wgx_exports.cs
- storepermissionattribute.cs
- SortableBindingList.cs
- Query.cs
- WebPartConnection.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- RepeatInfo.cs
- FixedSOMContainer.cs
- MethodRental.cs
- CapabilitiesPattern.cs
- MarshalByRefObject.cs
- MenuEventArgs.cs
- InvalidPipelineStoreException.cs
- FilterQueryOptionExpression.cs
- TypedDataSourceCodeGenerator.cs
- Nodes.cs
- ServiceMetadataContractBehavior.cs
- MD5CryptoServiceProvider.cs
- DataColumnChangeEvent.cs
- BitmapFrameEncode.cs
- FirstMatchCodeGroup.cs
- MethodBuilderInstantiation.cs
- Subset.cs
- hwndwrapper.cs
- Attributes.cs
- ECDsa.cs
- WebPartConnectionsConnectVerb.cs
- FullTextState.cs