public async Task <IActionResult> Get() { var appData = await _applicationDataService.GetApplicationData(Request.HttpContext); return(Ok(new { success = true, data = appData })); }
private void SaveNewConnectionString(string connectionString) { var applicationData = _applicationDataService.GetApplicationData(); if (applicationData.History.Contains(connectionString)) { return; } var newApplicationData = new ApplicationData(applicationData.History.Append(connectionString)); _applicationDataService.UpdateApplicationData(newApplicationData); }
public IAutoCompleteStringWithPasswordsCollection GetAutoComplete() { var collection = new AutoCompleteStringWithPasswordsCollection(); var connectionStrings = _applicationDataService.GetApplicationData().History; foreach (var connectionString in connectionStrings) { var masked = _passwordHelper.Mask(connectionString); while (!collection.TryInsert(masked, connectionString)) { masked = _passwordHelper.AddGarble(masked); } } return(collection); }
public async Task <IActionResult> Get() { var appData = await _applicationDataService.GetApplicationData(Request.HttpContext); return(Ok(appData)); }
public IActionResult Get() { var appData = _applicationDataService.GetApplicationData(Request.HttpContext, Startup.Configuration["StsAuthority"]); return(Ok(appData)); }