File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
samples/LargePayloadConsoleApp Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments