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

17 lines
491 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 17:03:50 +02:00
using System;
2021-04-06 02:17:11 +03:00
namespace NetworkResurrector.Server.Application.Commands
2020-11-28 17:03:50 +02:00
{
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
}
}
}