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
- AppearanceEditorPart.cs
- SchemaImporter.cs
- ConfigurationSchemaErrors.cs
- XmlSchemaSubstitutionGroup.cs
- DictionaryManager.cs
- Point3DKeyFrameCollection.cs
- Propagator.Evaluator.cs
- ConnectionPointCookie.cs
- Header.cs
- ListViewInsertEventArgs.cs
- TextRunTypographyProperties.cs
- IssuedTokenServiceElement.cs
- FileChangeNotifier.cs
- CultureTableRecord.cs
- SignatureToken.cs
- XPathEmptyIterator.cs
- XPathNodeHelper.cs
- HttpResponseInternalWrapper.cs
- PackagePart.cs
- TypeExtensionSerializer.cs
- Compiler.cs
- TypeInitializationException.cs
- DataObjectMethodAttribute.cs
- DbProviderFactory.cs
- UrlAuthorizationModule.cs
- Quack.cs
- TextFindEngine.cs
- TileBrush.cs
- XmlDataLoader.cs
- TransportContext.cs
- SwitchLevelAttribute.cs
- OutputCacheModule.cs
- X509CertificateRecipientClientCredential.cs
- ColorBuilder.cs
- ComPlusInstanceProvider.cs
- ACE.cs
- CaseStatement.cs
- BitmapMetadataEnumerator.cs
- InfoCardService.cs
- DataGridBoolColumn.cs
- ExpressionBuilderContext.cs
- OutputCacheSection.cs
- CustomWebEventKey.cs
- StringToken.cs
- DetailsView.cs
- UidManager.cs
- ListViewUpdatedEventArgs.cs
- BinaryWriter.cs
- ObjectConverter.cs
- ModulesEntry.cs
- BindingMAnagerBase.cs
- TimeSpan.cs
- ViewCellSlot.cs
- TransformBlockRequest.cs
- SurrogateDataContract.cs
- ILGenerator.cs
- Formatter.cs
- CatalogPartCollection.cs
- MinimizableAttributeTypeConverter.cs
- X509ChainPolicy.cs
- MergePropertyDescriptor.cs
- ProfileSettingsCollection.cs
- TextWriterTraceListener.cs
- ExecutionContext.cs
- Control.cs
- TemplateManager.cs
- HttpRequest.cs
- MatrixTransform3D.cs
- AuthorizationSection.cs
- ButtonFieldBase.cs
- Utilities.cs
- TextElementEnumerator.cs
- baseaxisquery.cs
- RepeaterItemCollection.cs
- GradientStopCollection.cs
- ZoneLinkButton.cs
- DropShadowEffect.cs
- PlainXmlDeserializer.cs
- NetSectionGroup.cs
- DataGridViewAdvancedBorderStyle.cs
- EntityStoreSchemaGenerator.cs
- SchemaInfo.cs
- ItemCollection.cs
- SqlDeflator.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ResourceKey.cs
- LoadItemsEventArgs.cs
- SynchronousReceiveBehavior.cs
- DelayedRegex.cs
- SqlStatistics.cs
- Cell.cs
- EdmComplexPropertyAttribute.cs
- ToolStripSeparatorRenderEventArgs.cs
- MessagingActivityHelper.cs
- webclient.cs
- Oci.cs
- DbConnectionPoolGroupProviderInfo.cs
- SecUtil.cs
- WSSecurityXXX2005.cs
- FixUpCollection.cs