Skip to content

Commit b5bedd0

Browse files
committed
update sample
1 parent 9168dc9 commit b5bedd0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

samples/LargePayloadConsoleApp/Program.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@
2828
{
2929
// Keep threshold small to force externalization for demo purposes
3030
opts.ExternalizeThresholdBytes = 1024; // 1KB
31-
// Default to local Azurite/emulator. Override via environment or appsettings if desired.
32-
opts.ConnectionString = Environment.GetEnvironmentVariable("DURABLETASK_STORAGE") ?? "UseDevelopmentStorage=true";
33-
opts.ContainerName = Environment.GetEnvironmentVariable("DURABLETASK_PAYLOAD_CONTAINER") ?? "durabletask-payloads";
31+
opts.ConnectionString = builder.Configuration.GetValue<string>("DURABLETASK_STORAGE") ?? "UseDevelopmentStorage=true";
32+
opts.ContainerName = builder.Configuration.GetValue<string>("DURABLETASK_PAYLOAD_CONTAINER");
3433
});
3534
});
3635

@@ -67,8 +66,8 @@
6766
b.UseExternalizedPayloads(opts =>
6867
{
6968
opts.ExternalizeThresholdBytes = 1024; // mirror client
70-
opts.ConnectionString = Environment.GetEnvironmentVariable("DURABLETASK_STORAGE") ?? "UseDevelopmentStorage=true";
71-
opts.ContainerName = Environment.GetEnvironmentVariable("DURABLETASK_PAYLOAD_CONTAINER") ?? "durabletask-payloads";
69+
opts.ConnectionString = builder.Configuration.GetValue<string>("DURABLETASK_STORAGE") ?? "UseDevelopmentStorage=true";
70+
opts.ContainerName = builder.Configuration.GetValue<string>("DURABLETASK_PAYLOAD_CONTAINER");
7271
});
7372
});
7473

0 commit comments

Comments
 (0)