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
- DynamicQueryStringParameter.cs
- ConstraintConverter.cs
- QueryAccessibilityHelpEvent.cs
- OdbcParameter.cs
- EventBuilder.cs
- EventHandlerList.cs
- SHA256Managed.cs
- EntityFunctions.cs
- PasswordDeriveBytes.cs
- ColumnReorderedEventArgs.cs
- _NtlmClient.cs
- XPathNodeHelper.cs
- mansign.cs
- CurrencyManager.cs
- DynamicField.cs
- RuntimeIdentifierPropertyAttribute.cs
- ToolStripStatusLabel.cs
- GeometryGroup.cs
- WinOEToolBoxItem.cs
- GridViewColumnCollection.cs
- XmlWrappingReader.cs
- AVElementHelper.cs
- CngUIPolicy.cs
- TdsParserSafeHandles.cs
- CipherData.cs
- AstNode.cs
- SafeNativeMemoryHandle.cs
- Cursors.cs
- CustomAttributeBuilder.cs
- TransmissionStrategy.cs
- DataTableClearEvent.cs
- DiscoveryClientDocuments.cs
- XmlValueConverter.cs
- FixedHighlight.cs
- ItemContainerProviderWrapper.cs
- UnitySerializationHolder.cs
- OracleCommand.cs
- Listen.cs
- FormatterServices.cs
- Matrix.cs
- DragAssistanceManager.cs
- LoginDesignerUtil.cs
- HiddenField.cs
- VisualSerializer.cs
- HtmlTitle.cs
- CryptographicAttribute.cs
- UnionExpr.cs
- DataGridViewCellPaintingEventArgs.cs
- WindowsSlider.cs
- MenuTracker.cs
- DesignerVerb.cs
- SolidBrush.cs
- EntityTransaction.cs
- IsolatedStorageException.cs
- GenericTypeParameterBuilder.cs
- WorkflowServiceNamespace.cs
- Soap.cs
- PagesChangedEventArgs.cs
- CodePageUtils.cs
- FlowDocumentPage.cs
- DataGridViewSelectedRowCollection.cs
- DataGridViewRowEventArgs.cs
- PrintController.cs
- DetailsViewUpdateEventArgs.cs
- JoinElimination.cs
- NavigationWindow.cs
- RecommendedAsConfigurableAttribute.cs
- COM2ExtendedTypeConverter.cs
- DataGridItemCollection.cs
- Line.cs
- LeftCellWrapper.cs
- DefaultBindingPropertyAttribute.cs
- Light.cs
- CubicEase.cs
- ProcessRequestArgs.cs
- LayoutTableCell.cs
- ByteAnimationUsingKeyFrames.cs
- TimeZone.cs
- TagMapCollection.cs
- ToolboxDataAttribute.cs
- ImageCreator.cs
- EnumCodeDomSerializer.cs
- SurrogateSelector.cs
- Matrix.cs
- XmlSchema.cs
- SharedConnectionListener.cs
- NetSectionGroup.cs
- ProcessThreadCollection.cs
- DragEventArgs.cs
- LinkClickEvent.cs
- PropertyDescriptorCollection.cs
- DefaultValueConverter.cs
- MappingSource.cs
- NativeMethods.cs
- UnsafeNativeMethods.cs
- RemoteWebConfigurationHostServer.cs
- FontDriver.cs
- InternalEnumValidator.cs
- RuntimeConfigLKG.cs
- DbParameterCollection.cs