network-resurrector/NetworkResurrector.Server.A.../Commands/ShutdownMachine.cs

17 lines
501 B
C#
Raw Normal View History

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