2020-11-28 17:03:50 +02:00
|
|
|
|
using NetworkResurrector.Application.Events;
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|