public async Task ApplyConfiguration(JToken configJson) { configData.LoadValuesFromJson(configJson); Exception tokenFetchEx = null; try { await GetAuthToken(true); } catch (Exception ex) { tokenFetchEx = new ExceptionWithConfigData(ex.Message, configData); } await ConfigureIfOK(string.Empty, tokenFetchEx == null, () => { throw tokenFetchEx; }); }
public override async Task <IndexerConfigurationStatus> ApplyConfiguration(JToken configJson) { configData.LoadValuesFromJson(configJson); Exception tokenFetchEx = null; try { await GetAuthToken(true); } catch (Exception ex) { tokenFetchEx = new ExceptionWithConfigData(ex.Message, configData); } await ConfigureIfOK(string.Empty, tokenFetchEx == null, () => { throw tokenFetchEx; }); return(IndexerConfigurationStatus.RequiresTesting); }
public async Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson) { configData.LoadValuesFromJson(configJson); Exception tokenFetchEx = null; try { await GetAuthToken(true); } catch (Exception ex) { tokenFetchEx = new ExceptionWithConfigData(ex.Message, configData); } await ConfigureIfOK(string.Empty, tokenFetchEx == null, () => { throw tokenFetchEx; }); return IndexerConfigurationStatus.RequiresTesting; }