Browse Source

Fix references to the ID0373 error

pull/1668/head
Kévin Chalet 3 years ago
parent
commit
926f0dc430
  1. 2
      src/OpenIddict.Client.SystemNetHttp/OpenIddictClientSystemNetHttpConfiguration.cs
  2. 2
      src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationConfiguration.cs
  3. 2
      src/OpenIddict.Validation.SystemNetHttp/OpenIddictValidationSystemNetHttpConfiguration.cs

2
src/OpenIddict.Client.SystemNetHttp/OpenIddictClientSystemNetHttpConfiguration.cs

@ -78,7 +78,7 @@ public sealed class OpenIddictClientSystemNetHttpConfiguration : IConfigureOptio
#endif
if (builder.PrimaryHandler is not HttpClientHandler handler)
{
throw new InvalidOperationException(SR.GetResourceString(SR.ID0373));
throw new InvalidOperationException(SR.FormatID0373(typeof(HttpClientHandler).FullName));
}
// OpenIddict uses IHttpClientFactory to manage the creation of the HTTP clients and

2
src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationConfiguration.cs

@ -87,7 +87,7 @@ public sealed partial class OpenIddictClientWebIntegrationConfiguration : IConfi
#endif
if (builder.PrimaryHandler is not HttpClientHandler handler)
{
throw new InvalidOperationException(SR.GetResourceString(SR.ID0373));
throw new InvalidOperationException(SR.FormatID0373(typeof(HttpClientHandler).FullName));
}
// If a client certificate was specified, update the HTTP handler to use it.

2
src/OpenIddict.Validation.SystemNetHttp/OpenIddictValidationSystemNetHttpConfiguration.cs

@ -78,7 +78,7 @@ public sealed class OpenIddictValidationSystemNetHttpConfiguration : IConfigureO
#endif
if (builder.PrimaryHandler is not HttpClientHandler handler)
{
throw new InvalidOperationException(SR.GetResourceString(SR.ID0373));
throw new InvalidOperationException(SR.FormatID0373(typeof(HttpClientHandler).FullName));
}
// OpenIddict uses IHttpClientFactory to manage the creation of the HTTP clients and

Loading…
Cancel
Save