ShutdownMachineHandler
parent
d33d8cf71d
commit
4be57b3ae3
|
@ -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}");
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="$(MicrosoftExtensionsPackageVersion)" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="$(MicrosoftExtensionsPackageVersion)" />
|
||||
<PackageReference Include="NDB.Application.DataContracts" Version="$(NDBApplicationPackageVersion)" />
|
||||
<PackageReference Include="NetworkResurrector.Server.Wrapper" Version="1.0.3.1" />
|
||||
<PackageReference Include="NetworkResurrector.Server.Wrapper" Version="1.0.3.2" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
Loading…
Reference in New Issue