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