VirtualMachineNameSpecification

Select the virtual machine carrying a given name - repository.Read(new VirtualMachineNameSpecification(name)) instead of ReadAll().Where(...).

Note
Case-insensitive: a hypervisor treat machine names that way, and MachineName does not normalise case. A name is NOT the key - the provider assign Key - so this is how a caller find a machine it only know by name, and GetByKey is how it find one it has read before.
public class VirtualMachineNameSpecification : LambdaSpecification<VirtualMachineSettings>

1. Constructors

1.1. VirtualMachineNameSpecification(MachineName)

Initializes a new instance of the VirtualMachineNameSpecification class.

public VirtualMachineNameSpecification(MachineName machineName)
Table 1. Parameters
Name Type Description

machineName

MachineName

Name the selected machine carry.

2. Properties

2.1. MachineName

Gets the name the selected machine carry.

public MachineName MachineName { get; }