public void ReadCommandDelegate() { if (string.IsNullOrEmpty(Source) || string.IsNullOrEmpty(User)) { Info += "La fuente y el usuario son obligatorios." + "\r\n"; return; } try { var cred = _passwordVaultService.Read(Source, User); Info += string.Format("Datos obtenidos con éxito. Resource: {0}, User: {1}, Password: {2}", cred.Resource, cred.UserName, cred.Password) + "\r\n"; } catch (Exception ex) { Info += ex.Message + "\r\n"; } }
public void ReadCommandDelegate() { if (string.IsNullOrEmpty(Source) || string.IsNullOrEmpty(User)) { Info += "The Source and the User are required." + "\r\n"; return; } try { var cred = _passwordVaultService.Read(Source, User); Info += string.Format("Data recovered successfully. Resource: {0}, User: {1}, Password: {2}", cred.Resource, cred.UserName, cred.Password) + "\r\n"; } catch (Exception ex) { Info += ex.Message + "\r\n"; } }