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
- DomainUpDown.cs
- TableRow.cs
- BulletDecorator.cs
- SafeArchiveContext.cs
- PrintControllerWithStatusDialog.cs
- TypeInitializationException.cs
- EntityModelBuildProvider.cs
- CqlErrorHelper.cs
- SqlDataRecord.cs
- ComboBox.cs
- X509CertificateCollection.cs
- HiddenField.cs
- HttpModulesSection.cs
- TextEndOfParagraph.cs
- ColorBuilder.cs
- IpcChannel.cs
- UriPrefixTable.cs
- SpellerHighlightLayer.cs
- Thumb.cs
- MSAAEventDispatcher.cs
- QilXmlReader.cs
- SqlDataSourceQueryEditorForm.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- TextSchema.cs
- NameScopePropertyAttribute.cs
- CommonDialog.cs
- SystemColors.cs
- X509UI.cs
- FileNotFoundException.cs
- BreadCrumbTextConverter.cs
- SqlOuterApplyReducer.cs
- Columns.cs
- Compilation.cs
- CachedFontFamily.cs
- RemotingException.cs
- coordinatorfactory.cs
- FormViewUpdatedEventArgs.cs
- LabelLiteral.cs
- WeakReference.cs
- WindowsToolbarAsMenu.cs
- ProfileSettingsCollection.cs
- SweepDirectionValidation.cs
- SizeAnimationClockResource.cs
- MatrixStack.cs
- SequenceFullException.cs
- ConstructorArgumentAttribute.cs
- DataKeyCollection.cs
- ListViewItem.cs
- PocoEntityKeyStrategy.cs
- ToolStripTextBox.cs
- SystemWebSectionGroup.cs
- ComponentEditorPage.cs
- TypeElement.cs
- ImageField.cs
- QueryOperator.cs
- XmlSignatureProperties.cs
- VisualBasicHelper.cs
- StringToken.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- PartialList.cs
- ProcessThread.cs
- HttpCapabilitiesSectionHandler.cs
- CodeRemoveEventStatement.cs
- NavigationHelper.cs
- TableLayoutStyle.cs
- MulticastOption.cs
- PeerObject.cs
- ResolveCriteriaCD1.cs
- TypeKeyValue.cs
- DataPagerCommandEventArgs.cs
- CodeDOMProvider.cs
- XamlTreeBuilderBamlRecordWriter.cs
- WasAdminWrapper.cs
- ScrollChrome.cs
- MenuCommandsChangedEventArgs.cs
- Attributes.cs
- XmlNodeChangedEventArgs.cs
- SerializationInfo.cs
- StoreItemCollection.Loader.cs
- TimeZoneNotFoundException.cs
- ProxyManager.cs
- EntityViewGenerator.cs
- RTLAwareMessageBox.cs
- DesignerObject.cs
- EventInfo.cs
- XmlSchemaExporter.cs
- LogicalChannel.cs
- AutoScrollExpandMessageFilter.cs
- IntAverageAggregationOperator.cs
- ClusterSafeNativeMethods.cs
- WebUtil.cs
- LoaderAllocator.cs
- ConfigurationStrings.cs
- ThemeInfoAttribute.cs
- MemoryMappedViewAccessor.cs
- DesignerCategoryAttribute.cs
- PauseStoryboard.cs
- ObjectListCommandEventArgs.cs
- LogRecordSequence.cs
- ObjectDataSourceDisposingEventArgs.cs