51 lines
2.2 KiB
C#
51 lines
2.2 KiB
C#
using System;
|
|
|
|
namespace System.Runtime.ConstrainedExecution
|
|
{
|
|
/// <summary>Defines a contract for reliability between the author of some code, and the developers who have a dependency on that code.</summary>
|
|
// Token: 0x020002B8 RID: 696
|
|
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Interface, Inherited = false)]
|
|
public sealed class ReliabilityContractAttribute : Attribute
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.ConstrainedExecution.ReliabilityContractAttribute" /> class with the specified <see cref="T:System.Runtime.ConstrainedExecution.Consistency" /> guarantee and <see cref="T:System.Runtime.ConstrainedExecution.Cer" /> value.</summary>
|
|
/// <param name="consistencyGuarantee">One of the <see cref="T:System.Runtime.ConstrainedExecution.Consistency" /> values. </param>
|
|
/// <param name="cer">One of the <see cref="T:System.Runtime.ConstrainedExecution.Cer" /> values. </param>
|
|
// Token: 0x06002101 RID: 8449 RVA: 0x00078CE8 File Offset: 0x00076EE8
|
|
public ReliabilityContractAttribute(Consistency consistencyGuarantee, Cer cer)
|
|
{
|
|
this.consistency = consistencyGuarantee;
|
|
this.cer = cer;
|
|
}
|
|
|
|
/// <summary>Gets the value that determines the behavior of a method, type, or assembly when called under a Constrained Execution Region (CER). </summary>
|
|
/// <returns>One of the <see cref="T:System.Runtime.ConstrainedExecution.Cer" /> values.</returns>
|
|
// Token: 0x17000634 RID: 1588
|
|
// (get) Token: 0x06002102 RID: 8450 RVA: 0x00078D00 File Offset: 0x00076F00
|
|
public Cer Cer
|
|
{
|
|
get
|
|
{
|
|
return this.cer;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the value of the <see cref="T:System.Runtime.ConstrainedExecution.Consistency" /> reliability contract. </summary>
|
|
/// <returns>One of the <see cref="T:System.Runtime.ConstrainedExecution.Consistency" /> values.</returns>
|
|
// 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;
|
|
}
|
|
}
|