static void Main(string[] args) { var server = new Server("http://localhost", "8080"); var machine = Retriever.GetMachine(); var id = server.Register(machine); while (true) { var checkin = Retriever.GetCheckIn(2); server.CheckIn(checkin); Thread.Sleep(2000); } }
private void Report() { server.CheckIn(Retriever.GetCheckIn(Id.Value)); }