From 38390d87aefbf1707ec17514e721a034bff2f561 Mon Sep 17 00:00:00 2001 From: Alex Wichmann Date: Fri, 16 Aug 2024 13:14:18 +0200 Subject: [PATCH 1/2] Add beta link to bindings. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 593dbd88..ce65fd33 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Install the NuGet packages: ### AsyncAPI.Bindings [![Nuget](https://img.shields.io/nuget/v/AsyncAPI.NET.Bindings?label=AsyncAPI.Bindings&style=for-the-badge)](https://www.nuget.org/packages/AsyncAPI.NET.Bindings/) - +[![Nuget](https://img.shields.io/nuget/vpre/AsyncAPI.NET.Bindings?label=AsyncAPI.Bindings-Preview&style=for-the-badge)](https://www.nuget.org/packages/AsyncAPI.NET.Bindings/) ## Example Usage Main classes to know: From 57c0c3365f4d215860d8b599fd9d18e6e5185d54 Mon Sep 17 00:00:00 2001 From: Adam Gloyne <44494964+Gadam8@users.noreply.github.com> Date: Tue, 20 Aug 2024 13:01:50 +0100 Subject: [PATCH 2/2] chore: make principal values public (#192) Co-authored-by: adam.gloyne --- src/LEGO.AsyncAPI.Bindings/Sns/PrincipalObject.cs | 8 ++++---- src/LEGO.AsyncAPI.Bindings/Sns/PrincipalStar.cs | 6 +++--- src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalObject.cs | 8 ++++---- src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalStar.cs | 6 +++--- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/LEGO.AsyncAPI.Bindings/Sns/PrincipalObject.cs b/src/LEGO.AsyncAPI.Bindings/Sns/PrincipalObject.cs index a25c198f..209be8bf 100644 --- a/src/LEGO.AsyncAPI.Bindings/Sns/PrincipalObject.cs +++ b/src/LEGO.AsyncAPI.Bindings/Sns/PrincipalObject.cs @@ -6,11 +6,11 @@ namespace LEGO.AsyncAPI.Bindings.Sns; public class PrincipalObject : Principal { - private KeyValuePair PrincipalValue; + public KeyValuePair Value { get; private set; } - public PrincipalObject(KeyValuePair principalValue) + public PrincipalObject(KeyValuePair value) { - this.PrincipalValue = principalValue; + this.Value = value; } public override void Serialize(IAsyncApiWriter writer) @@ -21,7 +21,7 @@ public override void Serialize(IAsyncApiWriter writer) } writer.WriteStartObject(); - writer.WriteRequiredObject(this.PrincipalValue.Key, this.PrincipalValue.Value, (w, t) => t.Value.Write(w)); + writer.WriteRequiredObject(this.Value.Key, this.Value.Value, (w, t) => t.Value.Write(w)); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/LEGO.AsyncAPI.Bindings/Sns/PrincipalStar.cs b/src/LEGO.AsyncAPI.Bindings/Sns/PrincipalStar.cs index 533e9fb7..c885d252 100644 --- a/src/LEGO.AsyncAPI.Bindings/Sns/PrincipalStar.cs +++ b/src/LEGO.AsyncAPI.Bindings/Sns/PrincipalStar.cs @@ -5,11 +5,11 @@ namespace LEGO.AsyncAPI.Bindings.Sns; public class PrincipalStar : Principal { - private string PrincipalValue; + public string Value { get; private set; } public PrincipalStar() { - this.PrincipalValue = "*"; + this.Value = "*"; } public override void Serialize(IAsyncApiWriter writer) @@ -19,6 +19,6 @@ public override void Serialize(IAsyncApiWriter writer) throw new ArgumentNullException(nameof(writer)); } - writer.WriteValue(this.PrincipalValue); + writer.WriteValue(this.Value); } } \ No newline at end of file diff --git a/src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalObject.cs b/src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalObject.cs index 2652060d..61e6e546 100644 --- a/src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalObject.cs +++ b/src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalObject.cs @@ -6,11 +6,11 @@ namespace LEGO.AsyncAPI.Bindings.Sqs; public class PrincipalObject : Principal { - private KeyValuePair PrincipalValue; + public KeyValuePair Value { get; private set; } - public PrincipalObject(KeyValuePair principalValue) + public PrincipalObject(KeyValuePair value) { - this.PrincipalValue = principalValue; + this.Value = value; } public override void Serialize(IAsyncApiWriter writer) @@ -21,7 +21,7 @@ public override void Serialize(IAsyncApiWriter writer) } writer.WriteStartObject(); - writer.WriteRequiredObject(this.PrincipalValue.Key, this.PrincipalValue.Value, (w, t) => t.Value.Write(w)); + writer.WriteRequiredObject(this.Value.Key, this.Value.Value, (w, t) => t.Value.Write(w)); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalStar.cs b/src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalStar.cs index 9e54bc5a..1705b966 100644 --- a/src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalStar.cs +++ b/src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalStar.cs @@ -5,11 +5,11 @@ namespace LEGO.AsyncAPI.Bindings.Sqs; public class PrincipalStar : Principal { - private string PrincipalValue; + public string Value { get; private set; } public PrincipalStar() { - this.PrincipalValue = "*"; + this.Value = "*"; } public override void Serialize(IAsyncApiWriter writer) @@ -19,6 +19,6 @@ public override void Serialize(IAsyncApiWriter writer) throw new ArgumentNullException(nameof(writer)); } - writer.WriteValue(this.PrincipalValue); + writer.WriteValue(this.Value); } } \ No newline at end of file