@@ -364,7 +364,7 @@ internal async ValueTask MakeSaveStateCallAsync<TValue>(
364
364
365
365
if ( stateOptions != null )
366
366
{
367
- stateRequest . Options = ToAutoGeneratedStateRequestOptions ( stateOptions ) ;
367
+ stateRequest . Options = ToAutoGeneratedStateOptions ( stateOptions ) ;
368
368
}
369
369
370
370
if ( value != null )
@@ -506,44 +506,6 @@ private async Task<TResponse> MakeGrpcCallHandleError<TResponse>(Func<CallOption
506
506
return await callFunc . Invoke ( callOptions ) ;
507
507
}
508
508
509
- private StateRequestOptions ToAutoGeneratedStateRequestOptions ( StateOptions stateOptions )
510
- {
511
- var stateRequestOptions = new Autogenerated . StateRequestOptions ( ) ;
512
-
513
- if ( stateOptions . Consistency != null )
514
- {
515
- stateRequestOptions . Consistency = GetStringForConsistencyMode ( stateOptions . Consistency . Value ) ;
516
- }
517
-
518
- if ( stateOptions . Concurrency != null )
519
- {
520
- stateRequestOptions . Concurrency = GetStringForConcurrencyMode ( stateOptions . Concurrency . Value ) ;
521
- }
522
-
523
- if ( stateOptions . RetryOptions != null )
524
- {
525
- var retryPolicy = new Autogenerated . StateRetryPolicy ( ) ;
526
- if ( stateOptions . RetryOptions . RetryMode != null )
527
- {
528
- retryPolicy . Pattern = GetStringForRetryMode ( stateOptions . RetryOptions . RetryMode . Value ) ;
529
- }
530
-
531
- if ( stateOptions . RetryOptions . RetryInterval != null )
532
- {
533
- retryPolicy . Interval = Duration . FromTimeSpan ( stateOptions . RetryOptions . RetryInterval . Value ) ;
534
- }
535
-
536
- if ( stateOptions . RetryOptions . RetryThreshold != null )
537
- {
538
- retryPolicy . Threshold = stateOptions . RetryOptions . RetryThreshold . Value ;
539
- }
540
-
541
- stateRequestOptions . RetryPolicy = retryPolicy ;
542
- }
543
-
544
- return stateRequestOptions ;
545
- }
546
-
547
509
private Autogenerated . StateOptions ToAutoGeneratedStateOptions ( StateOptions stateOptions )
548
510
{
549
511
var stateRequestOptions = new Autogenerated . StateOptions ( ) ;
0 commit comments