using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System
{
/// Identifies the activation context for the current application. This class cannot be inherited.
/// 1
// Token: 0x0200062D RID: 1581
[ComVisible(false)]
[Serializable]
public sealed class ActivationContext : IDisposable, ISerializable
{
// Token: 0x06003A0F RID: 14863 RVA: 0x000C7360 File Offset: 0x000C5560
private ActivationContext(ApplicationIdentity identity)
{
this._appid = identity;
}
/// Populates a with the data needed to serialize the target object.
/// The to populate with data.
/// The structure for this serialization.
// Token: 0x06003A10 RID: 14864 RVA: 0x000C7370 File Offset: 0x000C5570
[MonoTODO("Missing serialization support")]
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
{
if (info == null)
{
throw new ArgumentNullException("info");
}
}
// Token: 0x06003A11 RID: 14865 RVA: 0x000C7384 File Offset: 0x000C5584
~ActivationContext()
{
this.Dispose(false);
}
/// Gets the form, or store context, for the current application.
/// One of the values.
/// 1
// Token: 0x17000B1F RID: 2847
// (get) Token: 0x06003A12 RID: 14866 RVA: 0x000C73C0 File Offset: 0x000C55C0
public ActivationContext.ContextForm Form
{
get
{
return this._form;
}
}
/// Gets the application identity for the current application.
/// An object that identifies the current application.
/// 1
// Token: 0x17000B20 RID: 2848
// (get) Token: 0x06003A13 RID: 14867 RVA: 0x000C73C8 File Offset: 0x000C55C8
public ApplicationIdentity Identity
{
get
{
return this._appid;
}
}
/// Initializes a new instance of the class using the specified application identity.
/// An object.
/// An object that identifies an application.
///
/// is null.
/// No deployment or application identity is specified in .
/// 1
///
///
///
// Token: 0x06003A14 RID: 14868 RVA: 0x000C73D0 File Offset: 0x000C55D0
[MonoTODO("Missing validation")]
public static ActivationContext CreatePartialActivationContext(ApplicationIdentity identity)
{
if (identity == null)
{
throw new ArgumentNullException("identity");
}
return new ActivationContext(identity);
}
/// Initializes a new instance of the class using the specified application identity and array of manifest paths.
/// An object.
/// An object that identifies an application.
/// A string array of manifest paths for the application.
///
/// is null. -or- is null.
/// No deployment or application identity is specified in .-or- does not match the identity in the manifests.-or- does not have the same number of components as the manifest paths.
/// 1
///
///
///
// Token: 0x06003A15 RID: 14869 RVA: 0x000C73EC File Offset: 0x000C55EC
[MonoTODO("Missing validation")]
public static ActivationContext CreatePartialActivationContext(ApplicationIdentity identity, string[] manifestPaths)
{
if (identity == null)
{
throw new ArgumentNullException("identity");
}
if (manifestPaths == null)
{
throw new ArgumentNullException("manifestPaths");
}
return new ActivationContext(identity);
}
/// Releases all resources used by the .
/// 1
// Token: 0x06003A16 RID: 14870 RVA: 0x000C7424 File Offset: 0x000C5624
public void Dispose()
{
this.Dispose(true);
GC.SuppressFinalize(this);
}
// Token: 0x06003A17 RID: 14871 RVA: 0x000C7434 File Offset: 0x000C5634
private void Dispose(bool disposing)
{
if (this._disposed)
{
if (disposing)
{
}
this._disposed = true;
}
}
// Token: 0x04001763 RID: 5987
private ActivationContext.ContextForm _form;
// Token: 0x04001764 RID: 5988
private ApplicationIdentity _appid;
// Token: 0x04001765 RID: 5989
private bool _disposed;
/// Indicates the context for a manifest-activated application.
// Token: 0x0200062E RID: 1582
public enum ContextForm
{
/// The application is not in the ClickOnce store.
// Token: 0x04001767 RID: 5991
Loose,
/// The application is contained in the ClickOnce store.
// Token: 0x04001768 RID: 5992
StoreBounded
}
}
}