void App_Startup(object sender, StartupEventArgs e) { var viewModel = new ProcessView(); var statusChannel = new NonBlockingChannel(); var uiTask = new ProcessViewUpdateTask(viewModel, statusChannel, Dispatcher); var viewer = new Window1(); viewer.DataContext = viewModel; viewer.Show(); var orchestration = new StarbucksOrchestration(); orchestration.Process(statusChannel, uiTask); }
static void Main(string[] args) { var orchestration = new StarbucksOrchestration(); //orchestration.Process(TODO); }