public async Task <CoroutineContainer> QueryByName(string name) { CoroutineContainer container = new CoroutineContainer() { Name = name }; return(await Task.FromResult(container)); }
public async Task ApplyAction(CoroutineContainer container, Func <IEnumerator <Task> > action) { var service = GetService(container.Name); await service.ApplyAction(action); }
public async Task Run(CoroutineContainer container) { var service = GetService(container.Name); await service.Run(); }