public async Task OnDoItClicked() { DoItFeedback = "Loading..."; var library = new PimpLibrary(new Uri("http://localhost:8456", UriKind.Absolute), "admin", "test"); try { var version = await library.PingAuth(); DoItFeedback = $"Version: {version.version}"; } catch (ResponseException re) { DoItFeedback = re.Message; } catch (Exception e) { DoItFeedback = $"Unable to ping. {e.Message}"; } }
public LibraryManager() { Active = new PimpLibrary(new Uri("http://localhost:8456", UriKind.Absolute), "admin", "test"); }