Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Hosting / ProcessHostFactoryHelper.cs / 3 / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridViewCellMouseEventArgs.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- InternalDispatchObject.cs
- FocusManager.cs
- DrawingContextWalker.cs
- TemplateContentLoader.cs
- DSASignatureDeformatter.cs
- PersonalizablePropertyEntry.cs
- StylusPointPropertyInfo.cs
- ClonableStack.cs
- StrokeNodeOperations2.cs
- OrderedDictionary.cs
- ContextStack.cs
- XmlChoiceIdentifierAttribute.cs
- TextBlockAutomationPeer.cs
- CodeCommentStatement.cs
- BinHexEncoder.cs
- StylusPointPropertyInfoDefaults.cs
- _LazyAsyncResult.cs
- UnicastIPAddressInformationCollection.cs
- DrawingContextWalker.cs
- DefaultValueMapping.cs
- DataSourceCacheDurationConverter.cs
- RoutedEvent.cs
- CodeIdentifiers.cs
- ToolboxItem.cs
- NameValueCache.cs
- HttpApplication.cs
- MapPathBasedVirtualPathProvider.cs
- ConversionContext.cs
- SelectionWordBreaker.cs
- HierarchicalDataSourceIDConverter.cs
- Expression.cs
- SortAction.cs
- SelectiveScrollingGrid.cs
- TracedNativeMethods.cs
- ellipse.cs
- BooleanAnimationBase.cs
- StaticResourceExtension.cs
- SharedPerformanceCounter.cs
- SqlFacetAttribute.cs
- HttpWriter.cs
- XmlReaderDelegator.cs
- DocumentOrderQuery.cs
- DebugController.cs
- RelatedPropertyManager.cs
- PathFigureCollection.cs
- MessageBox.cs
- ClientRuntimeConfig.cs
- UserControl.cs
- IdentityHolder.cs
- ReturnType.cs
- RbTree.cs
- XamlGridLengthSerializer.cs
- SqlDataSourceEnumerator.cs
- SafeNativeMethodsMilCoreApi.cs
- ResponseBodyWriter.cs
- MenuItemStyle.cs
- TypeContext.cs
- OleDbConnectionFactory.cs
- GradientStop.cs
- ExeConfigurationFileMap.cs
- BindingListCollectionView.cs
- __Filters.cs
- PostBackTrigger.cs
- AssemblyNameProxy.cs
- BinaryMethodMessage.cs
- XmlNodeList.cs
- ComboBoxAutomationPeer.cs
- Select.cs
- EncryptedType.cs
- SystemBrushes.cs
- ChildDocumentBlock.cs
- UserControlBuildProvider.cs
- FilterException.cs
- FrameAutomationPeer.cs
- ManagementObjectSearcher.cs
- XmlQueryRuntime.cs
- TrackBarRenderer.cs
- PlanCompiler.cs
- CompressedStack.cs
- XmlSchemaGroupRef.cs
- DBCommandBuilder.cs
- CurrentChangingEventArgs.cs
- Header.cs
- Menu.cs
- InstallerTypeAttribute.cs
- FontConverter.cs
- DigestComparer.cs
- PlatformCulture.cs
- TextEditorCharacters.cs
- TextTreeTextNode.cs
- DbParameterCollectionHelper.cs
- BindingMemberInfo.cs
- IERequestCache.cs
- FailedToStartupUIException.cs
- ControlBindingsCollection.cs
- COAUTHINFO.cs
- AllMembershipCondition.cs
- UpdateRecord.cs