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
- InputLangChangeRequestEvent.cs
- ClientFormsAuthenticationMembershipProvider.cs
- PageCodeDomTreeGenerator.cs
- OraclePermission.cs
- OracleBFile.cs
- ServicePointManagerElement.cs
- OuterGlowBitmapEffect.cs
- SemaphoreSecurity.cs
- XPathNavigator.cs
- SecurityTokenInclusionMode.cs
- Knowncolors.cs
- CancelEventArgs.cs
- DiagnosticTrace.cs
- CodeDOMUtility.cs
- StateMachineDesignerPaint.cs
- XmlWrappingReader.cs
- PropertyStore.cs
- Point3DValueSerializer.cs
- ViewDesigner.cs
- ColorContextHelper.cs
- MenuItemBinding.cs
- Int16.cs
- ITreeGenerator.cs
- DesignerAdRotatorAdapter.cs
- ProfileManager.cs
- WorkflowMarkupSerializationException.cs
- ExtendedPropertyDescriptor.cs
- ToggleProviderWrapper.cs
- LayoutTable.cs
- TextTabProperties.cs
- MobileComponentEditorPage.cs
- Pen.cs
- StaticExtension.cs
- SecurityKeyUsage.cs
- SQLBytes.cs
- AssociationType.cs
- SqlRowUpdatingEvent.cs
- ReadOnlyPermissionSet.cs
- InteropExecutor.cs
- WebPermission.cs
- DropSource.cs
- IgnoreFileBuildProvider.cs
- GeometryValueSerializer.cs
- HttpAsyncResult.cs
- WebConfigurationHostFileChange.cs
- SoapHttpTransportImporter.cs
- Resources.Designer.cs
- ServiceHttpHandlerFactory.cs
- WebEventCodes.cs
- Trace.cs
- WebHttpSecurity.cs
- NativeMethods.cs
- Message.cs
- RIPEMD160Managed.cs
- GridViewRow.cs
- InvokeMethod.cs
- recordstatefactory.cs
- IsolationInterop.cs
- SqlUDTStorage.cs
- WriteableBitmap.cs
- Selection.cs
- TypeUtils.cs
- XPathChildIterator.cs
- FlowDocument.cs
- TextBox.cs
- SimpleApplicationHost.cs
- EdmItemCollection.cs
- LineServicesRun.cs
- RuntimeConfigLKG.cs
- DocumentCollection.cs
- SignatureHelper.cs
- PathFigureCollection.cs
- OwnerDrawPropertyBag.cs
- SessionPageStatePersister.cs
- ToggleButton.cs
- BindingExpressionBase.cs
- HintTextConverter.cs
- GroupBoxRenderer.cs
- DesignerProperties.cs
- HttpModuleCollection.cs
- ParserExtension.cs
- SecureConversationSecurityTokenParameters.cs
- ListSourceHelper.cs
- CompoundFileDeflateTransform.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ImageSourceValueSerializer.cs
- QueryOutputWriter.cs
- XamlTemplateSerializer.cs
- ByteAnimation.cs
- OperatorExpressions.cs
- ListSortDescription.cs
- KeyTime.cs
- ContainerControl.cs
- HttpPostedFileWrapper.cs
- LessThanOrEqual.cs
- RectConverter.cs
- InstanceStoreQueryResult.cs
- DrawTreeNodeEventArgs.cs
- sqlser.cs
- MarkupWriter.cs