Esempio n. 1
0
        public async Task <int> GenerateQueriesAsync()
        {
            var allTickets = new Tickets().getAllTickets();

            var allBettors = new Tickets().getAllBettorsbyTickets(allTickets);
            await Task.Delay(5000);

            bool result1 = new RealFiles(@"C:\Users\Actek\Documents\test").createNewFile(allBettors.ToArray(), "\\bettorsLeidos.txt");

            var allDetaild = new Tickets().getDetails();

            var files = new RealFiles(@"C:\Windows\System32").getAllrealFiles();

            bool result2 = new RealFiles(@"C:\Users\Actek\Documents\test").createNewFile(files, "\\archivosLeidos.txt");


            if (allBettors.Count() > 0)
            {
                return(0);
            }
            else
            {
                return(1);
            }
        }
Esempio n. 2
0
        private async Task <int> processingAsync(string[] array)
        {
            await Task.Delay(15000);

            bool result2 = new RealFiles(@"C:\Users\Actek\Documents\test").createNewFile(array, "\\WsArray.txt");

            return(0);
        }