Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / Hosting / ProcessHostFactoryHelper.cs / 1 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridViewIntLinkedList.cs
- Literal.cs
- PageRouteHandler.cs
- XPathNodeList.cs
- FragmentQueryKB.cs
- ProgressChangedEventArgs.cs
- XmlSchemaValidator.cs
- TreeViewTemplateSelector.cs
- XPathNode.cs
- ValidationManager.cs
- DataRelation.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- DropShadowEffect.cs
- HttpApplicationFactory.cs
- DataGridSortCommandEventArgs.cs
- ComplexLine.cs
- ChangeDirector.cs
- SerializationFieldInfo.cs
- Classification.cs
- Label.cs
- TypeGeneratedEventArgs.cs
- XmlSchemaSubstitutionGroup.cs
- PropertyGeneratedEventArgs.cs
- ExportOptions.cs
- BasicCellRelation.cs
- DeviceFiltersSection.cs
- WebPartExportVerb.cs
- XmlWrappingWriter.cs
- DelegateSerializationHolder.cs
- AuthorizationRule.cs
- OleDbTransaction.cs
- OracleInternalConnection.cs
- ThemeableAttribute.cs
- InstallerTypeAttribute.cs
- WebServiceTypeData.cs
- LayoutEngine.cs
- WindowsGraphics.cs
- CryptoApi.cs
- HtmlElementErrorEventArgs.cs
- ResourcePermissionBaseEntry.cs
- LoaderAllocator.cs
- cryptoapiTransform.cs
- CustomErrorsSection.cs
- FillRuleValidation.cs
- __ConsoleStream.cs
- StringUtil.cs
- ITreeGenerator.cs
- BrowserCapabilitiesCompiler.cs
- MaterialGroup.cs
- DataList.cs
- ReverseInheritProperty.cs
- HashHelpers.cs
- ResourceLoader.cs
- TogglePattern.cs
- ResourceDescriptionAttribute.cs
- CodeDomConfigurationHandler.cs
- TypeBuilderInstantiation.cs
- XhtmlCssHandler.cs
- TableLayout.cs
- TypeDescriptionProvider.cs
- TextLineResult.cs
- FilePrompt.cs
- Int16AnimationBase.cs
- DrawingGroupDrawingContext.cs
- ConnectionPoint.cs
- Binding.cs
- SuppressMessageAttribute.cs
- UMPAttributes.cs
- DataGridSortingEventArgs.cs
- PropertyEmitterBase.cs
- AllMembershipCondition.cs
- IriParsingElement.cs
- FlatButtonAppearance.cs
- PeerPresenceInfo.cs
- ListViewHitTestInfo.cs
- LocalFileSettingsProvider.cs
- LoginUtil.cs
- ConstraintStruct.cs
- CustomValidator.cs
- DataGridPageChangedEventArgs.cs
- UserPreference.cs
- TextFormatterImp.cs
- XmlChildEnumerator.cs
- KeyedHashAlgorithm.cs
- Int64AnimationBase.cs
- HtmlTableCellCollection.cs
- UnsafeNativeMethods.cs
- EdmProperty.cs
- PropertyToken.cs
- SerializationFieldInfo.cs
- ToolBarTray.cs
- AutomationElementCollection.cs
- Pointer.cs
- DoubleIndependentAnimationStorage.cs
- SmtpMail.cs
- AnonymousIdentificationSection.cs
- HttpException.cs
- ImpersonateTokenRef.cs
- X509SubjectKeyIdentifierClause.cs
- CrossSiteScriptingValidation.cs