Code:
/ FX-1434 / FX-1434 / 1.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
- ListViewItemEventArgs.cs
- ProxyOperationRuntime.cs
- BaseCollection.cs
- ManagementObjectCollection.cs
- OleDbTransaction.cs
- BulletedListDesigner.cs
- WebHostUnsafeNativeMethods.cs
- LinkedList.cs
- CapiNative.cs
- CustomErrorCollection.cs
- CaseStatementSlot.cs
- grammarelement.cs
- DataGridDesigner.cs
- DataControlField.cs
- TargetPerspective.cs
- relpropertyhelper.cs
- Model3DGroup.cs
- ImportContext.cs
- InputLanguageEventArgs.cs
- RetrieveVirtualItemEventArgs.cs
- TabPage.cs
- XamlFilter.cs
- DebugTracing.cs
- HtmlGenericControl.cs
- SolidColorBrush.cs
- ArrayTypeMismatchException.cs
- RichTextBoxConstants.cs
- JsonEncodingStreamWrapper.cs
- ToolStripLabel.cs
- DesignConnectionCollection.cs
- ProjectionPath.cs
- IdleTimeoutMonitor.cs
- HttpResponseInternalBase.cs
- RectangleGeometry.cs
- DiscoveryReference.cs
- XmlNodeReader.cs
- XmlNamespaceManager.cs
- ParallelTimeline.cs
- OneToOneMappingSerializer.cs
- UrlMappingsSection.cs
- BindingCompleteEventArgs.cs
- SyndicationFeed.cs
- BamlCollectionHolder.cs
- XmlIgnoreAttribute.cs
- RoutedCommand.cs
- ProcessRequestAsyncResult.cs
- GeometryCombineModeValidation.cs
- Inline.cs
- BlockUIContainer.cs
- CodeCatchClause.cs
- DeploymentSection.cs
- ViewGenResults.cs
- CodeGenerator.cs
- SetStoryboardSpeedRatio.cs
- OdbcConnection.cs
- DelegateSerializationHolder.cs
- IMembershipProvider.cs
- PanelStyle.cs
- FullTextBreakpoint.cs
- ColorTransformHelper.cs
- SortQuery.cs
- XmlSchemaAll.cs
- DataServiceRequestException.cs
- PageBreakRecord.cs
- Border.cs
- FixedTextView.cs
- HandlerFactoryCache.cs
- DbgCompiler.cs
- DocumentCollection.cs
- AsymmetricSecurityProtocol.cs
- ExitEventArgs.cs
- ArrangedElementCollection.cs
- MenuCommand.cs
- ConsumerConnectionPointCollection.cs
- ITextView.cs
- NumericUpDownAcceleration.cs
- StrokeNodeOperations.cs
- BigInt.cs
- ControlAdapter.cs
- SessionIDManager.cs
- DiscreteKeyFrames.cs
- UIntPtr.cs
- SecurityContext.cs
- ByteStream.cs
- SqlMethodAttribute.cs
- DataGridComboBoxColumn.cs
- AsymmetricAlgorithm.cs
- CanonicalXml.cs
- ComplexBindingPropertiesAttribute.cs
- MemberPath.cs
- SiteMapNodeCollection.cs
- DateTimeUtil.cs
- InternalConfigSettingsFactory.cs
- WmlCommandAdapter.cs
- IncrementalCompileAnalyzer.cs
- ObjectDataSourceMethodEventArgs.cs
- TreeView.cs
- FontClient.cs
- CodeTypeMember.cs
- LostFocusEventManager.cs