コード例 #1
0
        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}";
            }
        }
コード例 #2
0
 public LibraryManager()
 {
     Active = new PimpLibrary(new Uri("http://localhost:8456", UriKind.Absolute), "admin", "test");
 }