scripts
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
|
||||
namespace System.Runtime.ConstrainedExecution
|
||||
{
|
||||
/// <summary>Specifies a method's behavior when called within a constrained execution region.</summary>
|
||||
// Token: 0x020002B4 RID: 692
|
||||
[Serializable]
|
||||
public enum Cer
|
||||
{
|
||||
/// <summary>The method, type, or assembly has no concept of a CER. It does not take advantage of CER guarantees. This implies the following:</summary>
|
||||
// Token: 0x04000BDC RID: 3036
|
||||
None,
|
||||
/// <summary>In the face of exceptional conditions, the method might fail. In this case, the method will report back to the calling method whether it succeeded or failed. The method must have a CER around the method body to ensure that it can report the return value.</summary>
|
||||
// Token: 0x04000BDD RID: 3037
|
||||
MayFail,
|
||||
/// <summary>In the face of exceptional conditions, the method is guaranteed to succeed. You should always construct a CER around the method that is called, even when it is called from within a non-CER region. A method is successful if it accomplishes what is intended. For example, marking <see cref="P:System.Collections.ArrayList.Count" /> with ReliabilityContractAttribute(Cer.Success) implies that when it is run under a CER, it always returns a count of the number of elements in the <see cref="T:System.Collections.ArrayList" /> and it can never leave the internal fields in an undetermined state.</summary>
|
||||
// Token: 0x04000BDE RID: 3038
|
||||
Success
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
|
||||
namespace System.Runtime.ConstrainedExecution
|
||||
{
|
||||
/// <summary>Specifies a reliability contract.</summary>
|
||||
// Token: 0x020002B5 RID: 693
|
||||
[Serializable]
|
||||
public enum Consistency
|
||||
{
|
||||
/// <summary>In the face of exceptional conditions, the common language runtime (CLR) makes no guarantees regarding state consistency in the current application domain.</summary>
|
||||
// Token: 0x04000BE0 RID: 3040
|
||||
MayCorruptAppDomain = 1,
|
||||
/// <summary>In the face of exceptional conditions, the method is guaranteed to limit state corruption to the current instance.</summary>
|
||||
// Token: 0x04000BE1 RID: 3041
|
||||
MayCorruptInstance,
|
||||
/// <summary>In the face of exceptional conditions, the CLR makes no guarantees regarding state consistency; that is, the condition might corrupt the process.</summary>
|
||||
// Token: 0x04000BE2 RID: 3042
|
||||
MayCorruptProcess = 0,
|
||||
/// <summary>In the face of exceptional conditions, the method is guaranteed not to corrupt state. </summary>
|
||||
// Token: 0x04000BE3 RID: 3043
|
||||
WillNotCorruptState = 3
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Runtime.ConstrainedExecution
|
||||
{
|
||||
/// <summary>Ensures that all finalization code in derived classes is marked as critical.</summary>
|
||||
// Token: 0x020002B6 RID: 694
|
||||
[ComVisible(true)]
|
||||
public abstract class CriticalFinalizerObject
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.ConstrainedExecution.CriticalFinalizerObject" /> class.</summary>
|
||||
// Token: 0x060020FE RID: 8446 RVA: 0x00078CA0 File Offset: 0x00076EA0
|
||||
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
|
||||
protected CriticalFinalizerObject()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Releases all the resources used by the <see cref="T:System.Runtime.ConstrainedExecution.CriticalFinalizerObject" /> class.</summary>
|
||||
// Token: 0x060020FF RID: 8447 RVA: 0x00078CA8 File Offset: 0x00076EA8
|
||||
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
|
||||
~CriticalFinalizerObject()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace System.Runtime.ConstrainedExecution
|
||||
{
|
||||
/// <summary>Instructs the native image generation service to prepare a method for inclusion in a constrained execution region (CER).</summary>
|
||||
// Token: 0x020002B7 RID: 695
|
||||
[AttributeUsage(AttributeTargets.Constructor | AttributeTargets.Method, Inherited = false)]
|
||||
public sealed class PrePrepareMethodAttribute : Attribute
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user