Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Hosting / ProcessHostFactoryHelper.cs / 4 / 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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TrackingProvider.cs
- ColorContext.cs
- EventSourceCreationData.cs
- FrameworkEventSource.cs
- TextProperties.cs
- ComponentManagerBroker.cs
- BindingSourceDesigner.cs
- DesignBindingEditor.cs
- DataGridViewSelectedCellCollection.cs
- ThreadStateException.cs
- ReflectionUtil.cs
- TagPrefixInfo.cs
- WebResponse.cs
- ColorTransform.cs
- TriggerActionCollection.cs
- ToolStripManager.cs
- WebContext.cs
- LinqExpressionNormalizer.cs
- EntityFunctions.cs
- OracleConnectionFactory.cs
- UDPClient.cs
- SchemaCollectionCompiler.cs
- MaskedTextProvider.cs
- RectValueSerializer.cs
- EventLogEntry.cs
- Identifier.cs
- SqlIdentifier.cs
- ResourceProviderFactory.cs
- ToolStripDropDownButton.cs
- RegexReplacement.cs
- DataGridViewCellStyle.cs
- OleDbFactory.cs
- ZipArchive.cs
- IsolatedStoragePermission.cs
- OdbcDataReader.cs
- DataBindingHandlerAttribute.cs
- AnnotationStore.cs
- MailMessageEventArgs.cs
- SettingsBase.cs
- DependentList.cs
- NumberSubstitution.cs
- KnownTypesHelper.cs
- InheritanceRules.cs
- CacheVirtualItemsEvent.cs
- TraceXPathNavigator.cs
- HitTestParameters3D.cs
- BypassElementCollection.cs
- ReflectPropertyDescriptor.cs
- SimpleRecyclingCache.cs
- MetabaseSettingsIis7.cs
- FilteredAttributeCollection.cs
- DateTime.cs
- ClipboardProcessor.cs
- BinaryUtilClasses.cs
- GuidConverter.cs
- Dispatcher.cs
- ExpressionNormalizer.cs
- ExpressionBindings.cs
- ErrorTableItemStyle.cs
- MessageFilter.cs
- StylusOverProperty.cs
- GenerateHelper.cs
- FormsAuthentication.cs
- XmlHierarchyData.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- CharacterBuffer.cs
- ItemsControlAutomationPeer.cs
- CodePrimitiveExpression.cs
- FakeModelItemImpl.cs
- DesignerSerializationOptionsAttribute.cs
- WindowShowOrOpenTracker.cs
- SessionPageStatePersister.cs
- CodeAccessPermission.cs
- ApplicationFileParser.cs
- HttpListenerResponse.cs
- LocatorGroup.cs
- FaultPropagationQuery.cs
- IsolationInterop.cs
- IConvertible.cs
- HitTestFilterBehavior.cs
- contentDescriptor.cs
- ExternalException.cs
- PenContext.cs
- TextReader.cs
- BinaryFormatter.cs
- MarshalByRefObject.cs
- LocalValueEnumerator.cs
- InstanceNormalEvent.cs
- DbConnectionPoolCounters.cs
- FormatterServices.cs
- Walker.cs
- ClassHandlersStore.cs
- GeneralTransformGroup.cs
- entityreference_tresulttype.cs
- clipboard.cs
- QueueProcessor.cs
- SynchronizedDispatch.cs
- DbProviderFactory.cs
- Binding.cs
- TimersDescriptionAttribute.cs