Exemple #1
0
 public void Execute(RemoveClientMachineRegistration command)
 {
     Guard.ForNull(command);
     NetworkAggregate network = CreateAggregate();
     network.RemoveClientMachine(ClientMachineFromCommand(command));
     ExtractEventsToRepository(network.GetUncommittedChanges());
 }
Exemple #2
0
 private ClientMachine ClientMachineFromCommand(RemoveClientMachineRegistration command) => new ClientMachine(command.ClientId);