コード例 #1
0
        public EnvironmentState GetStateOf(EnvironmentData environmentData)
        {
            var state = new EnvironmentState();
            var databaseState = _databaseService.GetDatabaseState(environmentData);
            state.DatabaseStatus = databaseState.Status;
            state.DatabaseVersion = databaseState.Version;

            var applicationState = _applicationService.GetApplicationState(environmentData);
            state.ApplicationStatus = applicationState.Status;
            state.ApplicationVersion = applicationState.Version;

            return state;
        }
コード例 #2
0
 private void UpdateStatus(object obj)
 {
     _state = _environmentService.GetStateOf(EnvironmentData);
     OnPropertiesChanged("ApplicationVersion", "ApplicationStatus", "DatabaseVersion", "DatabaseStatus");
 }