using System;
namespace System.Runtime.ConstrainedExecution
{
/// Defines a contract for reliability between the author of some code, and the developers who have a dependency on that code.
// Token: 0x020002B8 RID: 696
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Interface, Inherited = false)]
public sealed class ReliabilityContractAttribute : Attribute
{
/// Initializes a new instance of the class with the specified guarantee and value.
/// One of the values.
/// One of the values.
// Token: 0x06002101 RID: 8449 RVA: 0x00078CE8 File Offset: 0x00076EE8
public ReliabilityContractAttribute(Consistency consistencyGuarantee, Cer cer)
{
this.consistency = consistencyGuarantee;
this.cer = cer;
}
/// Gets the value that determines the behavior of a method, type, or assembly when called under a Constrained Execution Region (CER).
/// One of the values.
// Token: 0x17000634 RID: 1588
// (get) Token: 0x06002102 RID: 8450 RVA: 0x00078D00 File Offset: 0x00076F00
public Cer Cer
{
get
{
return this.cer;
}
}
/// Gets the value of the reliability contract.
/// One of the values.
// Token: 0x17000635 RID: 1589
// (get) Token: 0x06002103 RID: 8451 RVA: 0x00078D08 File Offset: 0x00076F08
public Consistency ConsistencyGuarantee
{
get
{
return this.consistency;
}
}
// Token: 0x04000BE4 RID: 3044
private Consistency consistency;
// Token: 0x04000BE5 RID: 3045
private Cer cer;
}
}