release orchestrator v1 draft and build fixes

This commit is contained in:
master
2026-01-12 12:24:17 +02:00
parent f3de858c59
commit 9873f80830
1598 changed files with 240385 additions and 5944 deletions

View File

@@ -122,14 +122,16 @@ public sealed record ExceptionEvent
string exceptionId,
string actorId,
string? description = null,
string? clientInfo = null) => new()
string? clientInfo = null,
Guid? eventId = null,
DateTimeOffset? occurredAt = null) => new()
{
EventId = Guid.NewGuid(),
EventId = eventId ?? Guid.NewGuid(),
ExceptionId = exceptionId,
SequenceNumber = 1,
EventType = ExceptionEventType.Created,
ActorId = actorId,
OccurredAt = DateTimeOffset.UtcNow,
OccurredAt = occurredAt ?? DateTimeOffset.UtcNow,
PreviousStatus = null,
NewStatus = ExceptionStatus.Proposed,
NewVersion = 1,
@@ -146,14 +148,16 @@ public sealed record ExceptionEvent
string actorId,
int newVersion,
string? description = null,
string? clientInfo = null) => new()
string? clientInfo = null,
Guid? eventId = null,
DateTimeOffset? occurredAt = null) => new()
{
EventId = Guid.NewGuid(),
EventId = eventId ?? Guid.NewGuid(),
ExceptionId = exceptionId,
SequenceNumber = sequenceNumber,
EventType = ExceptionEventType.Approved,
ActorId = actorId,
OccurredAt = DateTimeOffset.UtcNow,
OccurredAt = occurredAt ?? DateTimeOffset.UtcNow,
PreviousStatus = ExceptionStatus.Proposed,
NewStatus = ExceptionStatus.Approved,
NewVersion = newVersion,
@@ -171,14 +175,16 @@ public sealed record ExceptionEvent
int newVersion,
ExceptionStatus previousStatus,
string? description = null,
string? clientInfo = null) => new()
string? clientInfo = null,
Guid? eventId = null,
DateTimeOffset? occurredAt = null) => new()
{
EventId = Guid.NewGuid(),
EventId = eventId ?? Guid.NewGuid(),
ExceptionId = exceptionId,
SequenceNumber = sequenceNumber,
EventType = ExceptionEventType.Activated,
ActorId = actorId,
OccurredAt = DateTimeOffset.UtcNow,
OccurredAt = occurredAt ?? DateTimeOffset.UtcNow,
PreviousStatus = previousStatus,
NewStatus = ExceptionStatus.Active,
NewVersion = newVersion,
@@ -196,14 +202,16 @@ public sealed record ExceptionEvent
int newVersion,
ExceptionStatus previousStatus,
string reason,
string? clientInfo = null) => new()
string? clientInfo = null,
Guid? eventId = null,
DateTimeOffset? occurredAt = null) => new()
{
EventId = Guid.NewGuid(),
EventId = eventId ?? Guid.NewGuid(),
ExceptionId = exceptionId,
SequenceNumber = sequenceNumber,
EventType = ExceptionEventType.Revoked,
ActorId = actorId,
OccurredAt = DateTimeOffset.UtcNow,
OccurredAt = occurredAt ?? DateTimeOffset.UtcNow,
PreviousStatus = previousStatus,
NewStatus = ExceptionStatus.Revoked,
NewVersion = newVersion,
@@ -218,14 +226,16 @@ public sealed record ExceptionEvent
public static ExceptionEvent ForExpired(
string exceptionId,
int sequenceNumber,
int newVersion) => new()
int newVersion,
Guid? eventId = null,
DateTimeOffset? occurredAt = null) => new()
{
EventId = Guid.NewGuid(),
EventId = eventId ?? Guid.NewGuid(),
ExceptionId = exceptionId,
SequenceNumber = sequenceNumber,
EventType = ExceptionEventType.Expired,
ActorId = "system",
OccurredAt = DateTimeOffset.UtcNow,
OccurredAt = occurredAt ?? DateTimeOffset.UtcNow,
PreviousStatus = ExceptionStatus.Active,
NewStatus = ExceptionStatus.Expired,
NewVersion = newVersion,
@@ -243,14 +253,16 @@ public sealed record ExceptionEvent
DateTimeOffset previousExpiry,
DateTimeOffset newExpiry,
string? reason = null,
string? clientInfo = null) => new()
string? clientInfo = null,
Guid? eventId = null,
DateTimeOffset? occurredAt = null) => new()
{
EventId = Guid.NewGuid(),
EventId = eventId ?? Guid.NewGuid(),
ExceptionId = exceptionId,
SequenceNumber = sequenceNumber,
EventType = ExceptionEventType.Extended,
ActorId = actorId,
OccurredAt = DateTimeOffset.UtcNow,
OccurredAt = occurredAt ?? DateTimeOffset.UtcNow,
PreviousStatus = ExceptionStatus.Active,
NewStatus = ExceptionStatus.Active,
NewVersion = newVersion,