Skip to content

Commit

Permalink
docs: Update one sample to show a relative URI for Source
Browse files Browse the repository at this point in the history
(We want to make it clear that Source can be relative or absolute.)

Signed-off-by: Jon Skeet <jonskeet@google.com>
  • Loading branch information
jskeet committed Aug 6, 2021
1 parent 8e914a3 commit 42b723d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ var cloudEvent = new CloudEvent
{
Id = "result-1",
Type = "game.played.v1",
Source = new Uri("https://cloudevents.io/"),
Source = new Uri("/game", UriKind.Relative),
Time = DateTimeOffset.UtcNow,
DataContentType = "application/json",
Data = result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private static HttpRequestMessage SerializeGameResult()
{
Id = "result-1",
Type = "game.played.v1",
Source = new Uri("https://cloudevents.io/"),
Source = new Uri("/game", UriKind.Relative),
Time = DateTimeOffset.UtcNow,
DataContentType = "application/json",
Data = result
Expand Down

0 comments on commit 42b723d

Please sign in to comment.