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
- GroupBoxRenderer.cs
- RNGCryptoServiceProvider.cs
- StyleXamlParser.cs
- UnsafeNativeMethods.cs
- IssuedTokensHeader.cs
- TimeSpanHelper.cs
- SQLBinaryStorage.cs
- PixelShader.cs
- StringValueSerializer.cs
- SeparatorAutomationPeer.cs
- WebServiceReceive.cs
- XmlCustomFormatter.cs
- InterleavedZipPartStream.cs
- MetafileHeader.cs
- DurationConverter.cs
- DocumentViewerConstants.cs
- MemberDescriptor.cs
- XmlAnyElementAttribute.cs
- DocumentSequenceHighlightLayer.cs
- IISMapPath.cs
- ELinqQueryState.cs
- TrustLevelCollection.cs
- AuthenticationModuleElementCollection.cs
- HostedAspNetEnvironment.cs
- AutomationIdentifier.cs
- FormViewPagerRow.cs
- SystemTcpStatistics.cs
- AuthenticationModuleElement.cs
- KeyGesture.cs
- ControlOperationInvoker.cs
- Models.cs
- TerminatorSinks.cs
- StringExpressionSet.cs
- XmlSchemaObjectTable.cs
- CqlBlock.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- PriorityItem.cs
- UnsafeNativeMethods.cs
- XmlFormatExtensionPointAttribute.cs
- Win32Exception.cs
- GCHandleCookieTable.cs
- _NestedMultipleAsyncResult.cs
- FontStretch.cs
- StylusPointCollection.cs
- DocumentViewer.cs
- _ConnectOverlappedAsyncResult.cs
- TCEAdapterGenerator.cs
- MetadataArtifactLoader.cs
- RectangleGeometry.cs
- XsdBuilder.cs
- FixedElement.cs
- CustomWebEventKey.cs
- CodeObject.cs
- DropSourceBehavior.cs
- BezierSegment.cs
- ThicknessKeyFrameCollection.cs
- ListBase.cs
- DbConnectionInternal.cs
- DesignerAttribute.cs
- InstrumentationTracker.cs
- WsdlParser.cs
- TableLayoutStyle.cs
- InheritedPropertyChangedEventArgs.cs
- ToolStripLocationCancelEventArgs.cs
- DependencyObject.cs
- MobileFormsAuthentication.cs
- DefaultParameterValueAttribute.cs
- CapabilitiesRule.cs
- ZoneIdentityPermission.cs
- MexTcpBindingElement.cs
- LogStream.cs
- StorageAssociationTypeMapping.cs
- NumericUpDownAccelerationCollection.cs
- LineVisual.cs
- Delay.cs
- DictionaryEntry.cs
- ListViewAutomationPeer.cs
- CharUnicodeInfo.cs
- ItemChangedEventArgs.cs
- XmlSchemaSet.cs
- ProviderCommandInfoUtils.cs
- AuthenticodeSignatureInformation.cs
- PromptBuilder.cs
- XmlWriter.cs
- CheckBox.cs
- UrlMapping.cs
- TypeHelpers.cs
- validationstate.cs
- InternalConfigRoot.cs
- AppDomainShutdownMonitor.cs
- SerializationStore.cs
- TextStore.cs
- DefaultValueConverter.cs
- KeyManager.cs
- Emitter.cs
- Socket.cs
- DoubleAnimationUsingPath.cs
- UpdatableGenericsFeature.cs
- InternalTransaction.cs
- CaseStatement.cs