Пример #1
0
        public async Task Go(IPlatformServices services)
        {
            int i = 0;

            var rvals = new List <object>();

            while (true)
            {
                if (i % 100 == 0)
                {
                    Console.WriteLine($"{i}: {ListFileHandles()} file descriptors");
                }

                using (var loader = services.CreateAssemblyLoadContext())
                {
                    rvals.Add(await MsRun(loader, i++));
                }
            }
        }