Пример #1
0
        public async Task <MonitorContainer> GetMonitorsAsync()
        {
            UriBuilder       builder          = new UriBuilder($"{GlobalRoutingSettings.Instance.GetMonitors}/{Settings.UserName}");
            string           uri              = builder.ToString();
            MonitorContainer monitorContainer = await _request.GetAsync <MonitorContainer>(uri);

            return(monitorContainer);
        }
        public async Task <User> LoginAsync <User>(string username, string password)
        {
            UriBuilder builder = new UriBuilder(GlobalRoutingSettings.Instance.TokenEndpoint);
            string     uri     = builder.ToString();
            User       user    = await _requests.GetAsync <User>(uri, username, password);

            return(user);
        }