Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- LinkedResourceCollection.cs
- HtmlTableRowCollection.cs
- RotateTransform.cs
- FragmentNavigationEventArgs.cs
- FunctionCommandText.cs
- TileBrush.cs
- PersianCalendar.cs
- DataGridViewDesigner.cs
- MatchSingleFxEngineOpcode.cs
- Partitioner.cs
- FormViewInsertEventArgs.cs
- ParallelLoopState.cs
- EventListener.cs
- CodePageUtils.cs
- FontStyleConverter.cs
- ProxyWebPartManager.cs
- ThrowHelper.cs
- DbConvert.cs
- CustomErrorsSection.cs
- PropertyMetadata.cs
- DispatcherTimer.cs
- DataGridCommandEventArgs.cs
- ChildrenQuery.cs
- MSG.cs
- future.cs
- MD5CryptoServiceProvider.cs
- FieldCollectionEditor.cs
- ConfigurationManagerHelper.cs
- BitmapEffectGroup.cs
- StateItem.cs
- PrintingPermissionAttribute.cs
- SpeechSynthesizer.cs
- SettingsPropertyNotFoundException.cs
- XmlnsDictionary.cs
- ImageDrawing.cs
- SqlLiftIndependentRowExpressions.cs
- Window.cs
- MaterialCollection.cs
- HashCryptoHandle.cs
- InkCanvasFeedbackAdorner.cs
- Expression.DebuggerProxy.cs
- MouseEventArgs.cs
- Latin1Encoding.cs
- XmlMemberMapping.cs
- JsonFormatGeneratorStatics.cs
- SafeLibraryHandle.cs
- TextCharacters.cs
- objectquery_tresulttype.cs
- SmtpSection.cs
- TimelineClockCollection.cs
- XPathNavigatorReader.cs
- DataGridViewControlCollection.cs
- PeerDuplexChannelListener.cs
- Util.cs
- XmlNullResolver.cs
- StorageEntityTypeMapping.cs
- ServiceOperationParameter.cs
- DocumentViewerBase.cs
- NameTable.cs
- ThemeDirectoryCompiler.cs
- MenuScrollingVisibilityConverter.cs
- InstanceData.cs
- FacetChecker.cs
- XmlWriterTraceListener.cs
- DataGridPageChangedEventArgs.cs
- TextStore.cs
- BridgeDataRecord.cs
- Pts.cs
- EditingCommands.cs
- ObjectViewFactory.cs
- MembershipSection.cs
- DataListCommandEventArgs.cs
- VarInfo.cs
- DataSourceBooleanViewSchemaConverter.cs
- NavigateEvent.cs
- ObjectHandle.cs
- EntityDataSourceView.cs
- DataGridViewCellMouseEventArgs.cs
- DurableEnlistmentState.cs
- BackgroundFormatInfo.cs
- FontConverter.cs
- FixedPageStructure.cs
- TextContainerHelper.cs
- WindowsTokenRoleProvider.cs
- CollaborationHelperFunctions.cs
- TextPointerBase.cs
- ErrorFormatter.cs
- OrderByQueryOptionExpression.cs
- Dictionary.cs
- TagMapInfo.cs
- CodeBinaryOperatorExpression.cs
- SimpleFileLog.cs
- RuleSetDialog.cs
- log.cs
- Effect.cs
- MarkupProperty.cs
- SafeBitVector32.cs
- DiffuseMaterial.cs
- MessageHeaderDescription.cs
- Cloud.cs