network-resurrector/NetworkResurrector.Application/Commands/PingMachine.cs

17 lines
477 B
C#
Raw Normal View History

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