Skip to content

Commit 25875cf

Browse files
committed
Merge remote-tracking branch 'origin/main' into vnext
2 parents a8bd3fc + 57c0c33 commit 25875cf

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Install the NuGet packages:
2323

2424
### AsyncAPI.Bindings
2525
[![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/)
26-
26+
[![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/)
2727
## Example Usage
2828

2929
Main classes to know:

src/LEGO.AsyncAPI.Bindings/Sns/PrincipalObject.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ namespace LEGO.AsyncAPI.Bindings.Sns;
66

77
public class PrincipalObject : Principal
88
{
9-
private KeyValuePair<string, StringOrStringList> PrincipalValue;
9+
public KeyValuePair<string, StringOrStringList> Value { get; private set; }
1010

11-
public PrincipalObject(KeyValuePair<string, StringOrStringList> principalValue)
11+
public PrincipalObject(KeyValuePair<string, StringOrStringList> value)
1212
{
13-
this.PrincipalValue = principalValue;
13+
this.Value = value;
1414
}
1515

1616
public override void Serialize(IAsyncApiWriter writer)
@@ -21,7 +21,7 @@ public override void Serialize(IAsyncApiWriter writer)
2121
}
2222

2323
writer.WriteStartObject();
24-
writer.WriteRequiredObject(this.PrincipalValue.Key, this.PrincipalValue.Value, (w, t) => t.Value.Write(w));
24+
writer.WriteRequiredObject(this.Value.Key, this.Value.Value, (w, t) => t.Value.Write(w));
2525
writer.WriteEndObject();
2626
}
2727
}

src/LEGO.AsyncAPI.Bindings/Sns/PrincipalStar.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ namespace LEGO.AsyncAPI.Bindings.Sns;
55

66
public class PrincipalStar : Principal
77
{
8-
private string PrincipalValue;
8+
public string Value { get; private set; }
99

1010
public PrincipalStar()
1111
{
12-
this.PrincipalValue = "*";
12+
this.Value = "*";
1313
}
1414

1515
public override void Serialize(IAsyncApiWriter writer)
@@ -19,6 +19,6 @@ public override void Serialize(IAsyncApiWriter writer)
1919
throw new ArgumentNullException(nameof(writer));
2020
}
2121

22-
writer.WriteValue(this.PrincipalValue);
22+
writer.WriteValue(this.Value);
2323
}
2424
}

src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalObject.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ namespace LEGO.AsyncAPI.Bindings.Sqs;
66

77
public class PrincipalObject : Principal
88
{
9-
private KeyValuePair<string, StringOrStringList> PrincipalValue;
9+
public KeyValuePair<string, StringOrStringList> Value { get; private set; }
1010

11-
public PrincipalObject(KeyValuePair<string, StringOrStringList> principalValue)
11+
public PrincipalObject(KeyValuePair<string, StringOrStringList> value)
1212
{
13-
this.PrincipalValue = principalValue;
13+
this.Value = value;
1414
}
1515

1616
public override void Serialize(IAsyncApiWriter writer)
@@ -21,7 +21,7 @@ public override void Serialize(IAsyncApiWriter writer)
2121
}
2222

2323
writer.WriteStartObject();
24-
writer.WriteRequiredObject(this.PrincipalValue.Key, this.PrincipalValue.Value, (w, t) => t.Value.Write(w));
24+
writer.WriteRequiredObject(this.Value.Key, this.Value.Value, (w, t) => t.Value.Write(w));
2525
writer.WriteEndObject();
2626
}
2727
}

src/LEGO.AsyncAPI.Bindings/Sqs/PrincipalStar.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ namespace LEGO.AsyncAPI.Bindings.Sqs;
55

66
public class PrincipalStar : Principal
77
{
8-
private string PrincipalValue;
8+
public string Value { get; private set; }
99

1010
public PrincipalStar()
1111
{
12-
this.PrincipalValue = "*";
12+
this.Value = "*";
1313
}
1414

1515
public override void Serialize(IAsyncApiWriter writer)
@@ -19,6 +19,6 @@ public override void Serialize(IAsyncApiWriter writer)
1919
throw new ArgumentNullException(nameof(writer));
2020
}
2121

22-
writer.WriteValue(this.PrincipalValue);
22+
writer.WriteValue(this.Value);
2323
}
2424
}

0 commit comments

Comments
 (0)