共用方式為


HttpRetryStrategyOptionsExtensions.DisableForUnsafeHttpMethods Method

Definition

Disables retry attempts for POST, PATCH, PUT, DELETE, and CONNECT HTTP methods.

public:
[System::Runtime::CompilerServices::Extension]
 static void DisableForUnsafeHttpMethods(Microsoft::Extensions::Http::Resilience::HttpRetryStrategyOptions ^ options);
public static void DisableForUnsafeHttpMethods (this Microsoft.Extensions.Http.Resilience.HttpRetryStrategyOptions options);
static member DisableForUnsafeHttpMethods : Microsoft.Extensions.Http.Resilience.HttpRetryStrategyOptions -> unit
<Extension()>
Public Sub DisableForUnsafeHttpMethods (options As HttpRetryStrategyOptions)

Parameters

options
HttpRetryStrategyOptions

The retry strategy options.

Applies to