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
- KeyEvent.cs
- safemediahandle.cs
- PackageRelationshipCollection.cs
- IteratorDescriptor.cs
- XmlSchemaResource.cs
- VisualStyleRenderer.cs
- BulletedList.cs
- FaultHandlingFilter.cs
- UIElementHelper.cs
- Single.cs
- ExtentCqlBlock.cs
- xml.cs
- Composition.cs
- RenderOptions.cs
- StreamResourceInfo.cs
- RegionIterator.cs
- EpmCustomContentSerializer.cs
- CodeSnippetStatement.cs
- WebPartConnectionsConfigureVerb.cs
- LinearQuaternionKeyFrame.cs
- ObjectContext.cs
- DataGridBoolColumn.cs
- PageContentCollection.cs
- TreeNodeEventArgs.cs
- HashCodeCombiner.cs
- WrappedIUnknown.cs
- PrinterSettings.cs
- ButtonFlatAdapter.cs
- DataServiceClientException.cs
- ViewCellSlot.cs
- FormViewPageEventArgs.cs
- FrameworkPropertyMetadata.cs
- MethodRental.cs
- MiniMapControl.xaml.cs
- EditableLabelControl.cs
- StringUtil.cs
- OfTypeExpression.cs
- InfoCardSymmetricAlgorithm.cs
- SpellCheck.cs
- XamlSerializerUtil.cs
- CacheChildrenQuery.cs
- DataControlLinkButton.cs
- XmlNavigatorFilter.cs
- ApplicationSettingsBase.cs
- StateRuntime.cs
- TransformCryptoHandle.cs
- XDeferredAxisSource.cs
- Crypto.cs
- FamilyTypefaceCollection.cs
- ResourceAssociationTypeEnd.cs
- TemplateComponentConnector.cs
- EntityContainer.cs
- QueryLifecycle.cs
- EntityProviderServices.cs
- QuaternionConverter.cs
- XamlParser.cs
- SrgsRuleRef.cs
- DeviceContext2.cs
- XmlSchemaExternal.cs
- RolePrincipal.cs
- CursorInteropHelper.cs
- CompiledRegexRunnerFactory.cs
- StrokeNodeEnumerator.cs
- LineBreak.cs
- CodeTypeDeclaration.cs
- DesignerForm.cs
- OperationBehaviorAttribute.cs
- FilterQuery.cs
- TextElement.cs
- ChtmlTextWriter.cs
- HebrewCalendar.cs
- __TransparentProxy.cs
- SoapMessage.cs
- StorageMappingItemLoader.cs
- XmlElementAttributes.cs
- mediaeventshelper.cs
- BitmapMetadataBlob.cs
- RecognizedWordUnit.cs
- AppDomain.cs
- OperationAbortedException.cs
- BufferedWebEventProvider.cs
- InkCollectionBehavior.cs
- ContentControl.cs
- ToolStripGripRenderEventArgs.cs
- DataGridViewColumn.cs
- UserControlAutomationPeer.cs
- DataGridViewColumnConverter.cs
- Misc.cs
- PageThemeBuildProvider.cs
- ObjectStateEntry.cs
- X509CertificateClaimSet.cs
- CacheDependency.cs
- UxThemeWrapper.cs
- Int64.cs
- DbInsertCommandTree.cs
- PersistChildrenAttribute.cs
- EntityProviderServices.cs
- KeyInfo.cs
- util.cs
- NameObjectCollectionBase.cs