public async System.Threading.Tasks.Task <SatDao> Process(string taskName, int seconds) { Console.WriteLine("In task:" + taskName); var item = new SatDao(); await System.Threading.Tasks.Task.Delay(seconds * 1000); Console.WriteLine("Exiting task:" + taskName); return(item); }
public SatDao SplitLine(string data) { char[] delimiters = new char[] { ',' }; string[] ss = data.ToString().Split(delimiters, 6); var satData = new SatDao { Division = ss[0], SchoolName = ss[1], NumofTestTakers = ss[2], CriticalReadingAvgScore = ss[3], MathAvgScore = ss[4], WritingAvgScore = ss[5] }; return(satData); }