Skip to content

Commit 42b723d

Browse files
committed
docs: Update one sample to show a relative URI for Source
(We want to make it clear that Source can be relative or absolute.) Signed-off-by: Jon Skeet <[email protected]>
1 parent 8e914a3 commit 42b723d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ var cloudEvent = new CloudEvent
321321
{
322322
Id = "result-1",
323323
Type = "game.played.v1",
324-
Source = new Uri("https://cloudevents.io/"),
324+
Source = new Uri("/game", UriKind.Relative),
325325
Time = DateTimeOffset.UtcNow,
326326
DataContentType = "application/json",
327327
Data = result

test/CloudNative.CloudEvents.UnitTests/DocumentationSamples.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private static HttpRequestMessage SerializeGameResult()
117117
{
118118
Id = "result-1",
119119
Type = "game.played.v1",
120-
Source = new Uri("https://cloudevents.io/"),
120+
Source = new Uri("/game", UriKind.Relative),
121121
Time = DateTimeOffset.UtcNow,
122122
DataContentType = "application/json",
123123
Data = result

0 commit comments

Comments
 (0)