Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / SimpleHandlerFactory.cs / 1 / SimpleHandlerFactory.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * Handler Factory implementation for ASP.NET files * * Copyright (c) 2000 Microsoft Corporation */ namespace System.Web.UI { using System; using System.Web.Compilation; using Debug = System.Web.Util.Debug; /* * Handler Factory implementation for ASP.NET files */ internal class SimpleHandlerFactory : IHttpHandlerFactory2 { internal SimpleHandlerFactory() { } public virtual IHttpHandler GetHandler(HttpContext context, string requestType, string virtualPath, string path) { // This should never get called //Debug.Assert(false); return ((IHttpHandlerFactory2)this).GetHandler(context, requestType, VirtualPath.CreateNonRelative(virtualPath), path); } IHttpHandler IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) { BuildResultCompiledType result = (BuildResultCompiledType)BuildManager.GetVPathBuildResult( context, virtualPath); // Make sure the type has the correct base class (ASURT 123677) Util.CheckAssignableType(typeof(IHttpHandler), result.ResultType); return (IHttpHandler) result.CreateInstance(); } public virtual void ReleaseHandler(IHttpHandler handler) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * Handler Factory implementation for ASP.NET files * * Copyright (c) 2000 Microsoft Corporation */ namespace System.Web.UI { using System; using System.Web.Compilation; using Debug = System.Web.Util.Debug; /* * Handler Factory implementation for ASP.NET files */ internal class SimpleHandlerFactory : IHttpHandlerFactory2 { internal SimpleHandlerFactory() { } public virtual IHttpHandler GetHandler(HttpContext context, string requestType, string virtualPath, string path) { // This should never get called //Debug.Assert(false); return ((IHttpHandlerFactory2)this).GetHandler(context, requestType, VirtualPath.CreateNonRelative(virtualPath), path); } IHttpHandler IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) { BuildResultCompiledType result = (BuildResultCompiledType)BuildManager.GetVPathBuildResult( context, virtualPath); // Make sure the type has the correct base class (ASURT 123677) Util.CheckAssignableType(typeof(IHttpHandler), result.ResultType); return (IHttpHandler) result.CreateInstance(); } public virtual void ReleaseHandler(IHttpHandler handler) { } } } // 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
- PropertyPathWorker.cs
- QilChoice.cs
- Style.cs
- ReadOnlyNameValueCollection.cs
- AnimationClock.cs
- SQLMembershipProvider.cs
- DefaultPropertyAttribute.cs
- FigureParagraph.cs
- SoapServerMessage.cs
- LoadRetryHandler.cs
- CapacityStreamGeometryContext.cs
- AsymmetricKeyExchangeFormatter.cs
- WebPartDeleteVerb.cs
- ResourcesGenerator.cs
- GlyphRunDrawing.cs
- TypedRowGenerator.cs
- ReaderContextStackData.cs
- ZipFileInfoCollection.cs
- Select.cs
- HttpsChannelListener.cs
- SHA256Managed.cs
- MenuScrollingVisibilityConverter.cs
- cookie.cs
- VersionValidator.cs
- ColumnMapTranslator.cs
- FileEnumerator.cs
- GridViewDeletedEventArgs.cs
- MatchNoneMessageFilter.cs
- ButtonBaseAdapter.cs
- ScheduleChanges.cs
- HMACSHA384.cs
- PerformanceCounterPermission.cs
- SamlAttributeStatement.cs
- HostedImpersonationContext.cs
- SiteIdentityPermission.cs
- DataGridViewLinkCell.cs
- WebPartAddingEventArgs.cs
- WorkflowDispatchContext.cs
- GifBitmapEncoder.cs
- ScrollBarAutomationPeer.cs
- EventLogPermissionEntry.cs
- MenuDesigner.cs
- UserControl.cs
- ISFTagAndGuidCache.cs
- TextChange.cs
- ReturnEventArgs.cs
- WorkflowFormatterBehavior.cs
- InternalDuplexBindingElement.cs
- AppDomainProtocolHandler.cs
- TemplatePartAttribute.cs
- XmlDataSource.cs
- SatelliteContractVersionAttribute.cs
- CannotUnloadAppDomainException.cs
- UnaryExpression.cs
- LocalizableAttribute.cs
- CallContext.cs
- PrintSchema.cs
- StylusPointDescription.cs
- login.cs
- SimpleWorkerRequest.cs
- Label.cs
- StyleModeStack.cs
- PublisherMembershipCondition.cs
- EntityDataSourceDataSelection.cs
- Model3D.cs
- OleAutBinder.cs
- FieldBuilder.cs
- XhtmlConformanceSection.cs
- ToolStripLocationCancelEventArgs.cs
- EntityTransaction.cs
- AppearanceEditorPart.cs
- CursorConverter.cs
- IResourceProvider.cs
- ToolStripControlHost.cs
- SqlRowUpdatingEvent.cs
- PictureBox.cs
- WebPartTracker.cs
- EncoderParameters.cs
- OleDbPropertySetGuid.cs
- EntitySqlQueryCacheEntry.cs
- EntityCommandDefinition.cs
- QilStrConcat.cs
- ListBindableAttribute.cs
- ProcessThreadCollection.cs
- DbConnectionInternal.cs
- filewebresponse.cs
- DataGridViewCellMouseEventArgs.cs
- lengthconverter.cs
- XPathAncestorIterator.cs
- DefaultTraceListener.cs
- BoundsDrawingContextWalker.cs
- XmlSchemaAttributeGroup.cs
- SimpleLine.cs
- LineGeometry.cs
- ControlIdConverter.cs
- PolygonHotSpot.cs
- MemoryFailPoint.cs
- ContextMenuStripActionList.cs
- BufferBuilder.cs
- regiisutil.cs