-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change model of eventsrececiver endpoint to CloudEventEnvelope
- Loading branch information
Ronny Birkeli
committed
Nov 6, 2022
1 parent
2c8c917
commit f21908b
Showing
3 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
namespace Altinn.App.Core.Models | ||
{ | ||
/// <summary> | ||
/// Cloud event envelope to push | ||
/// </summary> | ||
public class CloudEventEnvelope | ||
{ | ||
/// <summary> | ||
/// The Event to push | ||
/// </summary> | ||
public CloudEvent? CloudEvent { get; set; } | ||
|
||
/// <summary> | ||
/// The time the event was pushed to queue | ||
/// </summary> | ||
public DateTime Pushed { get; set; } | ||
|
||
/// <summary> | ||
/// Target URI to push event | ||
/// </summary> | ||
public Uri? Endpoint { get; set; } | ||
|
||
/// <summary> | ||
/// The consumer of the events | ||
/// </summary> | ||
public string? Consumer { get; set; } | ||
|
||
/// <summary> | ||
/// The subscription id that matched. | ||
/// </summary> | ||
public int SubscriptionId { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters