Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ReubenBond committed Mar 25, 2024
1 parent 35ca474 commit 619ec31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ namespace Microsoft.Extensions.ServiceDiscovery.Configuration;
internal sealed class ConfigurationServiceEndPointResolverProvider(
IConfiguration configuration,
IOptions<ConfigurationServiceEndPointResolverOptions> options,
IOptions<ServiceDiscoveryOptions> serviceDiscoveryOptions,
ILogger<ConfigurationServiceEndPointResolver> logger) : IServiceEndPointProviderFactory
{
/// <inheritdoc/>
public bool TryCreateProvider(ServiceEndPointQuery query, [NotNullWhen(true)] out IServiceEndPointProvider? resolver)
{
resolver = new ConfigurationServiceEndPointResolver(query, configuration, logger, options);
resolver = new ConfigurationServiceEndPointResolver(query, configuration, logger, options, serviceDiscoveryOptions);
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ internal static Uri GetUriWithEndPoint(Uri uri, ServiceEndPoint serviceEndPoint,
if (uri.Scheme.IndexOf('+') > 0)
{
var scheme = uri.Scheme.Split('+')[0];
if (options.AllowedSchemes.Equals(ServiceEndPointQuery.AllowAllSchemes) || options.AllowedSchemes.Contains(scheme, StringComparer.OrdinalIgnoreCase))
if (options.AllowedSchemes.Equals(ServiceDiscoveryOptions.AllowAllSchemes) || options.AllowedSchemes.Contains(scheme, StringComparer.OrdinalIgnoreCase))
{
result.Scheme = scheme;
}
Expand Down

0 comments on commit 619ec31

Please sign in to comment.