Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / ActivationArguments.cs / 1 / ActivationArguments.cs
namespace System.Runtime.Hosting { [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public sealed class ActivationArguments { private ActivationArguments () {} // This boolean is used to smuggle the information about whether // AppDomainSetup was constructed from an ActivationContext. private bool m_useFusionActivationContext = false; internal bool UseFusionActivationContext { get { return m_useFusionActivationContext; } } // This is used to indicate whether the instance is to be activated // during the new domain's initialization. CreateInstanceHelper sets // this flag to true; CreateDomainHelper never activates the application. private bool m_activateInstance = false; internal bool ActivateInstance { get { return m_activateInstance; } set { m_activateInstance = value; } } private string m_appFullName; internal string ApplicationFullName { get { return m_appFullName; } } private string[] m_appManifestPaths; internal string[] ApplicationManifestPaths { get { return m_appManifestPaths; } } #if !FEATURE_PAL public ActivationArguments (ApplicationIdentity applicationIdentity) : this (applicationIdentity, null) {} public ActivationArguments (ApplicationIdentity applicationIdentity, string[] activationData) { if (applicationIdentity == null) throw new ArgumentNullException("applicationIdentity"); m_appFullName = applicationIdentity.FullName; m_activationData = activationData; } public ActivationArguments (ActivationContext activationData) : this (activationData, null) {} public ActivationArguments (ActivationContext activationContext, string[] activationData) { if (activationContext == null) throw new ArgumentNullException("activationContext"); m_appFullName = activationContext.Identity.FullName; m_appManifestPaths = activationContext.ManifestPaths; m_activationData = activationData; m_useFusionActivationContext = true; } internal ActivationArguments (string appFullName, string[] appManifestPaths, string[] activationData) { if (appFullName == null) throw new ArgumentNullException("appFullName"); m_appFullName = appFullName; m_appManifestPaths = appManifestPaths; m_activationData = activationData; m_useFusionActivationContext = true; } public ApplicationIdentity ApplicationIdentity { get { return new ApplicationIdentity(m_appFullName); } } public ActivationContext ActivationContext { get { if (!UseFusionActivationContext) return null; if (m_appManifestPaths == null) return new ActivationContext(new ApplicationIdentity(m_appFullName)); else return new ActivationContext(new ApplicationIdentity(m_appFullName), m_appManifestPaths); } } #endif // !FEATURE_PAL private string[] m_activationData; public string[] ActivationData { get { return m_activationData; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Runtime.Hosting { [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public sealed class ActivationArguments { private ActivationArguments () {} // This boolean is used to smuggle the information about whether // AppDomainSetup was constructed from an ActivationContext. private bool m_useFusionActivationContext = false; internal bool UseFusionActivationContext { get { return m_useFusionActivationContext; } } // This is used to indicate whether the instance is to be activated // during the new domain's initialization. CreateInstanceHelper sets // this flag to true; CreateDomainHelper never activates the application. private bool m_activateInstance = false; internal bool ActivateInstance { get { return m_activateInstance; } set { m_activateInstance = value; } } private string m_appFullName; internal string ApplicationFullName { get { return m_appFullName; } } private string[] m_appManifestPaths; internal string[] ApplicationManifestPaths { get { return m_appManifestPaths; } } #if !FEATURE_PAL public ActivationArguments (ApplicationIdentity applicationIdentity) : this (applicationIdentity, null) {} public ActivationArguments (ApplicationIdentity applicationIdentity, string[] activationData) { if (applicationIdentity == null) throw new ArgumentNullException("applicationIdentity"); m_appFullName = applicationIdentity.FullName; m_activationData = activationData; } public ActivationArguments (ActivationContext activationData) : this (activationData, null) {} public ActivationArguments (ActivationContext activationContext, string[] activationData) { if (activationContext == null) throw new ArgumentNullException("activationContext"); m_appFullName = activationContext.Identity.FullName; m_appManifestPaths = activationContext.ManifestPaths; m_activationData = activationData; m_useFusionActivationContext = true; } internal ActivationArguments (string appFullName, string[] appManifestPaths, string[] activationData) { if (appFullName == null) throw new ArgumentNullException("appFullName"); m_appFullName = appFullName; m_appManifestPaths = appManifestPaths; m_activationData = activationData; m_useFusionActivationContext = true; } public ApplicationIdentity ApplicationIdentity { get { return new ApplicationIdentity(m_appFullName); } } public ActivationContext ActivationContext { get { if (!UseFusionActivationContext) return null; if (m_appManifestPaths == null) return new ActivationContext(new ApplicationIdentity(m_appFullName)); else return new ActivationContext(new ApplicationIdentity(m_appFullName), m_appManifestPaths); } } #endif // !FEATURE_PAL private string[] m_activationData; public string[] ActivationData { get { return m_activationData; } } } } // 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
- ScrollBarRenderer.cs
- TabControl.cs
- CommandEventArgs.cs
- _AuthenticationState.cs
- StyleHelper.cs
- ConfigurationSection.cs
- DataGridDetailsPresenter.cs
- ConfigurationManagerHelperFactory.cs
- XPathDocumentIterator.cs
- URIFormatException.cs
- XPathSelfQuery.cs
- infer.cs
- CellTreeNode.cs
- ToolStripSeparatorRenderEventArgs.cs
- EmptyTextWriter.cs
- RequestResponse.cs
- NetCodeGroup.cs
- SchemaImporter.cs
- Cursor.cs
- BufferedOutputStream.cs
- ToolStripSettings.cs
- DBBindings.cs
- SqlException.cs
- XmlChildNodes.cs
- AtomPub10ServiceDocumentFormatter.cs
- WebReferencesBuildProvider.cs
- WindowsAltTab.cs
- RecognitionResult.cs
- PopOutPanel.cs
- DecoratedNameAttribute.cs
- EntityConnectionStringBuilder.cs
- ZipIOCentralDirectoryBlock.cs
- TerminateDesigner.cs
- EncryptedPackage.cs
- BasicExpandProvider.cs
- DataGridViewElement.cs
- EmissiveMaterial.cs
- login.cs
- TripleDES.cs
- ColorMap.cs
- EntityConnectionStringBuilder.cs
- X509Extension.cs
- GeneralTransform2DTo3DTo2D.cs
- ThemeInfoAttribute.cs
- ManipulationInertiaStartingEventArgs.cs
- DataListDesigner.cs
- FactoryGenerator.cs
- ClassImporter.cs
- ObjectItemCachedAssemblyLoader.cs
- DecoderBestFitFallback.cs
- TemplateControlBuildProvider.cs
- CodeTypeReference.cs
- ItemCollection.cs
- AdCreatedEventArgs.cs
- ExceptionUtil.cs
- MethodBuilderInstantiation.cs
- RsaSecurityKey.cs
- MsmqReceiveHelper.cs
- ipaddressinformationcollection.cs
- TextInfo.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- BaseTemplateParser.cs
- EventLogReader.cs
- MessageAction.cs
- BackgroundFormatInfo.cs
- ObjectListDesigner.cs
- DocumentPageView.cs
- EntityContainerAssociationSet.cs
- GridViewItemAutomationPeer.cs
- Popup.cs
- SerializationAttributes.cs
- Header.cs
- DesignerActionVerbItem.cs
- DataBinding.cs
- CodeAttributeDeclaration.cs
- PropertyPushdownHelper.cs
- BypassElement.cs
- BitmapEffectDrawing.cs
- SimpleType.cs
- ModelTypeConverter.cs
- StringFreezingAttribute.cs
- FontCacheUtil.cs
- BitmapEffectDrawingContextWalker.cs
- WindowsProgressbar.cs
- DesignConnectionCollection.cs
- ScrollChrome.cs
- TreeViewCancelEvent.cs
- TypedTableGenerator.cs
- SafeFileHandle.cs
- _CookieModule.cs
- SByteConverter.cs
- ElementProxy.cs
- ParseHttpDate.cs
- PerfCounters.cs
- CapacityStreamGeometryContext.cs
- Brush.cs
- Transactions.cs
- DataGridViewCellConverter.cs
- CodeMethodReturnStatement.cs
- EnumType.cs