2020-12-20 23:00:04 +02:00
|
|
|
|
using NDB.Application.DataContracts;
|
|
|
|
|
using NetworkResurrector.Application.Events;
|
2020-11-28 20:06:43 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace NetworkResurrector.Application.Commands
|
|
|
|
|
{
|
|
|
|
|
public class ShutdownMachine : Command<MachineShutdown>
|
|
|
|
|
{
|
|
|
|
|
public string IPAddressOrMachineName { get; set; }
|
|
|
|
|
|
|
|
|
|
public ShutdownMachine(string ipAddressOrMachineName) : base(new Metadata() { CorrelationId = Guid.NewGuid() })
|
|
|
|
|
{
|
|
|
|
|
IPAddressOrMachineName = ipAddressOrMachineName;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|