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
- Vector3DCollectionValueSerializer.cs
- PageBreakRecord.cs
- CompilerScopeManager.cs
- PopupRoot.cs
- SlipBehavior.cs
- CompilationPass2TaskInternal.cs
- bidPrivateBase.cs
- UrlPropertyAttribute.cs
- DependencyPropertyAttribute.cs
- CancellationState.cs
- TreeViewItem.cs
- MetaColumn.cs
- ScrollableControl.cs
- TraceHandlerErrorFormatter.cs
- GridViewSortEventArgs.cs
- ListViewTableRow.cs
- MemberHolder.cs
- ParserExtension.cs
- DesignerDeviceConfig.cs
- MetadataSource.cs
- HostedBindingBehavior.cs
- PerformanceCounterManager.cs
- HttpAsyncResult.cs
- Semaphore.cs
- RNGCryptoServiceProvider.cs
- SectionVisual.cs
- SqlClientMetaDataCollectionNames.cs
- SafeFreeMibTable.cs
- GuidelineCollection.cs
- PropertyToken.cs
- CommandBinding.cs
- PagesSection.cs
- TreeViewCancelEvent.cs
- ExpressionBindingsDialog.cs
- BamlMapTable.cs
- WpfWebRequestHelper.cs
- HtmlImage.cs
- DefaultAssemblyResolver.cs
- Exceptions.cs
- XamlTreeBuilder.cs
- Int16Animation.cs
- SystemTcpConnection.cs
- AmbientLight.cs
- FormatterServices.cs
- ScriptMethodAttribute.cs
- RijndaelManaged.cs
- PenThreadWorker.cs
- Publisher.cs
- ArithmeticLiteral.cs
- PkcsMisc.cs
- VersionUtil.cs
- FieldMetadata.cs
- XmlSchemaObject.cs
- InvalidAsynchronousStateException.cs
- nulltextnavigator.cs
- UIPropertyMetadata.cs
- EmbeddedMailObjectsCollection.cs
- MapPathBasedVirtualPathProvider.cs
- UnsafeNativeMethods.cs
- ArithmeticLiteral.cs
- ClrPerspective.cs
- TypedTableGenerator.cs
- xmlfixedPageInfo.cs
- Clock.cs
- SettingsBase.cs
- EncodingDataItem.cs
- XmlDictionaryReaderQuotas.cs
- UseLicense.cs
- ValidatorCollection.cs
- StringDictionary.cs
- CapabilitiesPattern.cs
- DisplayMemberTemplateSelector.cs
- XmlAttributeCollection.cs
- CodeDirectoryCompiler.cs
- BooleanKeyFrameCollection.cs
- Table.cs
- DecimalConstantAttribute.cs
- BadImageFormatException.cs
- ComponentManagerBroker.cs
- RepeaterItemCollection.cs
- SoapAttributeOverrides.cs
- UnsignedPublishLicense.cs
- ReaderWriterLock.cs
- _AutoWebProxyScriptEngine.cs
- RawStylusInputReport.cs
- EmptyElement.cs
- Header.cs
- XPathMultyIterator.cs
- SerializerWriterEventHandlers.cs
- HiddenFieldPageStatePersister.cs
- XmlNodeList.cs
- DataGridViewTextBoxColumn.cs
- XmlSerializerFaultFormatter.cs
- CompilationSection.cs
- DecimalAnimationBase.cs
- Number.cs
- RelativeSource.cs
- ObjectStorage.cs
- AsnEncodedData.cs
- isolationinterop.cs