Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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 != null && !_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 != null && !_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
- SqlFacetAttribute.cs
- ReferenceService.cs
- MemoryStream.cs
- BitmapEffectDrawingContextState.cs
- MultiBindingExpression.cs
- HMACSHA1.cs
- RuntimeResourceSet.cs
- HttpListenerException.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ProgressBarHighlightConverter.cs
- NamespaceListProperty.cs
- IgnoreSectionHandler.cs
- WindowsFormsSynchronizationContext.cs
- ApplicationSecurityInfo.cs
- UnionQueryOperator.cs
- ErasingStroke.cs
- DirectionalLight.cs
- DataGridViewComponentPropertyGridSite.cs
- TargetParameterCountException.cs
- CodeDirectiveCollection.cs
- DetailsViewCommandEventArgs.cs
- CodeExpressionCollection.cs
- ObjectViewEntityCollectionData.cs
- OAVariantLib.cs
- CustomError.cs
- FixedSOMTextRun.cs
- AutomationEvent.cs
- ToolStripButton.cs
- WorkflowTimerService.cs
- OutputCacheModule.cs
- MetadataUtil.cs
- CachedBitmap.cs
- BookmarkScopeHandle.cs
- ToolStripDropTargetManager.cs
- ActivityExecutionWorkItem.cs
- TemplateBindingExtension.cs
- VirtualizingStackPanel.cs
- _ContextAwareResult.cs
- TypeCollectionPropertyEditor.cs
- WindowsContainer.cs
- RSAPKCS1SignatureDeformatter.cs
- CodeAssignStatement.cs
- FieldDescriptor.cs
- CompoundFileIOPermission.cs
- RuntimeEnvironment.cs
- ThemeDictionaryExtension.cs
- CodeLabeledStatement.cs
- ProgressBarHighlightConverter.cs
- SocketPermission.cs
- MobileListItemCollection.cs
- ToolStripContentPanelRenderEventArgs.cs
- ScriptResourceHandler.cs
- HandleCollector.cs
- TypeLoadException.cs
- XPathAncestorIterator.cs
- ApplicationServiceHelper.cs
- DocumentPropertiesDialog.cs
- XmlSchemaValidationException.cs
- MemberRestriction.cs
- SqlConnection.cs
- Sql8ExpressionRewriter.cs
- SoapSchemaImporter.cs
- RenderContext.cs
- XmlSchemaValidator.cs
- AdvancedBindingEditor.cs
- HttpAsyncResult.cs
- SecurityToken.cs
- PropertyCollection.cs
- TextBoxAutomationPeer.cs
- TraceContextRecord.cs
- TextEditorDragDrop.cs
- CalendarKeyboardHelper.cs
- Gdiplus.cs
- XmlCustomFormatter.cs
- ValidateNames.cs
- QilPatternVisitor.cs
- TypeLoadException.cs
- IntPtr.cs
- SegmentInfo.cs
- XmlLinkedNode.cs
- TrackBarRenderer.cs
- XmlSchemaObject.cs
- MetabaseReader.cs
- SurrogateEncoder.cs
- KeySpline.cs
- MenuEventArgs.cs
- SqlBooleanMismatchVisitor.cs
- DoubleAnimationClockResource.cs
- DataControlCommands.cs
- ContractListAdapter.cs
- _Semaphore.cs
- ListSourceHelper.cs
- WindowsEditBox.cs
- CodeConditionStatement.cs
- DataBoundControlHelper.cs
- EventLogReader.cs
- Grant.cs
- RadioButtonList.cs
- EntityDataSourceMemberPath.cs
- ReadOnlyDictionary.cs