Пример #1
0
        private async System.Threading.Tasks.Task <string> FindLocAsync(Report r, string s, string token, LogEvent task)
        {
            string request = string.Format(s, r.p1, r.p2, token);

            task.LogMessege("sent request to: " + request, true);
            OnlineStreem Streem = new OnlineStreem(request, task);
            await Streem.PostCallAPI();

            r.loc = Streem.getLoc();
            task.LogMessege(r.loc.display_name, false);
            return(r.loc.display_name);
        }
Пример #2
0
        public async System.Threading.Tasks.Task <string> FindLocAsync(string s, string token, LogEvent task)
        {
            string request = string.Format(s, p1, p2, token);

            task.LogMessege("sent request to: " + request, true);
            OnlineStreem Streem = new OnlineStreem(request, task);
            await Streem.PostCallAPI();

            SetLoc(Streem.getLoc());
            task.LogMessege(loc, false);
            return(loc);
        }
Пример #3
0
        public async Task InputFromUrl(string url)
        {
            LogEvent task = log.LogMessege("connect to remote service " + url, true);

            OnlineStreem Streem = new OnlineStreem(url, task);
            await Streem.PostCallAPI();

            log.LogMessege("data recived: " + Streem.data.Count + " items", task, false);

            Catalog(Streem.toReportList());

            log.LogMessege("there are: " + List.Count + " Clusters | Done", task, false);
        }