예제 #1
0
        private Task PrepareSides()
        {
            var sides = Sides.ToArray();
            var leds  = LedProvider.SupportedConfiguration(_container).ToArray();

            Sides = leds.Zip(sides, (file, side) =>
            {
                side.Led = file;
                return(side);
            }).ToArray();

            return(Task.WhenAll(Sides.Select(s => s.Load())));
        }