Skip to content

Commit

Permalink
Fix obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell committed May 31, 2023
1 parent 22375f6 commit f9221db
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ public static AuthorizationPolicyBuilder RequireAzureIPNetworks(this Authorizati
string? service = null,
string? region = null)
{
var networks = AzureIPNetworks.AzureIPsHelper.GetNetworksAsync(cloud, service, region)
.AsTask()
.GetAwaiter()
.GetResult()
.ToArray();
var networks = AzureIPNetworks.AzureIPsProvider.Local.GetNetworksAsync(cloud, service, region)
.AsTask()
.GetAwaiter()
.GetResult()
.ToArray();

// create the requirement and add it to the builder
return builder.RequireApprovedNetworks(networks);
Expand Down

0 comments on commit f9221db

Please sign in to comment.