public void UpdateInstalledState(ShellFeatureState featureState, ShellFeatureState.State value) { if (Logger.IsEnabled(LogLevel.Debug)) { Logger.LogDebug("Feature {0} InstallState changed from {1} to {2}", featureState.Name, featureState.InstallState, value); } }
public Task UpdateInstalledStateAsync(ShellFeatureState featureState, ShellFeatureState.State value) { if (Logger.IsEnabled(LogLevel.Debug)) { Logger.LogDebug("Feature {0} InstallState changed from {1} to {2}", featureState.Id, featureState.InstallState, value); } return(Task.CompletedTask); }
public Task UpdateInstalledStateAsync(ShellFeatureState featureState, ShellFeatureState.State value) { if (_logger.IsEnabled(LogLevel.Debug)) { _logger.LogDebug("Feature '{FeatureName}' InstallState changed from '{FeatureState}' to '{FeatureState}'", featureState.Id, featureState.InstallState, value); } return(Task.CompletedTask); }
public Task UpdateInstalledStateAsync(ShellFeatureState featureState, ShellFeatureState.State value) { if (this._logger.IsEnabled(1)) { stackVariable6 = this._logger; stackVariable9 = new object[3]; stackVariable9[0] = featureState.get_Id(); stackVariable9[1] = featureState.get_InstallState(); stackVariable9[2] = value; LoggerExtensions.LogDebug(stackVariable6, "Feature '{FeatureName}' InstallState changed from '{FeatureState}' to '{FeatureState}'", stackVariable9); } return(Task.get_CompletedTask()); }
public void UpdateInstalledState(ShellFeatureState featureState, ShellFeatureState.State value) { Logger.Debug("Feature {0} InstallState changed from {1} to {2}", featureState.Name, featureState.InstallState, value); var featureStateRecord = FeatureRecord(featureState.Name); if (featureStateRecord.InstallState != featureState.InstallState) { Logger.Warning("Feature {0} prior InstallState was {1} when {2} was expected", featureState.Name, featureStateRecord.InstallState, featureState.InstallState); } featureStateRecord.InstallState = value; featureState.InstallState = value; }
public async Task UpdateInstalledStateAsync(ShellFeatureState featureState, ShellFeatureState.State value) { if (Logger.IsEnabled(LogLevel.Debug)) { Logger.LogDebug("Feature {0} InstallState changed from {1} to {2}", featureState.Id, featureState.InstallState, value); } var previousFeatureState = await GetOrCreateFeatureStateAsync(featureState.Id); if (previousFeatureState.InstallState != featureState.InstallState) { if (Logger.IsEnabled(LogLevel.Warning)) { Logger.LogWarning("Feature {0} prior InstallState was {1} when {2} was expected", featureState.Id, previousFeatureState.InstallState, featureState.InstallState); } } previousFeatureState.InstallState = value; featureState.InstallState = value; UpdateShellState(); }
public async Task UpdateInstalledStateAsync(ShellFeatureState featureState, ShellFeatureState.State value) { if (_logger.IsEnabled(LogLevel.Debug)) { _logger.LogDebug("Feature '{FeatureName}' InstallState changed from '{FeatureState}' to '{FeatureState}'", featureState.Id, featureState.InstallState, value); } var previousFeatureState = await GetOrCreateFeatureStateAsync(featureState.Id); if (previousFeatureState.InstallState != featureState.InstallState) { if (_logger.IsEnabled(LogLevel.Warning)) { _logger.LogWarning("Feature '{FeatureName}' prior InstallState was '{FeatureState}' when '{FeatureState}' was expected", featureState.Id, previousFeatureState.InstallState, featureState.InstallState); } } previousFeatureState.InstallState = value; featureState.InstallState = value; UpdateShellState(); }
public void UpdateEnabledState(ShellFeatureState featureState, ShellFeatureState.State value) { if (Logger.IsEnabled(LogLevel.Debug)) { Logger.LogDebug("Feature {0} EnableState changed from {1} to {2}", featureState.Name, featureState.EnableState, value); } var previousFeatureState = GetOrCreateFeatureState(featureState.Name); if (previousFeatureState.EnableState != featureState.EnableState) { if (Logger.IsEnabled(LogLevel.Warning)) { Logger.LogWarning("Feature {0} prior EnableState was {1} when {2} was expected", featureState.Name, previousFeatureState.EnableState, featureState.EnableState); } } previousFeatureState.EnableState = value; featureState.EnableState = value; UpdateShellState(); }
public async Task UpdateEnabledStateAsync(ShellFeatureState featureState, ShellFeatureState.State value) { if (Logger.IsEnabled(LogLevel.Debug)) { Logger.LogDebug("Feature {0} EnableState changed from {1} to {2}", featureState.Id, featureState.EnableState, value); } var previousFeatureState = await Store.GetOrCreateFeatureStateAsync(featureState.Id, CancellationToken); if (previousFeatureState.EnableState != featureState.EnableState) { if (Logger.IsEnabled(LogLevel.Warning)) { Logger.LogWarning("Feature {0} prior EnableState was {1} when {2} was expected", featureState.Id, previousFeatureState.EnableState, featureState.EnableState); } } previousFeatureState.EnableState = value; featureState.EnableState = value; await Store.UpdateFeatureStateAsync(previousFeatureState, CancellationToken); }
public void UpdateInstalledState(ShellFeatureState featureState, ShellFeatureState.State value) { GetOrAddFeatureState(featureState.Name).InstallState = value; featureState.InstallState = value; }
public void UpdateEnabledState(ShellFeatureState featureState, ShellFeatureState.State value) { GetOrAddFeatureState(featureState.Name).EnableState = value; featureState.EnableState = value; }