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
- StylusPlugin.cs
- PersistChildrenAttribute.cs
- GridViewSortEventArgs.cs
- invalidudtexception.cs
- FlowNode.cs
- RoleManagerModule.cs
- InputEventArgs.cs
- UpdateException.cs
- jithelpers.cs
- JsonByteArrayDataContract.cs
- Polyline.cs
- PasswordPropertyTextAttribute.cs
- XmlAtomicValue.cs
- MatrixTransform.cs
- CodeIdentifier.cs
- ManagementEventWatcher.cs
- HiddenField.cs
- BasicExpressionVisitor.cs
- PngBitmapDecoder.cs
- DesignerCategoryAttribute.cs
- ListViewItem.cs
- FormsAuthenticationTicket.cs
- BasicCellRelation.cs
- CompilerCollection.cs
- ProgressBar.cs
- WebEventTraceProvider.cs
- RelationshipNavigation.cs
- NetworkCredential.cs
- HttpConfigurationContext.cs
- BigIntegerStorage.cs
- OrderToken.cs
- LZCodec.cs
- TableSectionStyle.cs
- SqlMethodCallConverter.cs
- WebBrowserNavigatedEventHandler.cs
- ExtendedProtectionPolicyTypeConverter.cs
- VideoDrawing.cs
- ObjectFullSpanRewriter.cs
- CompoundFileIOPermission.cs
- XsltContext.cs
- DynamicUpdateCommand.cs
- WeakReferenceEnumerator.cs
- _SecureChannel.cs
- RangeBaseAutomationPeer.cs
- ConfigurationManagerInternalFactory.cs
- MediaSystem.cs
- recordstatefactory.cs
- DayRenderEvent.cs
- FieldAccessException.cs
- WindowsAuthenticationModule.cs
- XmlSerializationReader.cs
- ExtenderProvidedPropertyAttribute.cs
- WorkItem.cs
- ColumnMapTranslator.cs
- DbConnectionPoolIdentity.cs
- HashCodeCombiner.cs
- SoapCommonClasses.cs
- _DisconnectOverlappedAsyncResult.cs
- SqlTypesSchemaImporter.cs
- JsonXmlDataContract.cs
- TypeSystem.cs
- MulticastDelegate.cs
- TrackingStringDictionary.cs
- StringArrayConverter.cs
- IResourceProvider.cs
- LocatorManager.cs
- RelationshipType.cs
- WebPartManagerInternals.cs
- WindowsHyperlink.cs
- StringResourceManager.cs
- UseLicense.cs
- BrushConverter.cs
- WpfSharedBamlSchemaContext.cs
- KnownTypesHelper.cs
- XPathCompileException.cs
- InvalidDataContractException.cs
- KeyPressEvent.cs
- URLAttribute.cs
- CodeCommentStatement.cs
- AsyncResult.cs
- BStrWrapper.cs
- ProcessHostFactoryHelper.cs
- embossbitmapeffect.cs
- ListViewItem.cs
- SqlHelper.cs
- SearchExpression.cs
- prefixendpointaddressmessagefiltertable.cs
- MediaElementAutomationPeer.cs
- HttpTransportElement.cs
- DataContractSerializer.cs
- FloaterParaClient.cs
- PopOutPanel.cs
- BaseValidator.cs
- SignatureDescription.cs
- GorillaCodec.cs
- CodeIndexerExpression.cs
- Latin1Encoding.cs
- ContextMarshalException.cs
- Visual.cs
- SafeUserTokenHandle.cs