public static AfdRuleSet GetAfdRuleSet(this ArmClient client, ResourceIdentifier id) { return(client.GetClient(() => { AfdRuleSet.ValidateResourceId(id); return new AfdRuleSet(client, id); } )); }
public static AfdRuleSet GetAfdRuleSet(this ArmClient armClient, ResourceIdentifier id) { AfdRuleSet.ValidateResourceId(id); return(new AfdRuleSet(armClient, id)); }
public static AfdRuleSet GetAfdRuleSet(this ArmClient armClient, ResourceIdentifier id) { AfdRuleSet.ValidateResourceId(id); return(armClient.UseClientContext((uri, credential, clientOptions, pipeline) => new AfdRuleSet(clientOptions, credential, uri, pipeline, id))); }