Skip to content

Commit 1db39a5

Browse files
authored
Update CodeTransparencyClient.cs adds virtual keyword to RunTransparentStatementVerification to enable consumers to Mock behavior (Azure#49679)
* Update CodeTransparencyClient.cs Add `virtual` keyword to RunTransparentStatementVerification to enable consumers to Mock behavior of this client properly for their own functional validation. * Update codegen classes per contributing documentation.
1 parent f9333ef commit 1db39a5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sdk/confidentialledger/Azure.Security.CodeTransparency/api/Azure.Security.CodeTransparency.net8.0.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public CodeTransparencyClient(System.Uri endpoint, Azure.Security.CodeTransparen
3939
public virtual Azure.Response<System.BinaryData> GetTransparencyConfigCbor(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
4040
public virtual System.Threading.Tasks.Task<Azure.Response> GetTransparencyConfigCborAsync(Azure.RequestContext context) { throw null; }
4141
public virtual System.Threading.Tasks.Task<Azure.Response<System.BinaryData>> GetTransparencyConfigCborAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
42-
public void RunTransparentStatementVerification(byte[] transparentStatementCoseSign1Bytes) { }
42+
public virtual void RunTransparentStatementVerification(byte[] transparentStatementCoseSign1Bytes) { }
4343
}
4444
public partial class CodeTransparencyClientOptions : Azure.Core.ClientOptions
4545
{

sdk/confidentialledger/Azure.Security.CodeTransparency/api/Azure.Security.CodeTransparency.netstandard2.0.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public CodeTransparencyClient(System.Uri endpoint, Azure.Security.CodeTransparen
3939
public virtual Azure.Response<System.BinaryData> GetTransparencyConfigCbor(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
4040
public virtual System.Threading.Tasks.Task<Azure.Response> GetTransparencyConfigCborAsync(Azure.RequestContext context) { throw null; }
4141
public virtual System.Threading.Tasks.Task<Azure.Response<System.BinaryData>> GetTransparencyConfigCborAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
42-
public void RunTransparentStatementVerification(byte[] transparentStatementCoseSign1Bytes) { }
42+
public virtual void RunTransparentStatementVerification(byte[] transparentStatementCoseSign1Bytes) { }
4343
}
4444
public partial class CodeTransparencyClientOptions : Azure.Core.ClientOptions
4545
{

sdk/confidentialledger/Azure.Security.CodeTransparency/src/CodeTransparencyClient.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public virtual async Task<Operation<BinaryData>> CreateEntryAsync(WaitUntil wait
262262
/// Calls <!-- see cref="CcfReceiptVerifier.VerifyTransparentStatementReceipt(JsonWebKey, byte[], byte[])"/> for each receipt found in the transparent statement.-->
263263
/// </summary>
264264
/// <param name="transparentStatementCoseSign1Bytes">Receipt cbor or Cose_Sign1 (with an embedded receipt) bytes.</param>
265-
public void RunTransparentStatementVerification(byte[] transparentStatementCoseSign1Bytes)
265+
public virtual void RunTransparentStatementVerification(byte[] transparentStatementCoseSign1Bytes)
266266
{
267267
List<Exception> failures = new List<Exception>();
268268

0 commit comments

Comments
 (0)