public ContainerRunner(DockerClient dockerClient, ContainerLogsView containerLogsView) { (DockerClient, ContainerLogsView) = (dockerClient, containerLogsView); MonitorProgress = new Progress <Message>(OnMonitorProgress); MonitorTask = DockerClient.System.MonitorEventsAsync(new ContainerEventsParameters(), MonitorProgress, MonitorCancellation.Token); }
public LogView(ContainerLogsView clv) { ContainerLogsView = clv; KeyPress += (e) => OnKeyDown2(e); ContainerLogsView.LineArrived += (sender, e) => { // we don't know which thread this is on, so lets go into UI via mainloop Application.MainLoop.Invoke(() => ContainerLogsView_LineArrived(sender, e)); }; }