@@ -69,9 +69,9 @@ public static async Task Run()
6969 }
7070 catch ( RedisConnectionException exception )
7171 {
72- Console . Error . WriteLine ( $ "Could not connect to Redis at '{ redisConnectionString } '.") ;
73- Console . Error . WriteLine ( exception . Message ) ;
74- Console . Error . WriteLine ( "Start Redis locally or set MODULARITYKIT_REDIS to a reachable endpoint." ) ;
72+ await Console . Error . WriteLineAsync ( $ "Could not connect to Redis at '{ redisConnectionString } '.") ;
73+ await Console . Error . WriteLineAsync ( exception . Message ) ;
74+ await Console . Error . WriteLineAsync ( "Start Redis locally or set MODULARITYKIT_REDIS to a reachable endpoint." ) ;
7575 }
7676 }
7777
@@ -137,8 +137,13 @@ private static MutationRequest CreatePendingApprovalRequest(
137137 with
138138 {
139139 RequestId = requestId ,
140- CreatedAt = createdAt ,
141- UpdatedAt = createdAt
140+ Lifecycle = new MutationRequestLifecycleDetails
141+ {
142+ Status = MutationRequestStatus . Pending ,
143+ PendingReason = PendingMutationReason . Approval ,
144+ CreatedAt = createdAt ,
145+ UpdatedAt = createdAt
146+ }
142147 } ;
143148
144149 private static MutationRequest CreateExecutedRequest (
@@ -160,10 +165,16 @@ private static MutationRequest CreateExecutedRequest(
160165 with
161166 {
162167 RequestId = requestId ,
163- Status = MutationRequestStatus . Executed ,
164- CreatedAt = executedAt . AddMinutes ( - 15 ) ,
165- UpdatedAt = executedAt ,
166- ExecutedAt = executedAt ,
168+ Lifecycle = new MutationRequestLifecycleDetails
169+ {
170+ Status = MutationRequestStatus . Executed ,
171+ CreatedAt = executedAt . AddMinutes ( - 15 ) ,
172+ UpdatedAt = executedAt
173+ } ,
174+ Versioning = new MutationRequestVersioningDetails
175+ {
176+ ExecutedAt = executedAt
177+ } ,
167178 SideEffects =
168179 [
169180 SideEffect . Critical (
@@ -200,7 +211,7 @@ private static MutationRequest CreateExecutedRequest(
200211 ]
201212 } ;
202213
203- [ SideEffectDataContract ( "examples.redis.execution-side-effect" , 1 ) ]
214+ [ SideEffectDataContract ( "examples.redis.execution-side-effect" ) ]
204215 private sealed record RedisExecutionSideEffectData
205216 {
206217 public required string Ticket { get ; init ; }
0 commit comments