diff --git a/src/api/NetworkResurrector.Api.Application/CommandHandlers/ShutdownMachineHandler.cs b/src/api/NetworkResurrector.Api.Application/CommandHandlers/ShutdownMachineHandler.cs index d66cc14..f7c0c80 100644 --- a/src/api/NetworkResurrector.Api.Application/CommandHandlers/ShutdownMachineHandler.cs +++ b/src/api/NetworkResurrector.Api.Application/CommandHandlers/ShutdownMachineHandler.cs @@ -28,7 +28,7 @@ namespace NetworkResurrector.Api.Application.CommandHandlers var machine = await _repository.GetMachine(command.MachineId); //log activity - var pingResult = await _resurrectorService.sh(machine.IPv4Address ?? machine.MachineName); + var pingResult = await _resurrectorService.Shutdown(machine.IPv4Address ?? machine.MachineName); var result = new MachineShutdown(pingResult.Success, pingResult.Status); _logger.LogDebug($"Machine {command.MachineId} shutdown finished. Success: {result.Success}; Status: {result.Status}"); diff --git a/src/api/NetworkResurrector.Api.Application/NetworkResurrector.Api.Application.csproj b/src/api/NetworkResurrector.Api.Application/NetworkResurrector.Api.Application.csproj index c902918..cf4214d 100644 --- a/src/api/NetworkResurrector.Api.Application/NetworkResurrector.Api.Application.csproj +++ b/src/api/NetworkResurrector.Api.Application/NetworkResurrector.Api.Application.csproj @@ -11,7 +11,7 @@ - +