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