Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- X509CertificateCollection.cs
- Peer.cs
- ControlBindingsCollection.cs
- PortCache.cs
- SamlAuthorityBinding.cs
- PrimitiveXmlSerializers.cs
- ToolStripLocationCancelEventArgs.cs
- OracleSqlParser.cs
- UnitySerializationHolder.cs
- ApplicationBuildProvider.cs
- Exception.cs
- PhonemeEventArgs.cs
- FillErrorEventArgs.cs
- XmlDocumentType.cs
- PermissionSetEnumerator.cs
- EventBuilder.cs
- DrawingVisual.cs
- TemplateInstanceAttribute.cs
- CngProperty.cs
- CustomAttributeSerializer.cs
- CheckableControlBaseAdapter.cs
- TwoPhaseCommitProxy.cs
- ValidationSummary.cs
- CommandConverter.cs
- TypeConverterHelper.cs
- GenericRootAutomationPeer.cs
- Group.cs
- ClickablePoint.cs
- LifetimeServices.cs
- CircleHotSpot.cs
- AuthenticationServiceManager.cs
- CommandValueSerializer.cs
- HandlerBase.cs
- RangeValueProviderWrapper.cs
- XmlWrappingWriter.cs
- XmlCompatibilityReader.cs
- BinaryFormatter.cs
- DataGridViewRowPrePaintEventArgs.cs
- ConnectionConsumerAttribute.cs
- login.cs
- _AuthenticationState.cs
- SmtpClient.cs
- SelectionUIService.cs
- AutomationIdentifier.cs
- DesignerLoader.cs
- WebPartManager.cs
- DecoderBestFitFallback.cs
- RawMouseInputReport.cs
- TextView.cs
- HighlightComponent.cs
- DataGridBoolColumn.cs
- ImportContext.cs
- ComponentCommands.cs
- MouseCaptureWithinProperty.cs
- RenameRuleObjectDialog.cs
- ProviderMetadata.cs
- ListView.cs
- XmlName.cs
- CommonDialog.cs
- WebPartEditorCancelVerb.cs
- AliasGenerator.cs
- arclist.cs
- EventSetter.cs
- Proxy.cs
- WebPartVerbsEventArgs.cs
- TextTreeInsertElementUndoUnit.cs
- RectangleHotSpot.cs
- HtmlShimManager.cs
- JsonStringDataContract.cs
- SqlNotificationRequest.cs
- FlowDocumentFormatter.cs
- ServiceDescriptionContext.cs
- Listbox.cs
- XsltException.cs
- CardSpaceSelector.cs
- MulticastNotSupportedException.cs
- ProfileSettings.cs
- XmlSchemaRedefine.cs
- RadioButtonBaseAdapter.cs
- TransformProviderWrapper.cs
- ComponentEvent.cs
- CompareValidator.cs
- PrintDocument.cs
- TabControlEvent.cs
- Globals.cs
- MeshGeometry3D.cs
- RetrieveVirtualItemEventArgs.cs
- Identity.cs
- XmlWellformedWriter.cs
- HandlerBase.cs
- DataPagerField.cs
- SystemException.cs
- CollectionAdapters.cs
- ProviderConnectionPoint.cs
- Pens.cs
- ContextMenuService.cs
- SafeTimerHandle.cs
- ArrayList.cs
- ModelItemExtensions.cs
- SmiTypedGetterSetter.cs