async Task SaveConnections() { var conns = await GetLoadedConnectionsInternal(); var details = conns.Select(x => new ConnectionDetails(x.HostAddress, x.Username)); await cache.Save(details); }
async Task SaveConnectionsToCache() { await cache.Save(Connections.Select(x => new ConnectionDetails(x.HostAddress, x.Username))); }