Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / SimpleHandlerFactory.cs / 2 / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartAddingEventArgs.cs
- EntityViewGenerator.cs
- BaseDataBoundControlDesigner.cs
- PerfCounterSection.cs
- EntityDataSourceStatementEditorForm.cs
- ZoomPercentageConverter.cs
- FixedSchema.cs
- SafeNativeMethods.cs
- InputProcessorProfilesLoader.cs
- WindowsButton.cs
- AppliesToBehaviorDecisionTable.cs
- HttpRequestCacheValidator.cs
- XmlSchemaSimpleContent.cs
- LinqExpressionNormalizer.cs
- DataServiceQueryOfT.cs
- ExpressionBuilder.cs
- DecimalMinMaxAggregationOperator.cs
- DNS.cs
- NumericExpr.cs
- MembershipSection.cs
- ContainerParagraph.cs
- RepeaterItemCollection.cs
- CallContext.cs
- ConfigPathUtility.cs
- SudsParser.cs
- TemplateParser.cs
- SqlCacheDependency.cs
- NumericUpDown.cs
- ClickablePoint.cs
- StandardBindingCollectionElement.cs
- MethodSet.cs
- FixedHyperLink.cs
- _TimerThread.cs
- FontDriver.cs
- ColumnReorderedEventArgs.cs
- FontStretch.cs
- ParentControlDesigner.cs
- UnmanagedMemoryAccessor.cs
- RewritingSimplifier.cs
- WorkingDirectoryEditor.cs
- SwitchLevelAttribute.cs
- ASCIIEncoding.cs
- Activity.cs
- IisTraceListener.cs
- ValidationRuleCollection.cs
- MonthCalendarDesigner.cs
- CodePageUtils.cs
- EnumConverter.cs
- TransformedBitmap.cs
- Interlocked.cs
- PreviousTrackingServiceAttribute.cs
- XmlSchemas.cs
- CustomTypeDescriptor.cs
- DataRowView.cs
- Propagator.cs
- ScriptingWebServicesSectionGroup.cs
- StrongName.cs
- CustomValidator.cs
- SelectedDatesCollection.cs
- SourceChangedEventArgs.cs
- ClassHandlersStore.cs
- TypeAccessException.cs
- _Connection.cs
- ObjectNotFoundException.cs
- IPipelineRuntime.cs
- HttpHandlerAction.cs
- ThemeDirectoryCompiler.cs
- WhitespaceRule.cs
- MeasurementDCInfo.cs
- StylusPlugin.cs
- InstanceCompleteException.cs
- RequestChannelBinder.cs
- WizardStepCollectionEditor.cs
- DefinitionUpdate.cs
- CapabilitiesRule.cs
- LinkedDataMemberFieldEditor.cs
- sqlinternaltransaction.cs
- MouseButton.cs
- SignatureHelper.cs
- TrackingMemoryStreamFactory.cs
- VerticalAlignConverter.cs
- EmptyQuery.cs
- TypePropertyEditor.cs
- FileSecurity.cs
- SerialStream.cs
- SqlDataSourceStatusEventArgs.cs
- FixedLineResult.cs
- FacetValues.cs
- SessionEndingEventArgs.cs
- BinaryOperationBinder.cs
- SerializerProvider.cs
- InternalBufferOverflowException.cs
- TextDecorationCollection.cs
- ElapsedEventArgs.cs
- formatter.cs
- KnownTypeAttribute.cs
- DbProviderServices.cs
- ImageMetadata.cs
- HeaderCollection.cs
- DataGridLength.cs