private async void InitializeAsync() { try { DockerVersion = await dockerCommandService.GetVersionAsync(); this.RaisePropertyChanged(nameof(DockerVersion)); } catch (Exception exception) { this.Log().Error(exception, "Could not retrieve docker version."); } await ContainerTabModel.RefreshContainersAsync(); }
public MainWindowModel() { dockerExecutableService = new DockerExecutableService(); dockerCommandService = new DockerCommandService(dockerExecutableService); dockerExecutableService.Executed += DockerExecutableService_Executed; dockerExecutableService.Output += DockerExecutableService_Out; dockerExecutableService.Error += DockerExecutableService_Error; ContainerTabModel = new ContainerTabModel(dockerCommandService); ImagesTabModel = new ImagesTabModel(dockerCommandService); DockerHubTabModel = new DockerHubTabModel(dockerCommandService); InitializeAsync(); }