public ActionResult UnitRunReport(string selectedUnit)
    {
        var unit = Convert.ToInt32(selectedUnit);

        Model = new ReportsViewModel
        {
            UnitRuns = RunClient.GetRunListForUnit(unit)
        };
        return(this.Json(Model, JsonRequestBehavior.AllowGet));
    }
예제 #2
0
        public static void Main()
        {
            var server = new RunServer();

            Task.Factory.StartNew(server.Run);

            var client = new RunClient();

            Task.Factory.StartNew(client.Run);

            WriteLine("Press any [Enter] to close the host.");
            ReadLine();
        }