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

17 lines
491 B
C#

using NDB.Application.DataContracts;
using NetworkResurrector.Server.Application.Events;
using System;
namespace NetworkResurrector.Server.Application.Commands
{
public class PingMachine : Command<MachinePinged>
{
public string IPAddressOrMachineName { get; set; }
public PingMachine(string ipAddressOrMachineName) : base(new Metadata() { CorrelationId = Guid.NewGuid() })
{
IPAddressOrMachineName = ipAddressOrMachineName;
}
}
}