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
- FixedDocument.cs
- SchemaEntity.cs
- DocumentGridContextMenu.cs
- DefinitionBase.cs
- AnchoredBlock.cs
- FillErrorEventArgs.cs
- SkinBuilder.cs
- TextSimpleMarkerProperties.cs
- OracleParameter.cs
- FilterableAttribute.cs
- DataGridViewRowsRemovedEventArgs.cs
- RepeaterItem.cs
- BitmapCodecInfo.cs
- MediaPlayerState.cs
- AutoGeneratedFieldProperties.cs
- HttpValueCollection.cs
- DataGridViewImageCell.cs
- AmbientProperties.cs
- GreenMethods.cs
- SettingsPropertyCollection.cs
- FormatterServices.cs
- JsonReaderWriterFactory.cs
- wgx_commands.cs
- DataViewSetting.cs
- RegexReplacement.cs
- UserControl.cs
- MultipartContentParser.cs
- AssemblyName.cs
- SystemFonts.cs
- ChannelAcceptor.cs
- XmlComplianceUtil.cs
- TypeDescriptionProviderAttribute.cs
- UrlRoutingModule.cs
- InvalidWMPVersionException.cs
- SystemWebSectionGroup.cs
- XmlReturnWriter.cs
- RoutedEventValueSerializer.cs
- SqlDependency.cs
- XsltSettings.cs
- QilPatternVisitor.cs
- SingleSelectRootGridEntry.cs
- Visual3D.cs
- SimpleType.cs
- TypedElement.cs
- WebBaseEventKeyComparer.cs
- ActivityExecutorDelegateInfo.cs
- EnumConverter.cs
- PropertyKey.cs
- WhiteSpaceTrimStringConverter.cs
- FileDialog.cs
- QueryableDataSourceView.cs
- SimpleMailWebEventProvider.cs
- ReflectionTypeLoadException.cs
- HandlerBase.cs
- ISessionStateStore.cs
- ChangeBlockUndoRecord.cs
- DesignerCommandSet.cs
- SqlInternalConnectionTds.cs
- DefaultShape.cs
- WindowsFormsHostAutomationPeer.cs
- UpdateTranslator.cs
- CommonDialog.cs
- LocalFileSettingsProvider.cs
- StringDictionary.cs
- TypeUtils.cs
- BinaryParser.cs
- DataGridColumn.cs
- ModelPerspective.cs
- RightsManagementInformation.cs
- CollectionBuilder.cs
- PartialArray.cs
- KeyValuePair.cs
- SynchronizedInputHelper.cs
- SafeArrayRankMismatchException.cs
- SettingsPropertyIsReadOnlyException.cs
- CalendarDateChangedEventArgs.cs
- JournalNavigationScope.cs
- _FtpControlStream.cs
- SoapSchemaExporter.cs
- UIElementParaClient.cs
- StateDesignerConnector.cs
- Soap.cs
- ClientTargetCollection.cs
- SqlTypesSchemaImporter.cs
- CalendarTable.cs
- WebPartTransformerCollection.cs
- LinqDataSourceEditData.cs
- BamlRecordReader.cs
- QilScopedVisitor.cs
- GlyphTypeface.cs
- PersonalizablePropertyEntry.cs
- GZipDecoder.cs
- UnmanagedMemoryStreamWrapper.cs
- Util.cs
- SoapIncludeAttribute.cs
- CustomTokenProvider.cs
- EntityDataSourceChangedEventArgs.cs
- UpdateProgress.cs
- XsdBuildProvider.cs
- DbException.cs