Skip to content

Commit f6afdee

Browse files
authored
Fix cloud events issue (#24585)
1 parent af2eb8a commit f6afdee

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

sdk/eventgrid/Microsoft.Azure.Messaging.EventGrid.CloudNativeCloudEvents/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ EventGridPublisherClient client = new EventGridPublisherClient(
5656
var cloudEvent =
5757
new CloudEvent
5858
{
59+
Id = Guid.NewGuid().ToString(),
5960
Type = "record",
6061
Source = new Uri("http://www.contoso.com"),
6162
Data = "data"

sdk/eventgrid/Microsoft.Azure.Messaging.EventGrid.CloudNativeCloudEvents/tests/Samples/CloudNativeSamples.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public async Task SendCloudNativeEvents()
2525
var cloudEvent =
2626
new CloudEvent
2727
{
28+
Id = Guid.NewGuid().ToString(),
2829
Type = "record",
2930
Source = new Uri("http://www.contoso.com"),
3031
Data = "data"

0 commit comments

Comments
 (0)