Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Hosting / ProcessHostFactoryHelper.cs / 3 / ProcessHostFactoryHelper.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Hosting {
using System;
using System.Collections;
using System.Configuration;
using System.Runtime.InteropServices;
using System.Security.Permissions;
using System.Web;
using System.Web.Configuration;
using System.Web.Util;
[ComImport, Guid("02fd465d-5c5d-4b7e-95b6-82faa031b74a"), InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public interface IProcessHostFactoryHelper {
#if FEATURE_PAL // FEATURE_PAL does not enable COM
[return: MarshalAs(UnmanagedType.Error)]
#else // FEATURE_PAL
[return: MarshalAs(UnmanagedType.Interface)]
#endif // FEATURE_PAL
Object GetProcessHost(IProcessHostSupportFunctions functions);
}
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class ProcessHostFactoryHelper : MarshalByRefObject, IProcessHostFactoryHelper {
[AspNetHostingPermission(SecurityAction.Demand, Level=AspNetHostingPermissionLevel.Minimal)]
public ProcessHostFactoryHelper() {
}
[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.Infrastructure)]
public override Object InitializeLifetimeService() {
return null; // never expire lease
}
public Object GetProcessHost(IProcessHostSupportFunctions functions) {
try {
return ProcessHost.GetProcessHost(functions);
}
catch(Exception e) {
Misc.ReportUnhandledException(e, new string[] {SR.GetString(SR.Cant_Create_Process_Host)});
throw;
}
}
}
}
// 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
- shaper.cs
- MetadataStore.cs
- StatusCommandUI.cs
- CalendarItem.cs
- EventLogger.cs
- SqlSelectStatement.cs
- WebScriptEnablingElement.cs
- ImageKeyConverter.cs
- AutomationPropertyInfo.cs
- PointHitTestResult.cs
- XamlRtfConverter.cs
- XamlSerializerUtil.cs
- PageHandlerFactory.cs
- SafeCertificateContext.cs
- MarshalByValueComponent.cs
- SignedPkcs7.cs
- PeerObject.cs
- XmlElementCollection.cs
- PeerResolverElement.cs
- EdmSchemaAttribute.cs
- CommonEndpointBehaviorElement.cs
- KnownIds.cs
- PassportAuthenticationModule.cs
- ConsumerConnectionPointCollection.cs
- ObjectStateEntryDbDataRecord.cs
- UnsafeNativeMethodsCLR.cs
- String.cs
- HwndSubclass.cs
- CollectionViewSource.cs
- DockPanel.cs
- MenuRendererStandards.cs
- StreamGeometry.cs
- DiscoveryDocument.cs
- MembershipUser.cs
- HostingEnvironmentWrapper.cs
- LambdaCompiler.Statements.cs
- ThreadAttributes.cs
- TypeConverterAttribute.cs
- ValidatedControlConverter.cs
- GlyphManager.cs
- CombinedHttpChannel.cs
- TemplatedWizardStep.cs
- TextBoxLine.cs
- MarginCollapsingState.cs
- ServiceEndpoint.cs
- EventNotify.cs
- TreeView.cs
- NameTable.cs
- Command.cs
- PropertyItemInternal.cs
- Vector3DConverter.cs
- EventArgs.cs
- SchemaElementDecl.cs
- UserPreferenceChangingEventArgs.cs
- AnchoredBlock.cs
- OdbcConnection.cs
- StylusLogic.cs
- TraceLog.cs
- SourceInterpreter.cs
- EpmContentDeSerializer.cs
- EDesignUtil.cs
- ReflectEventDescriptor.cs
- SqlProviderServices.cs
- TdsParser.cs
- ProxyHelper.cs
- ListViewCancelEventArgs.cs
- EditorZoneBase.cs
- HijriCalendar.cs
- EnumValidator.cs
- HyperLink.cs
- EndpointNameMessageFilter.cs
- Substitution.cs
- Timer.cs
- DataGridAddNewRow.cs
- List.cs
- EventMappingSettings.cs
- SerializationHelper.cs
- PenLineJoinValidation.cs
- X509Certificate.cs
- ShaperBuffers.cs
- ButtonChrome.cs
- OdbcErrorCollection.cs
- Vector3DAnimationBase.cs
- BoundField.cs
- MarkupCompiler.cs
- ButtonRenderer.cs
- ResumeStoryboard.cs
- NumericUpDownAcceleration.cs
- grammarelement.cs
- Barrier.cs
- UnmanagedBitmapWrapper.cs
- FileLoadException.cs
- ResourceDictionary.cs
- ParallelTimeline.cs
- FullTextBreakpoint.cs
- TextParaClient.cs
- RightsManagementEncryptionTransform.cs
- AttachInfo.cs
- UnsignedPublishLicense.cs
- ExceptionHelpers.cs