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
- recordstatefactory.cs
- AccessibilityHelperForVista.cs
- AdornedElementPlaceholder.cs
- OpacityConverter.cs
- shaper.cs
- DataPointer.cs
- SqlDataSourceSummaryPanel.cs
- GridViewRow.cs
- CodeSnippetCompileUnit.cs
- Helper.cs
- PersonalizationProviderHelper.cs
- BindableTemplateBuilder.cs
- ServiceDescriptionReflector.cs
- OperationResponse.cs
- panel.cs
- CodeAccessPermission.cs
- BevelBitmapEffect.cs
- SoapEnumAttribute.cs
- OverflowException.cs
- WebRequestModuleElementCollection.cs
- InvalidCastException.cs
- ContentPropertyAttribute.cs
- QuaternionValueSerializer.cs
- InvalidPropValue.cs
- DataGridToolTip.cs
- rsa.cs
- RightsManagementEncryptedStream.cs
- WebServiceEnumData.cs
- SchemaDeclBase.cs
- VectorConverter.cs
- OLEDB_Enum.cs
- TextBoxRenderer.cs
- InvariantComparer.cs
- ComponentCommands.cs
- VectorAnimationUsingKeyFrames.cs
- DataObjectEventArgs.cs
- ToolStripButton.cs
- ToolStripArrowRenderEventArgs.cs
- FormClosedEvent.cs
- CommandManager.cs
- CodeSubDirectory.cs
- WorkflowDispatchContext.cs
- QuerySafeNavigator.cs
- Literal.cs
- HttpResponse.cs
- ConfigurationValidatorBase.cs
- PageEventArgs.cs
- AtomPub10CategoriesDocumentFormatter.cs
- StrokeCollection.cs
- LinqDataSourceUpdateEventArgs.cs
- CngProvider.cs
- CultureInfoConverter.cs
- Debugger.cs
- ServiceHostingEnvironment.cs
- HttpResponseHeader.cs
- Variable.cs
- IndicFontClient.cs
- CounterSample.cs
- ReachFixedDocumentSerializer.cs
- SeverityFilter.cs
- QilVisitor.cs
- EdmFunction.cs
- WebPageTraceListener.cs
- BindingBase.cs
- RectAnimationUsingKeyFrames.cs
- QueryParameter.cs
- XXXInfos.cs
- CompModSwitches.cs
- XmlNavigatorStack.cs
- Animatable.cs
- EntityParameter.cs
- Roles.cs
- CoTaskMemHandle.cs
- PrintingPermission.cs
- EntityDataSourceDataSelection.cs
- Security.cs
- handlecollector.cs
- _FixedSizeReader.cs
- ToolStripPanelCell.cs
- Animatable.cs
- RtfFormatStack.cs
- WindowsListView.cs
- printdlgexmarshaler.cs
- HwndSourceKeyboardInputSite.cs
- InvokeMemberBinder.cs
- RNGCryptoServiceProvider.cs
- ContentControl.cs
- EntityViewGenerationAttribute.cs
- DistinctQueryOperator.cs
- SplayTreeNode.cs
- WebErrorHandler.cs
- IItemProperties.cs
- ClientTarget.cs
- FormatterConverter.cs
- StrongNamePublicKeyBlob.cs
- ValueQuery.cs
- SourceItem.cs
- SolidColorBrush.cs
- GiveFeedbackEventArgs.cs
- BooleanProjectedSlot.cs