Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Hosting / ProcessHostFactoryHelper.cs / 1305376 / 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)] 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); } public sealed class ProcessHostFactoryHelper : MarshalByRefObject, IProcessHostFactoryHelper { 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. // //----------------------------------------------------------------------------- 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)] 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); } public sealed class ProcessHostFactoryHelper : MarshalByRefObject, IProcessHostFactoryHelper { 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Random.cs
- InkCanvasFeedbackAdorner.cs
- SamlAudienceRestrictionCondition.cs
- Not.cs
- WebPartHelpVerb.cs
- Vector3DAnimationBase.cs
- SymbolMethod.cs
- MetadataArtifactLoaderCompositeFile.cs
- PackageRelationshipCollection.cs
- DataObjectSettingDataEventArgs.cs
- NewItemsContextMenuStrip.cs
- InheritedPropertyChangedEventArgs.cs
- DelegateTypeInfo.cs
- PanningMessageFilter.cs
- SafeNativeMethods.cs
- StandardToolWindows.cs
- DockAndAnchorLayout.cs
- InvalidPipelineStoreException.cs
- ConfigurationLockCollection.cs
- _ConnectionGroup.cs
- RequiredAttributeAttribute.cs
- XmlDataImplementation.cs
- TemplateControlParser.cs
- AnimationClock.cs
- XmlSerializerImportOptions.cs
- RoleGroupCollection.cs
- BinaryMethodMessage.cs
- ClientBuildManagerCallback.cs
- StandardOleMarshalObject.cs
- ToolStripDropDownClosedEventArgs.cs
- _CacheStreams.cs
- TreeViewImageKeyConverter.cs
- HostProtectionException.cs
- PaintValueEventArgs.cs
- categoryentry.cs
- CancelEventArgs.cs
- PngBitmapEncoder.cs
- WorkflowMarkupSerializer.cs
- SizeFConverter.cs
- ToolStripPanel.cs
- coordinatorscratchpad.cs
- InitializerFacet.cs
- SmtpCommands.cs
- ServiceManager.cs
- NotFiniteNumberException.cs
- _SslStream.cs
- Pool.cs
- ISCIIEncoding.cs
- OleDbFactory.cs
- DiscoveryDocumentSearchPattern.cs
- UntypedNullExpression.cs
- DataGridViewRowCollection.cs
- WebMessageEncodingElement.cs
- relpropertyhelper.cs
- ICspAsymmetricAlgorithm.cs
- RouteTable.cs
- ConfigXmlWhitespace.cs
- PreloadedPackages.cs
- UIElementCollection.cs
- SystemColorTracker.cs
- DoubleCollection.cs
- MissingSatelliteAssemblyException.cs
- CodeSnippetStatement.cs
- BufferedStream.cs
- DebuggerAttributes.cs
- HttpRequestCacheValidator.cs
- HtmlLink.cs
- MaterializeFromAtom.cs
- MessageBox.cs
- ProviderConnectionPoint.cs
- TextModifier.cs
- CalloutQueueItem.cs
- SettingsAttributes.cs
- TableLayoutSettings.cs
- WebProxyScriptElement.cs
- Command.cs
- Figure.cs
- PrimaryKeyTypeConverter.cs
- CellQuery.cs
- _UriSyntax.cs
- UIElement.cs
- RequestCacheValidator.cs
- LockedHandleGlyph.cs
- WithParamAction.cs
- TransferRequestHandler.cs
- CodeGroup.cs
- ToolStripDropDownMenu.cs
- SourceChangedEventArgs.cs
- ComponentSerializationService.cs
- QueryOperationResponseOfT.cs
- CodeDomSerializerException.cs
- DataGridRow.cs
- LogLogRecordHeader.cs
- AuthenticatingEventArgs.cs
- CardSpaceSelector.cs
- MutexSecurity.cs
- ConfigXmlSignificantWhitespace.cs
- WebControlAdapter.cs
- DataGridViewCellCollection.cs
- IdentifierService.cs