Skip to content

Commit 23ebed1

Browse files
committed
sample good
1 parent 05c1287 commit 23ebed1

File tree

5 files changed

+39
-177
lines changed

5 files changed

+39
-177
lines changed

samples/LargePayloadConsoleApp/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Microsoft.DurableTask.Entities;
88
using Microsoft.DurableTask.Worker;
99
using Microsoft.DurableTask.Worker.AzureManaged;
10+
using Microsoft.DurableTask;
1011
using Microsoft.Extensions.Configuration;
1112
using Microsoft.Extensions.DependencyInjection;
1213
using Microsoft.Extensions.Hosting;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"profiles": {
3+
"LargePayloadConsoleApp": {
4+
"commandName": "Project",
5+
"environmentVariables": {
6+
"DURABLE_TASK_SCHEDULER_CONNECTION_STRING": "",
7+
"DURABLETASK_STORAGE": "",
8+
"DURABLETASK_PAYLOAD_CONTAINER": ""
9+
}
10+
}
11+
}
12+
}

samples/LargePayloadConsoleApp/run.ps1

Lines changed: 0 additions & 81 deletions
This file was deleted.

src/Extensions/AzureBlobPayloads/Interceptors/AzureBlobPayloadsInterceptor.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,32 @@ async Task ResolveResponsePayloadsAsync<TResponse>(TResponse response, Cancellat
280280
}
281281
}
282282

283+
// Resolve entity V1 batch request (OperationRequest inputs and entity state)
284+
if (wi.EntityRequest is { } er1)
285+
{
286+
await this.MaybeResolveAsync(v => er1.EntityState = v, er1.EntityState, cancellation);
287+
if (er1.Operations != null)
288+
{
289+
foreach (P.OperationRequest op in er1.Operations)
290+
{
291+
await this.MaybeResolveAsync(v => op.Input = v, op.Input, cancellation);
292+
}
293+
}
294+
}
295+
296+
// Resolve entity V2 request (history-based operation requests and entity state)
297+
if (wi.EntityRequestV2 is { } er2)
298+
{
299+
await this.MaybeResolveAsync(v => er2.EntityState = v, er2.EntityState, cancellation);
300+
if (er2.OperationRequests != null)
301+
{
302+
foreach (P.HistoryEvent opEvt in er2.OperationRequests)
303+
{
304+
await this.ResolveEventPayloadsAsync(opEvt, cancellation);
305+
}
306+
}
307+
}
308+
283309
break;
284310
}
285311
}

src/Extensions/AzureBlobPayloads/Interceptors/LargePayloadDataConverter.cs

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)