static void Main() { var fleetService = new FleetServiceClient(); var hostSummaryService = new HostSummaryServiceClient(); Console.WriteLine("Loading the fellt state......"); var fleetRequest = new FleetRequest(Config.FleetStateFilePath); var fleetStatusResult = fleetService.LoadFleetState(fleetRequest); if (!fleetStatusResult.Notifications.HasErrors) { Console.WriteLine("\r\r"); Console.WriteLine("Fleet state results."); DisplayFleetStatus(fleetStatusResult); Console.WriteLine("The follow is a smmary of the fleet status"); Console.WriteLine("\r\r"); var summaryRequest = new HostSummaryRequest(Config.HostStatisticsFilePath) { Hosts = fleetStatusResult.Hosts }; var result = hostSummaryService.SummarizeHostStatistics(summaryRequest); DisplaySummary(result); } else { Console.Write("The following errors occured"); foreach (var error in fleetStatusResult.Notifications) { Console.WriteLine(error); } } Console.ReadLine(); }