Пример #1
0
        public async Task ExecuteAsync()
        {
            var data = InitData();

            var executor  = new DependentExecutor();
            var container = await executor.ExecuteAsync(data);

            LogContainer(container);
        }
Пример #2
0
        public async Task ExecuteAsyncWithPreload()
        {
            var container = new ConcurrentDictionary <Type, IDependent>();
            // ... preloading container
            var data = InitData();

            var executor = new DependentExecutor();
            await executor.ExecuteAsync(data, container);

            LogContainer(container);
        }