public ReliabilityContractAttribute(Consistency consistencyGuarantee, Cer cer) { _consistency = consistencyGuarantee; _cer = cer; }
public static CodeAttributeDeclaration ReliabilityContractDeclaration(Consistency consistency, Cer cer) { return(new CodeAttributeDeclaration( new CodeTypeReference(typeof(ReliabilityContractAttribute)), new CodeAttributeArgument( new CodePropertyReferenceExpression( new CodeTypeReferenceExpression(typeof(Consistency)), consistency.ToString())), new CodeAttributeArgument( new CodePropertyReferenceExpression( new CodeTypeReferenceExpression(typeof(Cer)), cer.ToString())))); }
public ReliabilityContractAttribute(Consistency consistency, Cer cer) { this.consistency = consistency; this.cer = cer; }
public ReliabilityContractAttribute(Consistency consistencyGuarantee, Cer cer) { this.consistencyGuarantee = consistencyGuarantee; this.cer = cer; }
/// <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> public ReliabilityContractAttribute(Consistency consistencyGuarantee, Cer cer) { throw new NotImplementedException(); }