public async Task StartAsync() { while (!_shutdown.IsCancellationRequested) { var containers = await DockerClient.ContainerListAsync(); await ProcessContainersAsync(containers); await Task.Delay(5000, _shutdown); } }
public async Task StartAsync() { while (!_shutdown.IsCancellationRequested) { var containers = await DockerClient.ContainerListAsync(); await ProcessContainersAsync(containers); await Task.Delay(5000, _shutdown); } }