public async Task ExecuteAsync() { var data = InitData(); var executor = new DependentExecutor(); var container = await executor.ExecuteAsync(data); LogContainer(container); }
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); }