commit d6ed15e1f66aef873014ddd745d3bde1c0a76212 Author: retoor Date: Mon Dec 16 22:23:13 2024 +0100 Example source. diff --git a/.history/DrApi_20241215174536.cs b/.history/DrApi_20241215174536.cs new file mode 100644 index 0000000..e69de29 diff --git a/.history/DrApi_20241215174614.cs b/.history/DrApi_20241215174614.cs new file mode 100644 index 0000000..9814ecf --- /dev/null +++ b/.history/DrApi_20241215174614.cs @@ -0,0 +1,9 @@ + + +class DrApi { + + static void DrApi(string username, string password) { + + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215175010.cs b/.history/DrApi_20241215175010.cs new file mode 100644 index 0000000..19be12f --- /dev/null +++ b/.history/DrApi_20241215175010.cs @@ -0,0 +1,9 @@ + + +class DrApi { + + static void (string username, string password) { + + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215175033.cs b/.history/DrApi_20241215175033.cs new file mode 100644 index 0000000..c654161 --- /dev/null +++ b/.history/DrApi_20241215175033.cs @@ -0,0 +1,9 @@ + + +class DrApi { + + static void pony (string username, string password) { + + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215175929.cs b/.history/DrApi_20241215175929.cs new file mode 100644 index 0000000..cfb5206 --- /dev/null +++ b/.history/DrApi_20241215175929.cs @@ -0,0 +1,17 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + static void get_rants (string url) { + string response = HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215175930.cs b/.history/DrApi_20241215175930.cs new file mode 100644 index 0000000..cfb5206 --- /dev/null +++ b/.history/DrApi_20241215175930.cs @@ -0,0 +1,17 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + static void get_rants (string url) { + string response = HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180014.cs b/.history/DrApi_20241215180014.cs new file mode 100644 index 0000000..c83e9a8 --- /dev/null +++ b/.history/DrApi_20241215180014.cs @@ -0,0 +1,18 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + static void get_rants (string url) { + string response = HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180032.cs b/.history/DrApi_20241215180032.cs new file mode 100644 index 0000000..6d05f05 --- /dev/null +++ b/.history/DrApi_20241215180032.cs @@ -0,0 +1,18 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + static string get_rants (string url) { + string response = HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180054.cs b/.history/DrApi_20241215180054.cs new file mode 100644 index 0000000..2dd6e98 --- /dev/null +++ b/.history/DrApi_20241215180054.cs @@ -0,0 +1,18 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + static string get_rants (string url) { + string response = HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response.ToString()); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180055.cs b/.history/DrApi_20241215180055.cs new file mode 100644 index 0000000..2dd6e98 --- /dev/null +++ b/.history/DrApi_20241215180055.cs @@ -0,0 +1,18 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + static string get_rants (string url) { + string response = HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response.ToString()); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180126.cs b/.history/DrApi_20241215180126.cs new file mode 100644 index 0000000..2525747 --- /dev/null +++ b/.history/DrApi_20241215180126.cs @@ -0,0 +1,18 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static string get_rants (string url) { + string response = HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response.ToString()); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180127.cs b/.history/DrApi_20241215180127.cs new file mode 100644 index 0000000..2525747 --- /dev/null +++ b/.history/DrApi_20241215180127.cs @@ -0,0 +1,18 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static string get_rants (string url) { + string response = HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response.ToString()); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180146.cs b/.history/DrApi_20241215180146.cs new file mode 100644 index 0000000..0793ca2 --- /dev/null +++ b/.history/DrApi_20241215180146.cs @@ -0,0 +1,18 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static string get_rants (string url) { + string response = HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180301.cs b/.history/DrApi_20241215180301.cs new file mode 100644 index 0000000..44c5bc1 --- /dev/null +++ b/.history/DrApi_20241215180301.cs @@ -0,0 +1,18 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static string get_rants (string url) { + string response = await HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180302.cs b/.history/DrApi_20241215180302.cs new file mode 100644 index 0000000..44c5bc1 --- /dev/null +++ b/.history/DrApi_20241215180302.cs @@ -0,0 +1,18 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static string get_rants (string url) { + string response = await HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180317.cs b/.history/DrApi_20241215180317.cs new file mode 100644 index 0000000..fc1ed52 --- /dev/null +++ b/.history/DrApi_20241215180317.cs @@ -0,0 +1,18 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static Task get_rants (string url) { + string response = await HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180321.cs b/.history/DrApi_20241215180321.cs new file mode 100644 index 0000000..600632a --- /dev/null +++ b/.history/DrApi_20241215180321.cs @@ -0,0 +1,18 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static async Task get_rants (string url) { + string response = await HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180626.cs b/.history/DrApi_20241215180626.cs new file mode 100644 index 0000000..663aea1 --- /dev/null +++ b/.history/DrApi_20241215180626.cs @@ -0,0 +1,18 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static async Task get_rants (string url) { + string response = HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180732.cs b/.history/DrApi_20241215180732.cs new file mode 100644 index 0000000..600632a --- /dev/null +++ b/.history/DrApi_20241215180732.cs @@ -0,0 +1,18 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static async Task get_rants (string url) { + string response = await HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180733.cs b/.history/DrApi_20241215180733.cs new file mode 100644 index 0000000..600632a --- /dev/null +++ b/.history/DrApi_20241215180733.cs @@ -0,0 +1,18 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static async Task get_rants (string url) { + string response = await HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180756.cs b/.history/DrApi_20241215180756.cs new file mode 100644 index 0000000..fffafc8 --- /dev/null +++ b/.history/DrApi_20241215180756.cs @@ -0,0 +1,19 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static async Task get_rants (string url) { + string response = await HTTP.get(url); + return ""; + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180757.cs b/.history/DrApi_20241215180757.cs new file mode 100644 index 0000000..fffafc8 --- /dev/null +++ b/.history/DrApi_20241215180757.cs @@ -0,0 +1,19 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static async Task get_rants (string url) { + string response = await HTTP.get(url); + return ""; + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180806.cs b/.history/DrApi_20241215180806.cs new file mode 100644 index 0000000..24a25a0 --- /dev/null +++ b/.history/DrApi_20241215180806.cs @@ -0,0 +1,20 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static async Task get_rants (string url) { + return ""; + + string response = await HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180807.cs b/.history/DrApi_20241215180807.cs new file mode 100644 index 0000000..24a25a0 --- /dev/null +++ b/.history/DrApi_20241215180807.cs @@ -0,0 +1,20 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static async Task get_rants (string url) { + return ""; + + string response = await HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180817.cs b/.history/DrApi_20241215180817.cs new file mode 100644 index 0000000..3edfc72 --- /dev/null +++ b/.history/DrApi_20241215180817.cs @@ -0,0 +1,19 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static async Task get_rants (string url) { + + string response = await HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215180818.cs b/.history/DrApi_20241215180818.cs new file mode 100644 index 0000000..3edfc72 --- /dev/null +++ b/.history/DrApi_20241215180818.cs @@ -0,0 +1,19 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static async Task get_rants (string url) { + + string response = await HTTP.get(url); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215181209.cs b/.history/DrApi_20241215181209.cs new file mode 100644 index 0000000..6f0a43d --- /dev/null +++ b/.history/DrApi_20241215181209.cs @@ -0,0 +1,20 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static async Task get_rants (string url) { + + string response = await HTTP.get(url); + Console.writeLine("AFTER GET"); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215181210.cs b/.history/DrApi_20241215181210.cs new file mode 100644 index 0000000..6f0a43d --- /dev/null +++ b/.history/DrApi_20241215181210.cs @@ -0,0 +1,20 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static async Task get_rants (string url) { + + string response = await HTTP.get(url); + Console.writeLine("AFTER GET"); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241215181214.cs b/.history/DrApi_20241215181214.cs new file mode 100644 index 0000000..7b608f0 --- /dev/null +++ b/.history/DrApi_20241215181214.cs @@ -0,0 +1,20 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static async Task get_rants (string url) { + + string response = await HTTP.get(url); + Console.WriteLine("AFTER GET"); + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.InnerText); + } + return null; + } + +} \ No newline at end of file diff --git a/.history/DrApi_20241216222031.cs b/.history/DrApi_20241216222031.cs new file mode 100644 index 0000000..f3de0cc --- /dev/null +++ b/.history/DrApi_20241216222031.cs @@ -0,0 +1,25 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static async Task get_rants (string url) { + + string response = await HTTP.get(url).ConfigureAwait(false);; + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//a"); + //var nodes = doc.DocumentNode.SelectNodes("//a[contains(@class,'rantlist-content-col')"); + //var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.GetAttributeValue("class","None")); + if(node.GetAttributeValue("class","None") == "rantlist-bglink"){ + + Console.WriteLine(node.InnerText); + } + } + return null; + } + +} diff --git a/.history/HTTP_20241215174639.cs b/.history/HTTP_20241215174639.cs new file mode 100644 index 0000000..e69de29 diff --git a/.history/HTTP_20241215174731.cs b/.history/HTTP_20241215174731.cs new file mode 100644 index 0000000..abe0e20 --- /dev/null +++ b/.history/HTTP_20241215174731.cs @@ -0,0 +1,34 @@ + // The URL of the API or website you want to make a request to + +string http_get(string url){ + // Create an instance of HttpClient + using (HttpClient client = new HttpClient()) + { + try + { + // Send a GET request to the specified URL + HttpResponseMessage response = await client.GetAsync(url); + + // Check if the response is successful (status code 200) + if (response.IsSuccessStatusCode) + { + // Read the response content as a string + string responseData = await response.Content.ReadAsStringAsync(); + + // Print the response to the console + Console.WriteLine(responseData); + return responseData; + } + else + { + // Handle the error if the status code is not successful + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + // Handle any exceptions (e.g., network errors) + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + } \ No newline at end of file diff --git a/.history/HTTP_20241215174805.cs b/.history/HTTP_20241215174805.cs new file mode 100644 index 0000000..dab49d4 --- /dev/null +++ b/.history/HTTP_20241215174805.cs @@ -0,0 +1,38 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +string http_get(string url){ + // Create an instance of HttpClient + using (HttpClient client = new HttpClient()) + { + try + { + // Send a GET request to the specified URL + HttpResponseMessage response = await client.GetAsync(url); + + // Check if the response is successful (status code 200) + if (response.IsSuccessStatusCode) + { + // Read the response content as a string + string responseData = await response.Content.ReadAsStringAsync(); + + // Print the response to the console + Console.WriteLine(responseData); + return responseData; + } + else + { + // Handle the error if the status code is not successful + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + // Handle any exceptions (e.g., network errors) + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + } \ No newline at end of file diff --git a/.history/HTTP_20241215174806.cs b/.history/HTTP_20241215174806.cs new file mode 100644 index 0000000..dab49d4 --- /dev/null +++ b/.history/HTTP_20241215174806.cs @@ -0,0 +1,38 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +string http_get(string url){ + // Create an instance of HttpClient + using (HttpClient client = new HttpClient()) + { + try + { + // Send a GET request to the specified URL + HttpResponseMessage response = await client.GetAsync(url); + + // Check if the response is successful (status code 200) + if (response.IsSuccessStatusCode) + { + // Read the response content as a string + string responseData = await response.Content.ReadAsStringAsync(); + + // Print the response to the console + Console.WriteLine(responseData); + return responseData; + } + else + { + // Handle the error if the status code is not successful + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + // Handle any exceptions (e.g., network errors) + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + } \ No newline at end of file diff --git a/.history/HTTP_20241215175422.cs b/.history/HTTP_20241215175422.cs new file mode 100644 index 0000000..ef56e5c --- /dev/null +++ b/.history/HTTP_20241215175422.cs @@ -0,0 +1,39 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +string http_get(string url){ + // Create an instance of HttpClient + using (HttpClient client = new HttpClient()) + { + try + { + // Send a GET request to the specified URL + HttpResponseMessage response = await client.GetAsync(url); + + // Check if the response is successful (status code 200) + if (response.IsSuccessStatusCode) + { + // Read the response content as a string + string responseData = await response.Content.ReadAsStringAsync(); + + // Print the response to the console + Console.WriteLine(responseData); + return responseData; + } + else + { + // Handle the error if the status code is not successful + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + // Handle any exceptions (e.g., network errors) + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + } + \ No newline at end of file diff --git a/.history/HTTP_20241215175457.cs b/.history/HTTP_20241215175457.cs new file mode 100644 index 0000000..f3866ff --- /dev/null +++ b/.history/HTTP_20241215175457.cs @@ -0,0 +1,41 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + public static string http_get(string url){ + // Create an instance of HttpClient + using (HttpClient client = new HttpClient()) + { + try + { + // Send a GET request to the specified URL + HttpResponseMessage response = await client.GetAsync(url); + + // Check if the response is successful (status code 200) + if (response.IsSuccessStatusCode) + { + // Read the response content as a string + string responseData = await response.Content.ReadAsStringAsync(); + + // Print the response to the console + Console.WriteLine(responseData); + return responseData; + } + else + { + // Handle the error if the status code is not successful + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + // Handle any exceptions (e.g., network errors) + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215175503.cs b/.history/HTTP_20241215175503.cs new file mode 100644 index 0000000..66b1786 --- /dev/null +++ b/.history/HTTP_20241215175503.cs @@ -0,0 +1,41 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + public static async Task get(string url){ + // Create an instance of HttpClient + using (HttpClient client = new HttpClient()) + { + try + { + // Send a GET request to the specified URL + HttpResponseMessage response = await client.GetAsync(url); + + // Check if the response is successful (status code 200) + if (response.IsSuccessStatusCode) + { + // Read the response content as a string + string responseData = await response.Content.ReadAsStringAsync(); + + // Print the response to the console + Console.WriteLine(responseData); + return responseData; + } + else + { + // Handle the error if the status code is not successful + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + // Handle any exceptions (e.g., network errors) + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215175544.cs b/.history/HTTP_20241215175544.cs new file mode 100644 index 0000000..d47288e --- /dev/null +++ b/.history/HTTP_20241215175544.cs @@ -0,0 +1,42 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + public static async Task get(string url){ + // Create an instance of HttpClient + using (HttpClient client = new HttpClient()) + { + try + { + // Send a GET request to the specified URL + HttpResponseMessage response = await client.GetAsync(url); + + // Check if the response is successful (status code 200) + if (response.IsSuccessStatusCode) + { + // Read the response content as a string + string responseData = await response.Content.ReadAsStringAsync(); + + // Print the response to the console + Console.WriteLine(responseData); + return responseData; + } + else + { + // Handle the error if the status code is not successful + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + // Handle any exceptions (e.g., network errors) + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215180404.cs b/.history/HTTP_20241215180404.cs new file mode 100644 index 0000000..b95665a --- /dev/null +++ b/.history/HTTP_20241215180404.cs @@ -0,0 +1,35 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + public static async Task get(string url){ + using (HttpClient client = new HttpClient()) + { + try + { + HttpResponseMessage response = await client.GetAsync(url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215180405.cs b/.history/HTTP_20241215180405.cs new file mode 100644 index 0000000..b95665a --- /dev/null +++ b/.history/HTTP_20241215180405.cs @@ -0,0 +1,35 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + public static async Task get(string url){ + using (HttpClient client = new HttpClient()) + { + try + { + HttpResponseMessage response = await client.GetAsync(url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215180410.cs b/.history/HTTP_20241215180410.cs new file mode 100644 index 0000000..44be854 --- /dev/null +++ b/.history/HTTP_20241215180410.cs @@ -0,0 +1,33 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + public static async Task get(string url){ + using (HttpClient client = new HttpClient()) + { + try + { + HttpResponseMessage response = await client.GetAsync(url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215180645.cs b/.history/HTTP_20241215180645.cs new file mode 100644 index 0000000..3a3b61c --- /dev/null +++ b/.history/HTTP_20241215180645.cs @@ -0,0 +1,33 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + public static async get(string url){ + using (HttpClient client = new HttpClient()) + { + try + { + HttpResponseMessage response = await client.GetAsync(url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215180655.cs b/.history/HTTP_20241215180655.cs new file mode 100644 index 0000000..ba411ab --- /dev/null +++ b/.history/HTTP_20241215180655.cs @@ -0,0 +1,33 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + public static async string get(string url){ + using (HttpClient client = new HttpClient()) + { + try + { + HttpResponseMessage response = await client.GetAsync(url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215180712.cs b/.history/HTTP_20241215180712.cs new file mode 100644 index 0000000..44be854 --- /dev/null +++ b/.history/HTTP_20241215180712.cs @@ -0,0 +1,33 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + public static async Task get(string url){ + using (HttpClient client = new HttpClient()) + { + try + { + HttpResponseMessage response = await client.GetAsync(url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215180849.cs b/.history/HTTP_20241215180849.cs new file mode 100644 index 0000000..89978ea --- /dev/null +++ b/.history/HTTP_20241215180849.cs @@ -0,0 +1,35 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + public static async Task get(string url){ + using (HttpClient client = new HttpClient()) + { + try + { + HttpResponseMessage response = await client.GetAsync(url); + + if (response.IsSuccessStatusCode) + { + Console.writeLine("SUCCESS\n"); + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215180850.cs b/.history/HTTP_20241215180850.cs new file mode 100644 index 0000000..89978ea --- /dev/null +++ b/.history/HTTP_20241215180850.cs @@ -0,0 +1,35 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + public static async Task get(string url){ + using (HttpClient client = new HttpClient()) + { + try + { + HttpResponseMessage response = await client.GetAsync(url); + + if (response.IsSuccessStatusCode) + { + Console.writeLine("SUCCESS\n"); + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215180902.cs b/.history/HTTP_20241215180902.cs new file mode 100644 index 0000000..1dd7d7f --- /dev/null +++ b/.history/HTTP_20241215180902.cs @@ -0,0 +1,35 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + public static async Task get(string url){ + using (HttpClient client = new HttpClient()) + { + try + { + HttpResponseMessage response = await client.GetAsync(url); + + if (response.IsSuccessStatusCode) + { + Console.WriteLine("SUCCESS\n"); + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215180913.cs b/.history/HTTP_20241215180913.cs new file mode 100644 index 0000000..574c609 --- /dev/null +++ b/.history/HTTP_20241215180913.cs @@ -0,0 +1,36 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + public static async Task get(string url){ + using (HttpClient client = new HttpClient()) + { + try + { + Console.WriteLine("SUCCESS\n"); + + HttpResponseMessage response = await client.GetAsync(url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215180914.cs b/.history/HTTP_20241215180914.cs new file mode 100644 index 0000000..574c609 --- /dev/null +++ b/.history/HTTP_20241215180914.cs @@ -0,0 +1,36 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + public static async Task get(string url){ + using (HttpClient client = new HttpClient()) + { + try + { + Console.WriteLine("SUCCESS\n"); + + HttpResponseMessage response = await client.GetAsync(url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215180926.cs b/.history/HTTP_20241215180926.cs new file mode 100644 index 0000000..3974286 --- /dev/null +++ b/.history/HTTP_20241215180926.cs @@ -0,0 +1,36 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + public static async Task get(string url){ + using (HttpClient client = new HttpClient()) + { + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync(url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215180927.cs b/.history/HTTP_20241215180927.cs new file mode 100644 index 0000000..3974286 --- /dev/null +++ b/.history/HTTP_20241215180927.cs @@ -0,0 +1,36 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + public static async Task get(string url){ + using (HttpClient client = new HttpClient()) + { + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync(url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215180954.cs b/.history/HTTP_20241215180954.cs new file mode 100644 index 0000000..0ce8d44 --- /dev/null +++ b/.history/HTTP_20241215180954.cs @@ -0,0 +1,38 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + public static async Task get(string url){ + using (HttpClient client = new HttpClient()) + { + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync(url); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + } + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215181122.cs b/.history/HTTP_20241215181122.cs new file mode 100644 index 0000000..99819be --- /dev/null +++ b/.history/HTTP_20241215181122.cs @@ -0,0 +1,39 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + + private static readonly HttpClient client = new HttpClient(); + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync(url); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215181123.cs b/.history/HTTP_20241215181123.cs new file mode 100644 index 0000000..99819be --- /dev/null +++ b/.history/HTTP_20241215181123.cs @@ -0,0 +1,39 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + + private static readonly HttpClient client = new HttpClient(); + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync(url); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215181258.cs b/.history/HTTP_20241215181258.cs new file mode 100644 index 0000000..e215e09 --- /dev/null +++ b/.history/HTTP_20241215181258.cs @@ -0,0 +1,41 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync(url); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215181259.cs b/.history/HTTP_20241215181259.cs new file mode 100644 index 0000000..e215e09 --- /dev/null +++ b/.history/HTTP_20241215181259.cs @@ -0,0 +1,41 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync(url); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215181634.cs b/.history/HTTP_20241215181634.cs new file mode 100644 index 0000000..768a138 --- /dev/null +++ b/.history/HTTP_20241215181634.cs @@ -0,0 +1,41 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = client.GET(url); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215181635.cs b/.history/HTTP_20241215181635.cs new file mode 100644 index 0000000..768a138 --- /dev/null +++ b/.history/HTTP_20241215181635.cs @@ -0,0 +1,41 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = client.GET(url); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215181645.cs b/.history/HTTP_20241215181645.cs new file mode 100644 index 0000000..c926bd5 --- /dev/null +++ b/.history/HTTP_20241215181645.cs @@ -0,0 +1,41 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = client.Get(url); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215181706.cs b/.history/HTTP_20241215181706.cs new file mode 100644 index 0000000..7ffe0d5 --- /dev/null +++ b/.history/HTTP_20241215181706.cs @@ -0,0 +1,41 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = client.GetAsync(url); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215181725.cs b/.history/HTTP_20241215181725.cs new file mode 100644 index 0000000..e215e09 --- /dev/null +++ b/.history/HTTP_20241215181725.cs @@ -0,0 +1,41 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync(url); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return null; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215181742.cs b/.history/HTTP_20241215181742.cs new file mode 100644 index 0000000..1556ce4 --- /dev/null +++ b/.history/HTTP_20241215181742.cs @@ -0,0 +1,41 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync(url); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return ""; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241215181753.cs b/.history/HTTP_20241215181753.cs new file mode 100644 index 0000000..b721876 --- /dev/null +++ b/.history/HTTP_20241215181753.cs @@ -0,0 +1,41 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync(url); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + +} \ No newline at end of file diff --git a/.history/HTTP_20241216222047.cs b/.history/HTTP_20241216222047.cs new file mode 100644 index 0000000..99d37da --- /dev/null +++ b/.history/HTTP_20241216222047.cs @@ -0,0 +1,42 @@ + // The URL of the API or website you want to make a request to +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync(url,HttpCompletionOption.ResponseHeadersRead).ConfigureAwait(false); + + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync().ConfigureAwait(false);; + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + +} diff --git a/.history/HTTP_20241216222140.cs b/.history/HTTP_20241216222140.cs new file mode 100644 index 0000000..ad39dbb --- /dev/null +++ b/.history/HTTP_20241216222140.cs @@ -0,0 +1,40 @@ +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + +private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) +}; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync(url,HttpCompletionOption.ResponseHeadersRead).ConfigureAwait(false); + + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync().ConfigureAwait(false);; + + return responseData; + } + else + { + Console.WriteLine(response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine(ex.Message); + } + return null; + } + +} diff --git a/.history/HTTP_20241216222146.cs b/.history/HTTP_20241216222146.cs new file mode 100644 index 0000000..54e9a12 --- /dev/null +++ b/.history/HTTP_20241216222146.cs @@ -0,0 +1,40 @@ +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync(url,HttpCompletionOption.ResponseHeadersRead).ConfigureAwait(false); + + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync().ConfigureAwait(false);; + + return responseData; + } + else + { + Console.WriteLine(response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine(ex.Message); + } + return null; + } + +} diff --git a/.history/HttpHelper_20241215182118.cs b/.history/HttpHelper_20241215182118.cs new file mode 100644 index 0000000..e69de29 diff --git a/.history/HttpHelper_20241215182128.cs b/.history/HttpHelper_20241215182128.cs new file mode 100644 index 0000000..fc967ec --- /dev/null +++ b/.history/HttpHelper_20241215182128.cs @@ -0,0 +1,41 @@ +using System; +using System.Net.Http; +using System.Threading.Tasks; + +public class HttpHelper +{ + // Reuse a static HttpClient for the entire application to prevent socket exhaustion + private static readonly HttpClient client = new HttpClient() + { + Timeout = TimeSpan.FromSeconds(10) // Set a timeout for the HTTP request + }; + + // Function to get the content of the URL + public static async Task GetContentsAsync(string url) + { + try + { + // Send an HTTP GET request + HttpResponseMessage response = await client.GetAsync(url); + + // Check if the request was successful (HTTP status code 200) + if (response.IsSuccessStatusCode) + { + // Read the response content as a string and return it + string content = await response.Content.ReadAsStringAsync(); + return content; + } + else + { + Console.WriteLine($"Error: {response.StatusCode}"); + } + } + catch (Exception ex) + { + // Handle exceptions (e.g., network issues, invalid URLs) + Console.WriteLine($"Exception: {ex.Message}"); + } + + return null; + } +} \ No newline at end of file diff --git a/.history/HttpHelper_20241215182414.cs b/.history/HttpHelper_20241215182414.cs new file mode 100644 index 0000000..4648f3a --- /dev/null +++ b/.history/HttpHelper_20241215182414.cs @@ -0,0 +1,42 @@ +using System; +using System.Net.Http; +using System.Threading.Tasks; + +public class HttpHelper +{ + // Reuse a static HttpClient for the entire application to prevent socket exhaustion + private static readonly HttpClient client = new HttpClient() + { + Timeout = TimeSpan.FromSeconds(10) // Set a timeout for the HTTP request + }; + + // Function to get the content of the URL + public static async Task GetContentsAsync(string url) + { + try + { + // Send an HTTP GET request + HttpResponseMessage response = await client.GetAsync(url); + + // Check if the request was successful (HTTP status code 200) + if (response.IsSuccessStatusCode) + { + // Read the response content as a string and return it + string content = await response.Content.ReadAsStringAsync(); + Console.WriteLine(content); + return content; + } + else + { + Console.WriteLine($"Error: {response.StatusCode}"); + } + } + catch (Exception ex) + { + // Handle exceptions (e.g., network issues, invalid URLs) + Console.WriteLine($"Exception: {ex.Message}"); + } + + return null; + } +} \ No newline at end of file diff --git a/.history/Program_20241215144638.cs b/.history/Program_20241215144638.cs new file mode 100644 index 0000000..92f1098 --- /dev/null +++ b/.history/Program_20241215144638.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +class Program { + + static void Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215174838.cs b/.history/Program_20241215174838.cs new file mode 100644 index 0000000..2245f20 --- /dev/null +++ b/.history/Program_20241215174838.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +class Program { + + static void Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + http_get("https://devrant.com/feed/recent") + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215174853.cs b/.history/Program_20241215174853.cs new file mode 100644 index 0000000..ab396fc --- /dev/null +++ b/.history/Program_20241215174853.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +class Program { + + static void Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Connsole.WriteLine(http_get("https://devrant.com/feed/recent")) + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215174910.cs b/.history/Program_20241215174910.cs new file mode 100644 index 0000000..335e683 --- /dev/null +++ b/.history/Program_20241215174910.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +class Program { + + static void Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Connsole.WriteLine(http_get("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215175107.cs b/.history/Program_20241215175107.cs new file mode 100644 index 0000000..d4ffac2 --- /dev/null +++ b/.history/Program_20241215175107.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +class Program { + + static void Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(http_get("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215175108.cs b/.history/Program_20241215175108.cs new file mode 100644 index 0000000..d4ffac2 --- /dev/null +++ b/.history/Program_20241215175108.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +class Program { + + static void Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(http_get("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215175127.cs b/.history/Program_20241215175127.cs new file mode 100644 index 0000000..328bbce --- /dev/null +++ b/.history/Program_20241215175127.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +class Program { + + static void Program(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(http_get("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215175128.cs b/.history/Program_20241215175128.cs new file mode 100644 index 0000000..328bbce --- /dev/null +++ b/.history/Program_20241215175128.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +class Program { + + static void Program(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(http_get("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215175136.cs b/.history/Program_20241215175136.cs new file mode 100644 index 0000000..1fd8942 --- /dev/null +++ b/.history/Program_20241215175136.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +class Program { + + static void main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(http_get("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215175308.cs b/.history/Program_20241215175308.cs new file mode 100644 index 0000000..276f6dc --- /dev/null +++ b/.history/Program_20241215175308.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +public static class Program { + + static void main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(http_get("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215175309.cs b/.history/Program_20241215175309.cs new file mode 100644 index 0000000..276f6dc --- /dev/null +++ b/.history/Program_20241215175309.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +public static class Program { + + static void main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(http_get("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215175339.cs b/.history/Program_20241215175339.cs new file mode 100644 index 0000000..6952619 --- /dev/null +++ b/.history/Program_20241215175339.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +class Program { + + public static void main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(http_get("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215175340.cs b/.history/Program_20241215175340.cs new file mode 100644 index 0000000..6952619 --- /dev/null +++ b/.history/Program_20241215175340.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +class Program { + + public static void main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(http_get("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215175427.cs b/.history/Program_20241215175427.cs new file mode 100644 index 0000000..7a3c8c3 --- /dev/null +++ b/.history/Program_20241215175427.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + public static void main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(http_get("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215175520.cs b/.history/Program_20241215175520.cs new file mode 100644 index 0000000..69c4c14 --- /dev/null +++ b/.history/Program_20241215175520.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + public static void main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(HTTP.get("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215175559.cs b/.history/Program_20241215175559.cs new file mode 100644 index 0000000..3ecfac4 --- /dev/null +++ b/.history/Program_20241215175559.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + public static void Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(HTTP.get("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215175944.cs b/.history/Program_20241215175944.cs new file mode 100644 index 0000000..ae6a44d --- /dev/null +++ b/.history/Program_20241215175944.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + public static void Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(devrant.get_rants("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215175945.cs b/.history/Program_20241215175945.cs new file mode 100644 index 0000000..ae6a44d --- /dev/null +++ b/.history/Program_20241215175945.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + public static void Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(devrant.get_rants("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215175948.cs b/.history/Program_20241215175948.cs new file mode 100644 index 0000000..5a7cd70 --- /dev/null +++ b/.history/Program_20241215175948.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + public static void Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(DrApi.get_rants("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215175949.cs b/.history/Program_20241215175949.cs new file mode 100644 index 0000000..5a7cd70 --- /dev/null +++ b/.history/Program_20241215175949.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + public static void Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(DrApi.get_rants("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215180415.cs b/.history/Program_20241215180415.cs new file mode 100644 index 0000000..5a7cd70 --- /dev/null +++ b/.history/Program_20241215180415.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + public static void Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(DrApi.get_rants("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215180440.cs b/.history/Program_20241215180440.cs new file mode 100644 index 0000000..b5fc4af --- /dev/null +++ b/.history/Program_20241215180440.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + public static void Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(await DrApi.get_rants("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215180455.cs b/.history/Program_20241215180455.cs new file mode 100644 index 0000000..ec47004 --- /dev/null +++ b/.history/Program_20241215180455.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + public static Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(await DrApi.get_rants("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215180500.cs b/.history/Program_20241215180500.cs new file mode 100644 index 0000000..58f158b --- /dev/null +++ b/.history/Program_20241215180500.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + public static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(await DrApi.get_rants("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215180529.cs b/.history/Program_20241215180529.cs new file mode 100644 index 0000000..34d0b3a --- /dev/null +++ b/.history/Program_20241215180529.cs @@ -0,0 +1,18 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine(await DrApi.get_rants("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215180550.cs b/.history/Program_20241215180550.cs new file mode 100644 index 0000000..c115a20 --- /dev/null +++ b/.history/Program_20241215180550.cs @@ -0,0 +1,19 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await DrApi.get_rants("https://devrant.com/feed/recent")); + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215180604.cs b/.history/Program_20241215180604.cs new file mode 100644 index 0000000..b3737c3 --- /dev/null +++ b/.history/Program_20241215180604.cs @@ -0,0 +1,21 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await DrApi.get_rants("https://devrant.com/feed/recent")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215180605.cs b/.history/Program_20241215180605.cs new file mode 100644 index 0000000..b3737c3 --- /dev/null +++ b/.history/Program_20241215180605.cs @@ -0,0 +1,21 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await DrApi.get_rants("https://devrant.com/feed/recent")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215181412.cs b/.history/Program_20241215181412.cs new file mode 100644 index 0000000..a5f4218 --- /dev/null +++ b/.history/Program_20241215181412.cs @@ -0,0 +1,21 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await DrApi.get_rants("https://devrant.com/feed/recent/")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215181413.cs b/.history/Program_20241215181413.cs new file mode 100644 index 0000000..a5f4218 --- /dev/null +++ b/.history/Program_20241215181413.cs @@ -0,0 +1,21 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await DrApi.get_rants("https://devrant.com/feed/recent/")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215181423.cs b/.history/Program_20241215181423.cs new file mode 100644 index 0000000..eea6c92 --- /dev/null +++ b/.history/Program_20241215181423.cs @@ -0,0 +1,21 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215181436.cs b/.history/Program_20241215181436.cs new file mode 100644 index 0000000..398d5f9 --- /dev/null +++ b/.history/Program_20241215181436.cs @@ -0,0 +1,22 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + DrApi.get_rants("https://www.google.nl")) + Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215181437.cs b/.history/Program_20241215181437.cs new file mode 100644 index 0000000..398d5f9 --- /dev/null +++ b/.history/Program_20241215181437.cs @@ -0,0 +1,22 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + DrApi.get_rants("https://www.google.nl")) + Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215181458.cs b/.history/Program_20241215181458.cs new file mode 100644 index 0000000..8c463e4 --- /dev/null +++ b/.history/Program_20241215181458.cs @@ -0,0 +1,22 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await HTTP.get("https://www.google.nl")) + Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215181508.cs b/.history/Program_20241215181508.cs new file mode 100644 index 0000000..504a6f2 --- /dev/null +++ b/.history/Program_20241215181508.cs @@ -0,0 +1,22 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await HTTP.get("https://www.google.nl")); + Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215181521.cs b/.history/Program_20241215181521.cs new file mode 100644 index 0000000..cfa1568 --- /dev/null +++ b/.history/Program_20241215181521.cs @@ -0,0 +1,22 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await HTTP.get("https://www.google.nl")); + #Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215181522.cs b/.history/Program_20241215181522.cs new file mode 100644 index 0000000..cfa1568 --- /dev/null +++ b/.history/Program_20241215181522.cs @@ -0,0 +1,22 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await HTTP.get("https://www.google.nl")); + #Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215181533.cs b/.history/Program_20241215181533.cs new file mode 100644 index 0000000..e76544f --- /dev/null +++ b/.history/Program_20241215181533.cs @@ -0,0 +1,22 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await HTTP.get("https://www.google.nl")); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215181842.cs b/.history/Program_20241215181842.cs new file mode 100644 index 0000000..fb35f84 --- /dev/null +++ b/.history/Program_20241215181842.cs @@ -0,0 +1,56 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync(url); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await get("https://www.google.nl")); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215181843.cs b/.history/Program_20241215181843.cs new file mode 100644 index 0000000..fb35f84 --- /dev/null +++ b/.history/Program_20241215181843.cs @@ -0,0 +1,56 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync(url); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await get("https://www.google.nl")); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215181859.cs b/.history/Program_20241215181859.cs new file mode 100644 index 0000000..17336b9 --- /dev/null +++ b/.history/Program_20241215181859.cs @@ -0,0 +1,56 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync(url); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await get("https://www.google.nl")); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215181918.cs b/.history/Program_20241215181918.cs new file mode 100644 index 0000000..f34e2fe --- /dev/null +++ b/.history/Program_20241215181918.cs @@ -0,0 +1,60 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync(url); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await get("https://www.google.nl")); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215181933.cs b/.history/Program_20241215181933.cs new file mode 100644 index 0000000..f48396d --- /dev/null +++ b/.history/Program_20241215181933.cs @@ -0,0 +1,60 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await get("https://www.google.nl")); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215181934.cs b/.history/Program_20241215181934.cs new file mode 100644 index 0000000..f48396d --- /dev/null +++ b/.history/Program_20241215181934.cs @@ -0,0 +1,60 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await get("https://www.google.nl")); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215181957.cs b/.history/Program_20241215181957.cs new file mode 100644 index 0000000..6d9bc82 --- /dev/null +++ b/.history/Program_20241215181957.cs @@ -0,0 +1,60 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await get("https://www.google.nl")); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182011.cs b/.history/Program_20241215182011.cs new file mode 100644 index 0000000..0f17010 --- /dev/null +++ b/.history/Program_20241215182011.cs @@ -0,0 +1,60 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(get("https://www.google.nl")); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182019.cs b/.history/Program_20241215182019.cs new file mode 100644 index 0000000..f48396d --- /dev/null +++ b/.history/Program_20241215182019.cs @@ -0,0 +1,60 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await get("https://www.google.nl")); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182148.cs b/.history/Program_20241215182148.cs new file mode 100644 index 0000000..34cc930 --- /dev/null +++ b/.history/Program_20241215182148.cs @@ -0,0 +1,60 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await HttpHelper.GetContentsAsync("https://www.google.nl")); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182149.cs b/.history/Program_20241215182149.cs new file mode 100644 index 0000000..34cc930 --- /dev/null +++ b/.history/Program_20241215182149.cs @@ -0,0 +1,60 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + Console.WriteLine(await HttpHelper.GetContentsAsync("https://www.google.nl")); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182240.cs b/.history/Program_20241215182240.cs new file mode 100644 index 0000000..c130f76 --- /dev/null +++ b/.history/Program_20241215182240.cs @@ -0,0 +1,61 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + string result = await HttpHelper.GetContentsAsync("https://www.google.nl"); + Cosnole.WriteLine(result); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182255.cs b/.history/Program_20241215182255.cs new file mode 100644 index 0000000..2f40562 --- /dev/null +++ b/.history/Program_20241215182255.cs @@ -0,0 +1,61 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + string result = await HttpHelper.GetContentsAsync("https://www.google.nl"); + Console.WriteLine(result); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182328.cs b/.history/Program_20241215182328.cs new file mode 100644 index 0000000..c9f5a91 --- /dev/null +++ b/.history/Program_20241215182328.cs @@ -0,0 +1,61 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + string result = await HttpHelper.GetContentsAsync("https://localhost:9000"); + Console.WriteLine(result); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182329.cs b/.history/Program_20241215182329.cs new file mode 100644 index 0000000..c9f5a91 --- /dev/null +++ b/.history/Program_20241215182329.cs @@ -0,0 +1,61 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + string result = await HttpHelper.GetContentsAsync("https://localhost:9000"); + Console.WriteLine(result); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182341.cs b/.history/Program_20241215182341.cs new file mode 100644 index 0000000..84a8ae6 --- /dev/null +++ b/.history/Program_20241215182341.cs @@ -0,0 +1,61 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + string result = await HttpHelper.GetContentsAsync("https://localhost:9999"); + Console.WriteLine(result); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182342.cs b/.history/Program_20241215182342.cs new file mode 100644 index 0000000..84a8ae6 --- /dev/null +++ b/.history/Program_20241215182342.cs @@ -0,0 +1,61 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + string result = await HttpHelper.GetContentsAsync("https://localhost:9999"); + Console.WriteLine(result); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182611.cs b/.history/Program_20241215182611.cs new file mode 100644 index 0000000..abab855 --- /dev/null +++ b/.history/Program_20241215182611.cs @@ -0,0 +1,61 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + string result = await HttpHelper.GetContentsAsync("http://localhost:9999"); + Console.WriteLine(result); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182612.cs b/.history/Program_20241215182612.cs new file mode 100644 index 0000000..abab855 --- /dev/null +++ b/.history/Program_20241215182612.cs @@ -0,0 +1,61 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + string result = await HttpHelper.GetContentsAsync("http://localhost:9999"); + Console.WriteLine(result); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182636.cs b/.history/Program_20241215182636.cs new file mode 100644 index 0000000..8a53e2a --- /dev/null +++ b/.history/Program_20241215182636.cs @@ -0,0 +1,61 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async void Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + string result = await HttpHelper.GetContentsAsync("http://localhost:9999"); + Console.WriteLine(result); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182646.cs b/.history/Program_20241215182646.cs new file mode 100644 index 0000000..04c37b6 --- /dev/null +++ b/.history/Program_20241215182646.cs @@ -0,0 +1,61 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + string result = await HttpHelper.GetContentsAsync("http://localhost:9999"); + Console.WriteLine(result); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182647.cs b/.history/Program_20241215182647.cs new file mode 100644 index 0000000..04c37b6 --- /dev/null +++ b/.history/Program_20241215182647.cs @@ -0,0 +1,61 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + string result = await HttpHelper.GetContentsAsync("http://localhost:9999"); + Console.WriteLine(result); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182700.cs b/.history/Program_20241215182700.cs new file mode 100644 index 0000000..abab855 --- /dev/null +++ b/.history/Program_20241215182700.cs @@ -0,0 +1,61 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + string result = await HttpHelper.GetContentsAsync("http://localhost:9999"); + Console.WriteLine(result); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182701.cs b/.history/Program_20241215182701.cs new file mode 100644 index 0000000..abab855 --- /dev/null +++ b/.history/Program_20241215182701.cs @@ -0,0 +1,61 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + string result = await HttpHelper.GetContentsAsync("http://localhost:9999"); + Console.WriteLine(result); + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182751.cs b/.history/Program_20241215182751.cs new file mode 100644 index 0000000..ccd5614 --- /dev/null +++ b/.history/Program_20241215182751.cs @@ -0,0 +1,64 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + string result = await HttpHelper.GetContentsAsync("http://localhost:9999"); + Console.WriteLine(result); + result = await HttpHelper.GetContentsAsync("http://localhost:9999"); + Console.WriteLine(result); + + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241215182752.cs b/.history/Program_20241215182752.cs new file mode 100644 index 0000000..ccd5614 --- /dev/null +++ b/.history/Program_20241215182752.cs @@ -0,0 +1,64 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync("https://google.nl"); + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync(); + Console.WriteLine(responseData); + return responseData; + } + else + { + Console.WriteLine("Error: " + response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred: " + ex.Message); + } + + return "zzz"; + } + + + static async Task Main(string[] args){ + Application.Init(); + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + Console.WriteLine("DID TASK\n"); + string result = await HttpHelper.GetContentsAsync("http://localhost:9999"); + Console.WriteLine(result); + result = await HttpHelper.GetContentsAsync("http://localhost:9999"); + Console.WriteLine(result); + + //Console.WriteLine(await DrApi.get_rants("https://www.google.nl")); + Console.WriteLine("DID TASK2\n"); + + window.ShowAll(); + Application.Run(); + + } +} + diff --git a/.history/Program_20241216222214.cs b/.history/Program_20241216222214.cs new file mode 100644 index 0000000..a7088a9 --- /dev/null +++ b/.history/Program_20241216222214.cs @@ -0,0 +1,32 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + static async Task Main(string[] args){ + Application.Init(); + + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + + string result = await DrApi.get_rants("https://devrant.com/feed/recent"); + Console.WriteLine(result); + + window.ShowAll(); + + Application.Run(); + + } +} + diff --git a/DrApi.cs b/DrApi.cs new file mode 100644 index 0000000..f3de0cc --- /dev/null +++ b/DrApi.cs @@ -0,0 +1,25 @@ +using HtmlAgilityPack; +using System; +using System.Linq; + +class DrApi { + + public static async Task get_rants (string url) { + + string response = await HTTP.get(url).ConfigureAwait(false);; + HtmlDocument doc = new HtmlDocument(); + doc.LoadHtml(response); + var nodes = doc.DocumentNode.SelectNodes("//a"); + //var nodes = doc.DocumentNode.SelectNodes("//a[contains(@class,'rantlist-content-col')"); + //var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]"); + foreach (var node in nodes) { + Console.WriteLine(node.GetAttributeValue("class","None")); + if(node.GetAttributeValue("class","None") == "rantlist-bglink"){ + + Console.WriteLine(node.InnerText); + } + } + return null; + } + +} diff --git a/HTTP.cs b/HTTP.cs new file mode 100644 index 0000000..54e9a12 --- /dev/null +++ b/HTTP.cs @@ -0,0 +1,40 @@ +using System; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +static class HTTP { + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) + }; + + public static async Task get(string url){ + try + { + Console.WriteLine("SUCCESS\n " + url); + + HttpResponseMessage response = await client.GetAsync(url,HttpCompletionOption.ResponseHeadersRead).ConfigureAwait(false); + + + Console.WriteLine("SUCCESS3\n " + url); + + if (response.IsSuccessStatusCode) + { + string responseData = await response.Content.ReadAsStringAsync().ConfigureAwait(false);; + + return responseData; + } + else + { + Console.WriteLine(response.StatusCode); + } + } + catch (Exception ex) + { + Console.WriteLine(ex.Message); + } + return null; + } + +} diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..a7088a9 --- /dev/null +++ b/Program.cs @@ -0,0 +1,32 @@ +// See https://aka.ms/new-console-template for more information + +using Gtk; + +using System; +using System.Net.Http; +using System.Threading.Tasks; + +partial class Program { + + + private static readonly HttpClient client = new HttpClient(){ + Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging + }; + + static async Task Main(string[] args){ + Application.Init(); + + var window = new Window("My TEst"); + window.SetDefaultSize(320,240); + window.DeleteEvent += (o,e) => Application.Quit(); + + string result = await DrApi.get_rants("https://devrant.com/feed/recent"); + Console.WriteLine(result); + + window.ShowAll(); + + Application.Run(); + + } +} + diff --git a/bin/Debug/net8.0/AtkSharp.dll b/bin/Debug/net8.0/AtkSharp.dll new file mode 100755 index 0000000..6fadf5c Binary files /dev/null and b/bin/Debug/net8.0/AtkSharp.dll differ diff --git a/bin/Debug/net8.0/CairoSharp.dll b/bin/Debug/net8.0/CairoSharp.dll new file mode 100755 index 0000000..ad0efd2 Binary files /dev/null and b/bin/Debug/net8.0/CairoSharp.dll differ diff --git a/bin/Debug/net8.0/GLibSharp.dll b/bin/Debug/net8.0/GLibSharp.dll new file mode 100755 index 0000000..0b5ac48 Binary files /dev/null and b/bin/Debug/net8.0/GLibSharp.dll differ diff --git a/bin/Debug/net8.0/GdkSharp.dll b/bin/Debug/net8.0/GdkSharp.dll new file mode 100755 index 0000000..0371601 Binary files /dev/null and b/bin/Debug/net8.0/GdkSharp.dll differ diff --git a/bin/Debug/net8.0/GioSharp.dll b/bin/Debug/net8.0/GioSharp.dll new file mode 100755 index 0000000..148f15e Binary files /dev/null and b/bin/Debug/net8.0/GioSharp.dll differ diff --git a/bin/Debug/net8.0/GtkSharp.dll b/bin/Debug/net8.0/GtkSharp.dll new file mode 100755 index 0000000..26ef061 Binary files /dev/null and b/bin/Debug/net8.0/GtkSharp.dll differ diff --git a/bin/Debug/net8.0/HtmlAgilityPack.dll b/bin/Debug/net8.0/HtmlAgilityPack.dll new file mode 100755 index 0000000..d25df06 Binary files /dev/null and b/bin/Debug/net8.0/HtmlAgilityPack.dll differ diff --git a/bin/Debug/net8.0/PangoSharp.dll b/bin/Debug/net8.0/PangoSharp.dll new file mode 100755 index 0000000..2c96ace Binary files /dev/null and b/bin/Debug/net8.0/PangoSharp.dll differ diff --git a/bin/Debug/net8.0/desk b/bin/Debug/net8.0/desk new file mode 100755 index 0000000..c137974 Binary files /dev/null and b/bin/Debug/net8.0/desk differ diff --git a/bin/Debug/net8.0/desk.deps.json b/bin/Debug/net8.0/desk.deps.json new file mode 100644 index 0000000..cd7995e --- /dev/null +++ b/bin/Debug/net8.0/desk.deps.json @@ -0,0 +1,171 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "desk/1.0.0": { + "dependencies": { + "GtkSharp": "3.24.24.95", + "HtmlAgilityPack": "1.11.71" + }, + "runtime": { + "desk.dll": {} + } + }, + "AtkSharp/3.24.24.95": { + "dependencies": { + "GLibSharp": "3.24.24.95" + }, + "runtime": { + "lib/net6.0/AtkSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + }, + "CairoSharp/3.24.24.95": { + "runtime": { + "lib/net6.0/CairoSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + }, + "GdkSharp/3.24.24.95": { + "dependencies": { + "CairoSharp": "3.24.24.95", + "GLibSharp": "3.24.24.95", + "GioSharp": "3.24.24.95", + "PangoSharp": "3.24.24.95" + }, + "runtime": { + "lib/net6.0/GdkSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + }, + "GioSharp/3.24.24.95": { + "dependencies": { + "GLibSharp": "3.24.24.95" + }, + "runtime": { + "lib/net6.0/GioSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + }, + "GLibSharp/3.24.24.95": { + "runtime": { + "lib/net6.0/GLibSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + }, + "GtkSharp/3.24.24.95": { + "dependencies": { + "AtkSharp": "3.24.24.95", + "CairoSharp": "3.24.24.95", + "GLibSharp": "3.24.24.95", + "GdkSharp": "3.24.24.95", + "GioSharp": "3.24.24.95", + "PangoSharp": "3.24.24.95" + }, + "runtime": { + "lib/net6.0/GtkSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + }, + "HtmlAgilityPack/1.11.71": { + "runtime": { + "lib/netstandard2.0/HtmlAgilityPack.dll": { + "assemblyVersion": "1.11.71.0", + "fileVersion": "1.11.71.0" + } + } + }, + "PangoSharp/3.24.24.95": { + "dependencies": { + "CairoSharp": "3.24.24.95", + "GLibSharp": "3.24.24.95" + }, + "runtime": { + "lib/net6.0/PangoSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + } + } + }, + "libraries": { + "desk/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "AtkSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-LnSfsc0y11gfzczZj5bnpwcFkXFZuVTSSd92ML/FcHIM7FU+cAfm1UkAonv5BdwTRhzDbNDE39vihao/k75sUA==", + "path": "atksharp/3.24.24.95", + "hashPath": "atksharp.3.24.24.95.nupkg.sha512" + }, + "CairoSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-EZ9KT3pwVAol35XbZW0Uwdg2LqhDvPnWdhqIrsedhDx+Omnu56hLzxh8mZGqmQvEwJE8Opbda4w9CqDtXbX6Vw==", + "path": "cairosharp/3.24.24.95", + "hashPath": "cairosharp.3.24.24.95.nupkg.sha512" + }, + "GdkSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-rABpIGkxr8lOdyhEmrKXzjih3z3932kjqUmm5qaQhWVSvu9YepEk3J1FApgnKCW/EWEzlerzxnJArsyOlgMsZQ==", + "path": "gdksharp/3.24.24.95", + "hashPath": "gdksharp.3.24.24.95.nupkg.sha512" + }, + "GioSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-avYEDFlYgbogb+Y7ZhIXQpyJfL83bnPpBKY642YEW9PQ+pRK3qf2k0opvd5oHccXfByj6kAQjmRUSIS0pj19Fg==", + "path": "giosharp/3.24.24.95", + "hashPath": "giosharp.3.24.24.95.nupkg.sha512" + }, + "GLibSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-1viZRMVjddf2HUCW7WDXT47rHssteHkAOimXQ2/pI8oGrPGNFuuw5MbX8BOIy73hCWVqo7JEMONv3z32OrCoCQ==", + "path": "glibsharp/3.24.24.95", + "hashPath": "glibsharp.3.24.24.95.nupkg.sha512" + }, + "GtkSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-RRUY45hAa5gsMcadvVjcLUzMjVtmuHSYTcIwM6j8LNgKhzFFHk69qM1D5ULfGxaWmVjicqNWiFtOtk8WsvPqaQ==", + "path": "gtksharp/3.24.24.95", + "hashPath": "gtksharp.3.24.24.95.nupkg.sha512" + }, + "HtmlAgilityPack/1.11.71": { + "type": "package", + "serviceable": true, + "sha512": "sha512-HlEThQBnob4/29DIiyrPSYlGXXSZUtOH7571PRev+yu8FW8n5pdxqHyun+PMm17cp3ovCrxFhXedC+1HUSdRMA==", + "path": "htmlagilitypack/1.11.71", + "hashPath": "htmlagilitypack.1.11.71.nupkg.sha512" + }, + "PangoSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-H7JeyEvLsgvsbamGpRgoNtdvzPiGwwsUuoeTobN1C/JRjw1J8Snw0yf2WBr7CKx5GLwbrwpQYOb7N/HD17ME8A==", + "path": "pangosharp/3.24.24.95", + "hashPath": "pangosharp.3.24.24.95.nupkg.sha512" + } + } +} \ No newline at end of file diff --git a/bin/Debug/net8.0/desk.dll b/bin/Debug/net8.0/desk.dll new file mode 100644 index 0000000..f9af19b Binary files /dev/null and b/bin/Debug/net8.0/desk.dll differ diff --git a/bin/Debug/net8.0/desk.pdb b/bin/Debug/net8.0/desk.pdb new file mode 100644 index 0000000..6f323c1 Binary files /dev/null and b/bin/Debug/net8.0/desk.pdb differ diff --git a/bin/Debug/net8.0/desk.runtimeconfig.json b/bin/Debug/net8.0/desk.runtimeconfig.json new file mode 100644 index 0000000..becfaea --- /dev/null +++ b/bin/Debug/net8.0/desk.runtimeconfig.json @@ -0,0 +1,12 @@ +{ + "runtimeOptions": { + "tfm": "net8.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "8.0.0" + }, + "configProperties": { + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false + } + } +} \ No newline at end of file diff --git a/bin/debug/net8.0/AtkSharp.dll b/bin/debug/net8.0/AtkSharp.dll new file mode 100755 index 0000000..6fadf5c Binary files /dev/null and b/bin/debug/net8.0/AtkSharp.dll differ diff --git a/bin/debug/net8.0/CairoSharp.dll b/bin/debug/net8.0/CairoSharp.dll new file mode 100755 index 0000000..ad0efd2 Binary files /dev/null and b/bin/debug/net8.0/CairoSharp.dll differ diff --git a/bin/debug/net8.0/GLibSharp.dll b/bin/debug/net8.0/GLibSharp.dll new file mode 100755 index 0000000..0b5ac48 Binary files /dev/null and b/bin/debug/net8.0/GLibSharp.dll differ diff --git a/bin/debug/net8.0/GdkSharp.dll b/bin/debug/net8.0/GdkSharp.dll new file mode 100755 index 0000000..0371601 Binary files /dev/null and b/bin/debug/net8.0/GdkSharp.dll differ diff --git a/bin/debug/net8.0/GioSharp.dll b/bin/debug/net8.0/GioSharp.dll new file mode 100755 index 0000000..148f15e Binary files /dev/null and b/bin/debug/net8.0/GioSharp.dll differ diff --git a/bin/debug/net8.0/GtkSharp.dll b/bin/debug/net8.0/GtkSharp.dll new file mode 100755 index 0000000..26ef061 Binary files /dev/null and b/bin/debug/net8.0/GtkSharp.dll differ diff --git a/bin/debug/net8.0/HtmlAgilityPack.dll b/bin/debug/net8.0/HtmlAgilityPack.dll new file mode 100755 index 0000000..d25df06 Binary files /dev/null and b/bin/debug/net8.0/HtmlAgilityPack.dll differ diff --git a/bin/debug/net8.0/PangoSharp.dll b/bin/debug/net8.0/PangoSharp.dll new file mode 100755 index 0000000..2c96ace Binary files /dev/null and b/bin/debug/net8.0/PangoSharp.dll differ diff --git a/bin/debug/net8.0/desk b/bin/debug/net8.0/desk new file mode 100755 index 0000000..c137974 Binary files /dev/null and b/bin/debug/net8.0/desk differ diff --git a/bin/debug/net8.0/desk.deps.json b/bin/debug/net8.0/desk.deps.json new file mode 100644 index 0000000..cd7995e --- /dev/null +++ b/bin/debug/net8.0/desk.deps.json @@ -0,0 +1,171 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "desk/1.0.0": { + "dependencies": { + "GtkSharp": "3.24.24.95", + "HtmlAgilityPack": "1.11.71" + }, + "runtime": { + "desk.dll": {} + } + }, + "AtkSharp/3.24.24.95": { + "dependencies": { + "GLibSharp": "3.24.24.95" + }, + "runtime": { + "lib/net6.0/AtkSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + }, + "CairoSharp/3.24.24.95": { + "runtime": { + "lib/net6.0/CairoSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + }, + "GdkSharp/3.24.24.95": { + "dependencies": { + "CairoSharp": "3.24.24.95", + "GLibSharp": "3.24.24.95", + "GioSharp": "3.24.24.95", + "PangoSharp": "3.24.24.95" + }, + "runtime": { + "lib/net6.0/GdkSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + }, + "GioSharp/3.24.24.95": { + "dependencies": { + "GLibSharp": "3.24.24.95" + }, + "runtime": { + "lib/net6.0/GioSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + }, + "GLibSharp/3.24.24.95": { + "runtime": { + "lib/net6.0/GLibSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + }, + "GtkSharp/3.24.24.95": { + "dependencies": { + "AtkSharp": "3.24.24.95", + "CairoSharp": "3.24.24.95", + "GLibSharp": "3.24.24.95", + "GdkSharp": "3.24.24.95", + "GioSharp": "3.24.24.95", + "PangoSharp": "3.24.24.95" + }, + "runtime": { + "lib/net6.0/GtkSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + }, + "HtmlAgilityPack/1.11.71": { + "runtime": { + "lib/netstandard2.0/HtmlAgilityPack.dll": { + "assemblyVersion": "1.11.71.0", + "fileVersion": "1.11.71.0" + } + } + }, + "PangoSharp/3.24.24.95": { + "dependencies": { + "CairoSharp": "3.24.24.95", + "GLibSharp": "3.24.24.95" + }, + "runtime": { + "lib/net6.0/PangoSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + } + } + }, + "libraries": { + "desk/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "AtkSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-LnSfsc0y11gfzczZj5bnpwcFkXFZuVTSSd92ML/FcHIM7FU+cAfm1UkAonv5BdwTRhzDbNDE39vihao/k75sUA==", + "path": "atksharp/3.24.24.95", + "hashPath": "atksharp.3.24.24.95.nupkg.sha512" + }, + "CairoSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-EZ9KT3pwVAol35XbZW0Uwdg2LqhDvPnWdhqIrsedhDx+Omnu56hLzxh8mZGqmQvEwJE8Opbda4w9CqDtXbX6Vw==", + "path": "cairosharp/3.24.24.95", + "hashPath": "cairosharp.3.24.24.95.nupkg.sha512" + }, + "GdkSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-rABpIGkxr8lOdyhEmrKXzjih3z3932kjqUmm5qaQhWVSvu9YepEk3J1FApgnKCW/EWEzlerzxnJArsyOlgMsZQ==", + "path": "gdksharp/3.24.24.95", + "hashPath": "gdksharp.3.24.24.95.nupkg.sha512" + }, + "GioSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-avYEDFlYgbogb+Y7ZhIXQpyJfL83bnPpBKY642YEW9PQ+pRK3qf2k0opvd5oHccXfByj6kAQjmRUSIS0pj19Fg==", + "path": "giosharp/3.24.24.95", + "hashPath": "giosharp.3.24.24.95.nupkg.sha512" + }, + "GLibSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-1viZRMVjddf2HUCW7WDXT47rHssteHkAOimXQ2/pI8oGrPGNFuuw5MbX8BOIy73hCWVqo7JEMONv3z32OrCoCQ==", + "path": "glibsharp/3.24.24.95", + "hashPath": "glibsharp.3.24.24.95.nupkg.sha512" + }, + "GtkSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-RRUY45hAa5gsMcadvVjcLUzMjVtmuHSYTcIwM6j8LNgKhzFFHk69qM1D5ULfGxaWmVjicqNWiFtOtk8WsvPqaQ==", + "path": "gtksharp/3.24.24.95", + "hashPath": "gtksharp.3.24.24.95.nupkg.sha512" + }, + "HtmlAgilityPack/1.11.71": { + "type": "package", + "serviceable": true, + "sha512": "sha512-HlEThQBnob4/29DIiyrPSYlGXXSZUtOH7571PRev+yu8FW8n5pdxqHyun+PMm17cp3ovCrxFhXedC+1HUSdRMA==", + "path": "htmlagilitypack/1.11.71", + "hashPath": "htmlagilitypack.1.11.71.nupkg.sha512" + }, + "PangoSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-H7JeyEvLsgvsbamGpRgoNtdvzPiGwwsUuoeTobN1C/JRjw1J8Snw0yf2WBr7CKx5GLwbrwpQYOb7N/HD17ME8A==", + "path": "pangosharp/3.24.24.95", + "hashPath": "pangosharp.3.24.24.95.nupkg.sha512" + } + } +} \ No newline at end of file diff --git a/bin/debug/net8.0/desk.dll b/bin/debug/net8.0/desk.dll new file mode 100644 index 0000000..458d16e Binary files /dev/null and b/bin/debug/net8.0/desk.dll differ diff --git a/bin/debug/net8.0/desk.pdb b/bin/debug/net8.0/desk.pdb new file mode 100644 index 0000000..48a80bc Binary files /dev/null and b/bin/debug/net8.0/desk.pdb differ diff --git a/bin/debug/net8.0/desk.runtimeconfig.json b/bin/debug/net8.0/desk.runtimeconfig.json new file mode 100644 index 0000000..becfaea --- /dev/null +++ b/bin/debug/net8.0/desk.runtimeconfig.json @@ -0,0 +1,12 @@ +{ + "runtimeOptions": { + "tfm": "net8.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "8.0.0" + }, + "configProperties": { + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false + } + } +} \ No newline at end of file diff --git a/bin/release/net8.0/AtkSharp.dll b/bin/release/net8.0/AtkSharp.dll new file mode 100755 index 0000000..6fadf5c Binary files /dev/null and b/bin/release/net8.0/AtkSharp.dll differ diff --git a/bin/release/net8.0/CairoSharp.dll b/bin/release/net8.0/CairoSharp.dll new file mode 100755 index 0000000..ad0efd2 Binary files /dev/null and b/bin/release/net8.0/CairoSharp.dll differ diff --git a/bin/release/net8.0/GLibSharp.dll b/bin/release/net8.0/GLibSharp.dll new file mode 100755 index 0000000..0b5ac48 Binary files /dev/null and b/bin/release/net8.0/GLibSharp.dll differ diff --git a/bin/release/net8.0/GdkSharp.dll b/bin/release/net8.0/GdkSharp.dll new file mode 100755 index 0000000..0371601 Binary files /dev/null and b/bin/release/net8.0/GdkSharp.dll differ diff --git a/bin/release/net8.0/GioSharp.dll b/bin/release/net8.0/GioSharp.dll new file mode 100755 index 0000000..148f15e Binary files /dev/null and b/bin/release/net8.0/GioSharp.dll differ diff --git a/bin/release/net8.0/GtkSharp.dll b/bin/release/net8.0/GtkSharp.dll new file mode 100755 index 0000000..26ef061 Binary files /dev/null and b/bin/release/net8.0/GtkSharp.dll differ diff --git a/bin/release/net8.0/PangoSharp.dll b/bin/release/net8.0/PangoSharp.dll new file mode 100755 index 0000000..2c96ace Binary files /dev/null and b/bin/release/net8.0/PangoSharp.dll differ diff --git a/bin/release/net8.0/app.zip b/bin/release/net8.0/app.zip new file mode 100644 index 0000000..26352c2 Binary files /dev/null and b/bin/release/net8.0/app.zip differ diff --git a/bin/release/net8.0/desk b/bin/release/net8.0/desk new file mode 100755 index 0000000..c137974 Binary files /dev/null and b/bin/release/net8.0/desk differ diff --git a/bin/release/net8.0/desk.deps.json b/bin/release/net8.0/desk.deps.json new file mode 100644 index 0000000..d10e60b --- /dev/null +++ b/bin/release/net8.0/desk.deps.json @@ -0,0 +1,155 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "desk/1.0.0": { + "dependencies": { + "GtkSharp": "3.24.24.95" + }, + "runtime": { + "desk.dll": {} + } + }, + "AtkSharp/3.24.24.95": { + "dependencies": { + "GLibSharp": "3.24.24.95" + }, + "runtime": { + "lib/net6.0/AtkSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + }, + "CairoSharp/3.24.24.95": { + "runtime": { + "lib/net6.0/CairoSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + }, + "GdkSharp/3.24.24.95": { + "dependencies": { + "CairoSharp": "3.24.24.95", + "GLibSharp": "3.24.24.95", + "GioSharp": "3.24.24.95", + "PangoSharp": "3.24.24.95" + }, + "runtime": { + "lib/net6.0/GdkSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + }, + "GioSharp/3.24.24.95": { + "dependencies": { + "GLibSharp": "3.24.24.95" + }, + "runtime": { + "lib/net6.0/GioSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + }, + "GLibSharp/3.24.24.95": { + "runtime": { + "lib/net6.0/GLibSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + }, + "GtkSharp/3.24.24.95": { + "dependencies": { + "AtkSharp": "3.24.24.95", + "CairoSharp": "3.24.24.95", + "GLibSharp": "3.24.24.95", + "GdkSharp": "3.24.24.95", + "GioSharp": "3.24.24.95", + "PangoSharp": "3.24.24.95" + }, + "runtime": { + "lib/net6.0/GtkSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + }, + "PangoSharp/3.24.24.95": { + "dependencies": { + "CairoSharp": "3.24.24.95", + "GLibSharp": "3.24.24.95" + }, + "runtime": { + "lib/net6.0/PangoSharp.dll": { + "assemblyVersion": "3.24.24.95", + "fileVersion": "3.24.24.95" + } + } + } + } + }, + "libraries": { + "desk/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "AtkSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-LnSfsc0y11gfzczZj5bnpwcFkXFZuVTSSd92ML/FcHIM7FU+cAfm1UkAonv5BdwTRhzDbNDE39vihao/k75sUA==", + "path": "atksharp/3.24.24.95", + "hashPath": "atksharp.3.24.24.95.nupkg.sha512" + }, + "CairoSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-EZ9KT3pwVAol35XbZW0Uwdg2LqhDvPnWdhqIrsedhDx+Omnu56hLzxh8mZGqmQvEwJE8Opbda4w9CqDtXbX6Vw==", + "path": "cairosharp/3.24.24.95", + "hashPath": "cairosharp.3.24.24.95.nupkg.sha512" + }, + "GdkSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-rABpIGkxr8lOdyhEmrKXzjih3z3932kjqUmm5qaQhWVSvu9YepEk3J1FApgnKCW/EWEzlerzxnJArsyOlgMsZQ==", + "path": "gdksharp/3.24.24.95", + "hashPath": "gdksharp.3.24.24.95.nupkg.sha512" + }, + "GioSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-avYEDFlYgbogb+Y7ZhIXQpyJfL83bnPpBKY642YEW9PQ+pRK3qf2k0opvd5oHccXfByj6kAQjmRUSIS0pj19Fg==", + "path": "giosharp/3.24.24.95", + "hashPath": "giosharp.3.24.24.95.nupkg.sha512" + }, + "GLibSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-1viZRMVjddf2HUCW7WDXT47rHssteHkAOimXQ2/pI8oGrPGNFuuw5MbX8BOIy73hCWVqo7JEMONv3z32OrCoCQ==", + "path": "glibsharp/3.24.24.95", + "hashPath": "glibsharp.3.24.24.95.nupkg.sha512" + }, + "GtkSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-RRUY45hAa5gsMcadvVjcLUzMjVtmuHSYTcIwM6j8LNgKhzFFHk69qM1D5ULfGxaWmVjicqNWiFtOtk8WsvPqaQ==", + "path": "gtksharp/3.24.24.95", + "hashPath": "gtksharp.3.24.24.95.nupkg.sha512" + }, + "PangoSharp/3.24.24.95": { + "type": "package", + "serviceable": true, + "sha512": "sha512-H7JeyEvLsgvsbamGpRgoNtdvzPiGwwsUuoeTobN1C/JRjw1J8Snw0yf2WBr7CKx5GLwbrwpQYOb7N/HD17ME8A==", + "path": "pangosharp/3.24.24.95", + "hashPath": "pangosharp.3.24.24.95.nupkg.sha512" + } + } +} \ No newline at end of file diff --git a/bin/release/net8.0/desk.dll b/bin/release/net8.0/desk.dll new file mode 100644 index 0000000..6fcf1a3 Binary files /dev/null and b/bin/release/net8.0/desk.dll differ diff --git a/bin/release/net8.0/desk.pdb b/bin/release/net8.0/desk.pdb new file mode 100644 index 0000000..4b08088 Binary files /dev/null and b/bin/release/net8.0/desk.pdb differ diff --git a/bin/release/net8.0/desk.runtimeconfig.json b/bin/release/net8.0/desk.runtimeconfig.json new file mode 100644 index 0000000..d784515 --- /dev/null +++ b/bin/release/net8.0/desk.runtimeconfig.json @@ -0,0 +1,13 @@ +{ + "runtimeOptions": { + "tfm": "net8.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "8.0.0" + }, + "configProperties": { + "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false + } + } +} \ No newline at end of file diff --git a/desk.csproj b/desk.csproj new file mode 100644 index 0000000..2a492ac --- /dev/null +++ b/desk.csproj @@ -0,0 +1,15 @@ + + + + Exe + net8.0 + enable + enable + + + + + + + + diff --git a/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..2217181 --- /dev/null +++ b/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/obj/Debug/net8.0/apphost b/obj/Debug/net8.0/apphost new file mode 100755 index 0000000..c137974 Binary files /dev/null and b/obj/Debug/net8.0/apphost differ diff --git a/obj/Debug/net8.0/desk.AssemblyInfo.cs b/obj/Debug/net8.0/desk.AssemblyInfo.cs new file mode 100644 index 0000000..e588902 --- /dev/null +++ b/obj/Debug/net8.0/desk.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("desk")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("desk")] +[assembly: System.Reflection.AssemblyTitleAttribute("desk")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/obj/Debug/net8.0/desk.AssemblyInfoInputs.cache b/obj/Debug/net8.0/desk.AssemblyInfoInputs.cache new file mode 100644 index 0000000..1f349d4 --- /dev/null +++ b/obj/Debug/net8.0/desk.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +b226747dece7c82f7915faa3b242577f21439db5f8f4d2e18a58d2aa63bc956e diff --git a/obj/Debug/net8.0/desk.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net8.0/desk.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..3d5707b --- /dev/null +++ b/obj/Debug/net8.0/desk.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,13 @@ +is_global = true +build_property.TargetFramework = net8.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = desk +build_property.ProjectDir = /home/retoor/projects/desk/ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/obj/Debug/net8.0/desk.GlobalUsings.g.cs b/obj/Debug/net8.0/desk.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/obj/Debug/net8.0/desk.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/obj/Debug/net8.0/desk.assets.cache b/obj/Debug/net8.0/desk.assets.cache new file mode 100644 index 0000000..9977682 Binary files /dev/null and b/obj/Debug/net8.0/desk.assets.cache differ diff --git a/obj/Debug/net8.0/desk.csproj.AssemblyReference.cache b/obj/Debug/net8.0/desk.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f9eb423 Binary files /dev/null and b/obj/Debug/net8.0/desk.csproj.AssemblyReference.cache differ diff --git a/obj/Debug/net8.0/desk.csproj.CopyComplete b/obj/Debug/net8.0/desk.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/obj/Debug/net8.0/desk.csproj.CoreCompileInputs.cache b/obj/Debug/net8.0/desk.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..be9ac5f --- /dev/null +++ b/obj/Debug/net8.0/desk.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +ef444eb11c77c3457489e38291def94d5141e352fbda31c3f713cc71bbd1fc33 diff --git a/obj/Debug/net8.0/desk.csproj.FileListAbsolute.txt b/obj/Debug/net8.0/desk.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..3baf876 --- /dev/null +++ b/obj/Debug/net8.0/desk.csproj.FileListAbsolute.txt @@ -0,0 +1,24 @@ +/home/retoor/projects/desk/obj/Debug/net8.0/desk.csproj.AssemblyReference.cache +/home/retoor/projects/desk/obj/Debug/net8.0/desk.GeneratedMSBuildEditorConfig.editorconfig +/home/retoor/projects/desk/obj/Debug/net8.0/desk.AssemblyInfoInputs.cache +/home/retoor/projects/desk/obj/Debug/net8.0/desk.AssemblyInfo.cs +/home/retoor/projects/desk/obj/Debug/net8.0/desk.csproj.CoreCompileInputs.cache +/home/retoor/projects/desk/bin/Debug/net8.0/desk +/home/retoor/projects/desk/bin/Debug/net8.0/desk.deps.json +/home/retoor/projects/desk/bin/Debug/net8.0/desk.runtimeconfig.json +/home/retoor/projects/desk/bin/Debug/net8.0/desk.dll +/home/retoor/projects/desk/bin/Debug/net8.0/desk.pdb +/home/retoor/projects/desk/bin/Debug/net8.0/AtkSharp.dll +/home/retoor/projects/desk/bin/Debug/net8.0/CairoSharp.dll +/home/retoor/projects/desk/bin/Debug/net8.0/GdkSharp.dll +/home/retoor/projects/desk/bin/Debug/net8.0/GioSharp.dll +/home/retoor/projects/desk/bin/Debug/net8.0/GLibSharp.dll +/home/retoor/projects/desk/bin/Debug/net8.0/GtkSharp.dll +/home/retoor/projects/desk/bin/Debug/net8.0/PangoSharp.dll +/home/retoor/projects/desk/obj/Debug/net8.0/desk.csproj.CopyComplete +/home/retoor/projects/desk/obj/Debug/net8.0/desk.dll +/home/retoor/projects/desk/obj/Debug/net8.0/refint/desk.dll +/home/retoor/projects/desk/obj/Debug/net8.0/desk.pdb +/home/retoor/projects/desk/obj/Debug/net8.0/desk.genruntimeconfig.cache +/home/retoor/projects/desk/obj/Debug/net8.0/ref/desk.dll +/home/retoor/projects/desk/bin/Debug/net8.0/HtmlAgilityPack.dll diff --git a/obj/Debug/net8.0/desk.dll b/obj/Debug/net8.0/desk.dll new file mode 100644 index 0000000..f9af19b Binary files /dev/null and b/obj/Debug/net8.0/desk.dll differ diff --git a/obj/Debug/net8.0/desk.genruntimeconfig.cache b/obj/Debug/net8.0/desk.genruntimeconfig.cache new file mode 100644 index 0000000..e22da28 --- /dev/null +++ b/obj/Debug/net8.0/desk.genruntimeconfig.cache @@ -0,0 +1 @@ +81a9dd837751fb2a9ee94daadacfdaed7f0ae7769c2b3b424eba1e7c23c95c6f diff --git a/obj/Debug/net8.0/desk.pdb b/obj/Debug/net8.0/desk.pdb new file mode 100644 index 0000000..6f323c1 Binary files /dev/null and b/obj/Debug/net8.0/desk.pdb differ diff --git a/obj/Debug/net8.0/ref/desk.dll b/obj/Debug/net8.0/ref/desk.dll new file mode 100644 index 0000000..8104ec3 Binary files /dev/null and b/obj/Debug/net8.0/ref/desk.dll differ diff --git a/obj/Debug/net8.0/refint/desk.dll b/obj/Debug/net8.0/refint/desk.dll new file mode 100644 index 0000000..8104ec3 Binary files /dev/null and b/obj/Debug/net8.0/refint/desk.dll differ diff --git a/obj/debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/obj/debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..2217181 --- /dev/null +++ b/obj/debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/obj/debug/net8.0/apphost b/obj/debug/net8.0/apphost new file mode 100755 index 0000000..c137974 Binary files /dev/null and b/obj/debug/net8.0/apphost differ diff --git a/obj/debug/net8.0/desk.AssemblyInfo.cs b/obj/debug/net8.0/desk.AssemblyInfo.cs new file mode 100644 index 0000000..167d784 --- /dev/null +++ b/obj/debug/net8.0/desk.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("desk")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("desk")] +[assembly: System.Reflection.AssemblyTitleAttribute("desk")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/obj/debug/net8.0/desk.AssemblyInfoInputs.cache b/obj/debug/net8.0/desk.AssemblyInfoInputs.cache new file mode 100644 index 0000000..977e437 --- /dev/null +++ b/obj/debug/net8.0/desk.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +c84d262491869376f7a9c299dbf8132ddab87b138684195bd830594eb107260e diff --git a/obj/debug/net8.0/desk.GeneratedMSBuildEditorConfig.editorconfig b/obj/debug/net8.0/desk.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..3d5707b --- /dev/null +++ b/obj/debug/net8.0/desk.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,13 @@ +is_global = true +build_property.TargetFramework = net8.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = desk +build_property.ProjectDir = /home/retoor/projects/desk/ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/obj/debug/net8.0/desk.GlobalUsings.g.cs b/obj/debug/net8.0/desk.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/obj/debug/net8.0/desk.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/obj/debug/net8.0/desk.assets.cache b/obj/debug/net8.0/desk.assets.cache new file mode 100644 index 0000000..20fd56b Binary files /dev/null and b/obj/debug/net8.0/desk.assets.cache differ diff --git a/obj/debug/net8.0/desk.csproj.AssemblyReference.cache b/obj/debug/net8.0/desk.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f9eb423 Binary files /dev/null and b/obj/debug/net8.0/desk.csproj.AssemblyReference.cache differ diff --git a/obj/debug/net8.0/desk.csproj.CopyComplete b/obj/debug/net8.0/desk.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/obj/debug/net8.0/desk.csproj.CoreCompileInputs.cache b/obj/debug/net8.0/desk.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..280a1c9 --- /dev/null +++ b/obj/debug/net8.0/desk.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +cc2a9ccb0da1bb481502691dc21a2a86fb32d520a27ff884d90a18c73a37407c diff --git a/obj/debug/net8.0/desk.csproj.FileListAbsolute.txt b/obj/debug/net8.0/desk.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..c66aeb4 --- /dev/null +++ b/obj/debug/net8.0/desk.csproj.FileListAbsolute.txt @@ -0,0 +1,24 @@ +/home/retoor/projects/desk/bin/debug/net8.0/desk +/home/retoor/projects/desk/bin/debug/net8.0/desk.deps.json +/home/retoor/projects/desk/bin/debug/net8.0/desk.runtimeconfig.json +/home/retoor/projects/desk/bin/debug/net8.0/desk.dll +/home/retoor/projects/desk/bin/debug/net8.0/desk.pdb +/home/retoor/projects/desk/bin/debug/net8.0/AtkSharp.dll +/home/retoor/projects/desk/bin/debug/net8.0/CairoSharp.dll +/home/retoor/projects/desk/bin/debug/net8.0/GdkSharp.dll +/home/retoor/projects/desk/bin/debug/net8.0/GioSharp.dll +/home/retoor/projects/desk/bin/debug/net8.0/GLibSharp.dll +/home/retoor/projects/desk/bin/debug/net8.0/GtkSharp.dll +/home/retoor/projects/desk/bin/debug/net8.0/HtmlAgilityPack.dll +/home/retoor/projects/desk/bin/debug/net8.0/PangoSharp.dll +/home/retoor/projects/desk/obj/debug/net8.0/desk.csproj.AssemblyReference.cache +/home/retoor/projects/desk/obj/debug/net8.0/desk.GeneratedMSBuildEditorConfig.editorconfig +/home/retoor/projects/desk/obj/debug/net8.0/desk.AssemblyInfoInputs.cache +/home/retoor/projects/desk/obj/debug/net8.0/desk.AssemblyInfo.cs +/home/retoor/projects/desk/obj/debug/net8.0/desk.csproj.CoreCompileInputs.cache +/home/retoor/projects/desk/obj/debug/net8.0/desk.csproj.CopyComplete +/home/retoor/projects/desk/obj/debug/net8.0/desk.dll +/home/retoor/projects/desk/obj/debug/net8.0/refint/desk.dll +/home/retoor/projects/desk/obj/debug/net8.0/desk.pdb +/home/retoor/projects/desk/obj/debug/net8.0/desk.genruntimeconfig.cache +/home/retoor/projects/desk/obj/debug/net8.0/ref/desk.dll diff --git a/obj/debug/net8.0/desk.dll b/obj/debug/net8.0/desk.dll new file mode 100644 index 0000000..458d16e Binary files /dev/null and b/obj/debug/net8.0/desk.dll differ diff --git a/obj/debug/net8.0/desk.genruntimeconfig.cache b/obj/debug/net8.0/desk.genruntimeconfig.cache new file mode 100644 index 0000000..e22da28 --- /dev/null +++ b/obj/debug/net8.0/desk.genruntimeconfig.cache @@ -0,0 +1 @@ +81a9dd837751fb2a9ee94daadacfdaed7f0ae7769c2b3b424eba1e7c23c95c6f diff --git a/obj/debug/net8.0/desk.pdb b/obj/debug/net8.0/desk.pdb new file mode 100644 index 0000000..48a80bc Binary files /dev/null and b/obj/debug/net8.0/desk.pdb differ diff --git a/obj/debug/net8.0/ref/desk.dll b/obj/debug/net8.0/ref/desk.dll new file mode 100644 index 0000000..a583dfe Binary files /dev/null and b/obj/debug/net8.0/ref/desk.dll differ diff --git a/obj/debug/net8.0/refint/desk.dll b/obj/debug/net8.0/refint/desk.dll new file mode 100644 index 0000000..a583dfe Binary files /dev/null and b/obj/debug/net8.0/refint/desk.dll differ diff --git a/obj/desk.csproj.nuget.dgspec.json b/obj/desk.csproj.nuget.dgspec.json new file mode 100644 index 0000000..5b05694 --- /dev/null +++ b/obj/desk.csproj.nuget.dgspec.json @@ -0,0 +1,71 @@ +{ + "format": 1, + "restore": { + "/home/retoor/projects/desk/desk.csproj": {} + }, + "projects": { + "/home/retoor/projects/desk/desk.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/home/retoor/projects/desk/desk.csproj", + "projectName": "desk", + "projectPath": "/home/retoor/projects/desk/desk.csproj", + "packagesPath": "/home/retoor/.nuget/packages/", + "outputPath": "/home/retoor/projects/desk/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/home/retoor/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "dependencies": { + "GtkSharp": { + "target": "Package", + "version": "[3.24.24.95, )" + }, + "HtmlAgilityPack": { + "target": "Package", + "version": "[1.11.71, )" + } + }, + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/lib/dotnet/sdk/8.0.111/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/obj/desk.csproj.nuget.g.props b/obj/desk.csproj.nuget.g.props new file mode 100644 index 0000000..1546018 --- /dev/null +++ b/obj/desk.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + /home/retoor/.nuget/packages/ + /home/retoor/.nuget/packages/ + PackageReference + 6.8.1 + + + + + \ No newline at end of file diff --git a/obj/desk.csproj.nuget.g.targets b/obj/desk.csproj.nuget.g.targets new file mode 100644 index 0000000..6129aef --- /dev/null +++ b/obj/desk.csproj.nuget.g.targets @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/obj/project.assets.json b/obj/project.assets.json new file mode 100644 index 0000000..4b38535 --- /dev/null +++ b/obj/project.assets.json @@ -0,0 +1,325 @@ +{ + "version": 3, + "targets": { + "net8.0": { + "AtkSharp/3.24.24.95": { + "type": "package", + "dependencies": { + "GLibSharp": "3.24.24.95" + }, + "compile": { + "lib/net6.0/AtkSharp.dll": {} + }, + "runtime": { + "lib/net6.0/AtkSharp.dll": {} + } + }, + "CairoSharp/3.24.24.95": { + "type": "package", + "compile": { + "lib/net6.0/CairoSharp.dll": {} + }, + "runtime": { + "lib/net6.0/CairoSharp.dll": {} + } + }, + "GdkSharp/3.24.24.95": { + "type": "package", + "dependencies": { + "CairoSharp": "3.24.24.95", + "GLibSharp": "3.24.24.95", + "GioSharp": "3.24.24.95", + "PangoSharp": "3.24.24.95" + }, + "compile": { + "lib/net6.0/GdkSharp.dll": {} + }, + "runtime": { + "lib/net6.0/GdkSharp.dll": {} + } + }, + "GioSharp/3.24.24.95": { + "type": "package", + "dependencies": { + "GLibSharp": "3.24.24.95" + }, + "compile": { + "lib/net6.0/GioSharp.dll": {} + }, + "runtime": { + "lib/net6.0/GioSharp.dll": {} + } + }, + "GLibSharp/3.24.24.95": { + "type": "package", + "compile": { + "lib/net6.0/GLibSharp.dll": {} + }, + "runtime": { + "lib/net6.0/GLibSharp.dll": {} + } + }, + "GtkSharp/3.24.24.95": { + "type": "package", + "dependencies": { + "AtkSharp": "3.24.24.95", + "CairoSharp": "3.24.24.95", + "GLibSharp": "3.24.24.95", + "GdkSharp": "3.24.24.95", + "GioSharp": "3.24.24.95", + "PangoSharp": "3.24.24.95" + }, + "compile": { + "lib/net6.0/GtkSharp.dll": {} + }, + "runtime": { + "lib/net6.0/GtkSharp.dll": {} + }, + "build": { + "build/GtkSharp.targets": {} + } + }, + "HtmlAgilityPack/1.11.71": { + "type": "package", + "compile": { + "lib/netstandard2.0/HtmlAgilityPack.dll": { + "related": ".deps.json;.pdb;.xml" + } + }, + "runtime": { + "lib/netstandard2.0/HtmlAgilityPack.dll": { + "related": ".deps.json;.pdb;.xml" + } + } + }, + "PangoSharp/3.24.24.95": { + "type": "package", + "dependencies": { + "CairoSharp": "3.24.24.95", + "GLibSharp": "3.24.24.95" + }, + "compile": { + "lib/net6.0/PangoSharp.dll": {} + }, + "runtime": { + "lib/net6.0/PangoSharp.dll": {} + } + } + } + }, + "libraries": { + "AtkSharp/3.24.24.95": { + "sha512": "LnSfsc0y11gfzczZj5bnpwcFkXFZuVTSSd92ML/FcHIM7FU+cAfm1UkAonv5BdwTRhzDbNDE39vihao/k75sUA==", + "type": "package", + "path": "atksharp/3.24.24.95", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "atksharp.3.24.24.95.nupkg.sha512", + "atksharp.nuspec", + "lib/net6.0/AtkSharp.dll", + "lib/netstandard2.0/AtkSharp.dll" + ] + }, + "CairoSharp/3.24.24.95": { + "sha512": "EZ9KT3pwVAol35XbZW0Uwdg2LqhDvPnWdhqIrsedhDx+Omnu56hLzxh8mZGqmQvEwJE8Opbda4w9CqDtXbX6Vw==", + "type": "package", + "path": "cairosharp/3.24.24.95", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "cairosharp.3.24.24.95.nupkg.sha512", + "cairosharp.nuspec", + "lib/net6.0/CairoSharp.dll", + "lib/netstandard2.0/CairoSharp.dll" + ] + }, + "GdkSharp/3.24.24.95": { + "sha512": "rABpIGkxr8lOdyhEmrKXzjih3z3932kjqUmm5qaQhWVSvu9YepEk3J1FApgnKCW/EWEzlerzxnJArsyOlgMsZQ==", + "type": "package", + "path": "gdksharp/3.24.24.95", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "gdksharp.3.24.24.95.nupkg.sha512", + "gdksharp.nuspec", + "lib/net6.0/GdkSharp.dll", + "lib/netstandard2.0/GdkSharp.dll" + ] + }, + "GioSharp/3.24.24.95": { + "sha512": "avYEDFlYgbogb+Y7ZhIXQpyJfL83bnPpBKY642YEW9PQ+pRK3qf2k0opvd5oHccXfByj6kAQjmRUSIS0pj19Fg==", + "type": "package", + "path": "giosharp/3.24.24.95", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "giosharp.3.24.24.95.nupkg.sha512", + "giosharp.nuspec", + "lib/net6.0/GioSharp.dll", + "lib/netstandard2.0/GioSharp.dll" + ] + }, + "GLibSharp/3.24.24.95": { + "sha512": "1viZRMVjddf2HUCW7WDXT47rHssteHkAOimXQ2/pI8oGrPGNFuuw5MbX8BOIy73hCWVqo7JEMONv3z32OrCoCQ==", + "type": "package", + "path": "glibsharp/3.24.24.95", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "glibsharp.3.24.24.95.nupkg.sha512", + "glibsharp.nuspec", + "lib/net6.0/GLibSharp.dll", + "lib/netstandard2.0/GLibSharp.dll" + ] + }, + "GtkSharp/3.24.24.95": { + "sha512": "RRUY45hAa5gsMcadvVjcLUzMjVtmuHSYTcIwM6j8LNgKhzFFHk69qM1D5ULfGxaWmVjicqNWiFtOtk8WsvPqaQ==", + "type": "package", + "path": "gtksharp/3.24.24.95", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "build/GtkSharp.targets", + "gtksharp.3.24.24.95.nupkg.sha512", + "gtksharp.nuspec", + "lib/net6.0/GtkSharp.dll", + "lib/netstandard2.0/GtkSharp.dll" + ] + }, + "HtmlAgilityPack/1.11.71": { + "sha512": "HlEThQBnob4/29DIiyrPSYlGXXSZUtOH7571PRev+yu8FW8n5pdxqHyun+PMm17cp3ovCrxFhXedC+1HUSdRMA==", + "type": "package", + "path": "htmlagilitypack/1.11.71", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "htmlagilitypack.1.11.71.nupkg.sha512", + "htmlagilitypack.nuspec", + "lib/Net35/HtmlAgilityPack.dll", + "lib/Net35/HtmlAgilityPack.pdb", + "lib/Net35/HtmlAgilityPack.xml", + "lib/Net40-client/HtmlAgilityPack.dll", + "lib/Net40-client/HtmlAgilityPack.pdb", + "lib/Net40-client/HtmlAgilityPack.xml", + "lib/Net40/HtmlAgilityPack.XML", + "lib/Net40/HtmlAgilityPack.dll", + "lib/Net40/HtmlAgilityPack.pdb", + "lib/Net45/HtmlAgilityPack.XML", + "lib/Net45/HtmlAgilityPack.dll", + "lib/Net45/HtmlAgilityPack.pdb", + "lib/NetCore45/HtmlAgilityPack.XML", + "lib/NetCore45/HtmlAgilityPack.dll", + "lib/NetCore45/HtmlAgilityPack.pdb", + "lib/netstandard1.3/HtmlAgilityPack.deps.json", + "lib/netstandard1.3/HtmlAgilityPack.dll", + "lib/netstandard1.3/HtmlAgilityPack.pdb", + "lib/netstandard1.3/HtmlAgilityPack.xml", + "lib/netstandard1.6/HtmlAgilityPack.deps.json", + "lib/netstandard1.6/HtmlAgilityPack.dll", + "lib/netstandard1.6/HtmlAgilityPack.pdb", + "lib/netstandard1.6/HtmlAgilityPack.xml", + "lib/netstandard2.0/HtmlAgilityPack.deps.json", + "lib/netstandard2.0/HtmlAgilityPack.dll", + "lib/netstandard2.0/HtmlAgilityPack.pdb", + "lib/netstandard2.0/HtmlAgilityPack.xml", + "lib/portable-net45+netcore45+wp8+MonoAndroid+MonoTouch/HtmlAgilityPack.XML", + "lib/portable-net45+netcore45+wp8+MonoAndroid+MonoTouch/HtmlAgilityPack.dll", + "lib/portable-net45+netcore45+wp8+MonoAndroid+MonoTouch/HtmlAgilityPack.pdb", + "lib/portable-net45+netcore45+wpa81+wp8+MonoAndroid+MonoTouch/HtmlAgilityPack.XML", + "lib/portable-net45+netcore45+wpa81+wp8+MonoAndroid+MonoTouch/HtmlAgilityPack.dll", + "lib/portable-net45+netcore45+wpa81+wp8+MonoAndroid+MonoTouch/HtmlAgilityPack.pdb", + "lib/uap10.0/HtmlAgilityPack.XML", + "lib/uap10.0/HtmlAgilityPack.dll", + "lib/uap10.0/HtmlAgilityPack.pdb", + "lib/uap10.0/HtmlAgilityPack.pri", + "readme.md" + ] + }, + "PangoSharp/3.24.24.95": { + "sha512": "H7JeyEvLsgvsbamGpRgoNtdvzPiGwwsUuoeTobN1C/JRjw1J8Snw0yf2WBr7CKx5GLwbrwpQYOb7N/HD17ME8A==", + "type": "package", + "path": "pangosharp/3.24.24.95", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/net6.0/PangoSharp.dll", + "lib/netstandard2.0/PangoSharp.dll", + "pangosharp.3.24.24.95.nupkg.sha512", + "pangosharp.nuspec" + ] + } + }, + "projectFileDependencyGroups": { + "net8.0": [ + "GtkSharp >= 3.24.24.95", + "HtmlAgilityPack >= 1.11.71" + ] + }, + "packageFolders": { + "/home/retoor/.nuget/packages/": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/home/retoor/projects/desk/desk.csproj", + "projectName": "desk", + "projectPath": "/home/retoor/projects/desk/desk.csproj", + "packagesPath": "/home/retoor/.nuget/packages/", + "outputPath": "/home/retoor/projects/desk/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/home/retoor/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "dependencies": { + "GtkSharp": { + "target": "Package", + "version": "[3.24.24.95, )" + }, + "HtmlAgilityPack": { + "target": "Package", + "version": "[1.11.71, )" + } + }, + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/lib/dotnet/sdk/8.0.111/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/obj/project.nuget.cache b/obj/project.nuget.cache new file mode 100644 index 0000000..81a2524 --- /dev/null +++ b/obj/project.nuget.cache @@ -0,0 +1,17 @@ +{ + "version": 2, + "dgSpecHash": "MV3MR7/UyQhm11UW5VbUAMKTiXj1RjoJoLKmJFPg7VAf4nJIcW7hYDY3/CoteEPgWN8D0Ai3U7dybrLZzicU9A==", + "success": true, + "projectFilePath": "/home/retoor/projects/desk/desk.csproj", + "expectedPackageFiles": [ + "/home/retoor/.nuget/packages/atksharp/3.24.24.95/atksharp.3.24.24.95.nupkg.sha512", + "/home/retoor/.nuget/packages/cairosharp/3.24.24.95/cairosharp.3.24.24.95.nupkg.sha512", + "/home/retoor/.nuget/packages/gdksharp/3.24.24.95/gdksharp.3.24.24.95.nupkg.sha512", + "/home/retoor/.nuget/packages/giosharp/3.24.24.95/giosharp.3.24.24.95.nupkg.sha512", + "/home/retoor/.nuget/packages/glibsharp/3.24.24.95/glibsharp.3.24.24.95.nupkg.sha512", + "/home/retoor/.nuget/packages/gtksharp/3.24.24.95/gtksharp.3.24.24.95.nupkg.sha512", + "/home/retoor/.nuget/packages/htmlagilitypack/1.11.71/htmlagilitypack.1.11.71.nupkg.sha512", + "/home/retoor/.nuget/packages/pangosharp/3.24.24.95/pangosharp.3.24.24.95.nupkg.sha512" + ], + "logs": [] +} \ No newline at end of file diff --git a/obj/release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/obj/release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..2217181 --- /dev/null +++ b/obj/release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/obj/release/net8.0/apphost b/obj/release/net8.0/apphost new file mode 100755 index 0000000..c137974 Binary files /dev/null and b/obj/release/net8.0/apphost differ diff --git a/obj/release/net8.0/desk.AssemblyInfo.cs b/obj/release/net8.0/desk.AssemblyInfo.cs new file mode 100644 index 0000000..00b777c --- /dev/null +++ b/obj/release/net8.0/desk.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("desk")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("release")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("desk")] +[assembly: System.Reflection.AssemblyTitleAttribute("desk")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/obj/release/net8.0/desk.AssemblyInfoInputs.cache b/obj/release/net8.0/desk.AssemblyInfoInputs.cache new file mode 100644 index 0000000..35e8ea8 --- /dev/null +++ b/obj/release/net8.0/desk.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +bea4eba8bd06fd7897980fa159d607b1a3ef22d4973f09232470114abd781555 diff --git a/obj/release/net8.0/desk.GeneratedMSBuildEditorConfig.editorconfig b/obj/release/net8.0/desk.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..3d5707b --- /dev/null +++ b/obj/release/net8.0/desk.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,13 @@ +is_global = true +build_property.TargetFramework = net8.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = desk +build_property.ProjectDir = /home/retoor/projects/desk/ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/obj/release/net8.0/desk.GlobalUsings.g.cs b/obj/release/net8.0/desk.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/obj/release/net8.0/desk.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/obj/release/net8.0/desk.assets.cache b/obj/release/net8.0/desk.assets.cache new file mode 100644 index 0000000..bc1dc2f Binary files /dev/null and b/obj/release/net8.0/desk.assets.cache differ diff --git a/obj/release/net8.0/desk.csproj.AssemblyReference.cache b/obj/release/net8.0/desk.csproj.AssemblyReference.cache new file mode 100644 index 0000000..cb1a2c2 Binary files /dev/null and b/obj/release/net8.0/desk.csproj.AssemblyReference.cache differ diff --git a/obj/release/net8.0/desk.csproj.CopyComplete b/obj/release/net8.0/desk.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/obj/release/net8.0/desk.csproj.CoreCompileInputs.cache b/obj/release/net8.0/desk.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..0a1e33f --- /dev/null +++ b/obj/release/net8.0/desk.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +561daeb40c498e1a4438291647e57992b00500ffa29b51d5aa51d2871da498ea diff --git a/obj/release/net8.0/desk.csproj.FileListAbsolute.txt b/obj/release/net8.0/desk.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..219c89d --- /dev/null +++ b/obj/release/net8.0/desk.csproj.FileListAbsolute.txt @@ -0,0 +1,23 @@ +/home/retoor/projects/desk/bin/release/net8.0/desk +/home/retoor/projects/desk/bin/release/net8.0/desk.deps.json +/home/retoor/projects/desk/bin/release/net8.0/desk.runtimeconfig.json +/home/retoor/projects/desk/bin/release/net8.0/desk.dll +/home/retoor/projects/desk/bin/release/net8.0/desk.pdb +/home/retoor/projects/desk/bin/release/net8.0/AtkSharp.dll +/home/retoor/projects/desk/bin/release/net8.0/CairoSharp.dll +/home/retoor/projects/desk/bin/release/net8.0/GdkSharp.dll +/home/retoor/projects/desk/bin/release/net8.0/GioSharp.dll +/home/retoor/projects/desk/bin/release/net8.0/GLibSharp.dll +/home/retoor/projects/desk/bin/release/net8.0/GtkSharp.dll +/home/retoor/projects/desk/bin/release/net8.0/PangoSharp.dll +/home/retoor/projects/desk/obj/release/net8.0/desk.csproj.AssemblyReference.cache +/home/retoor/projects/desk/obj/release/net8.0/desk.GeneratedMSBuildEditorConfig.editorconfig +/home/retoor/projects/desk/obj/release/net8.0/desk.AssemblyInfoInputs.cache +/home/retoor/projects/desk/obj/release/net8.0/desk.AssemblyInfo.cs +/home/retoor/projects/desk/obj/release/net8.0/desk.csproj.CoreCompileInputs.cache +/home/retoor/projects/desk/obj/release/net8.0/desk.csproj.CopyComplete +/home/retoor/projects/desk/obj/release/net8.0/desk.dll +/home/retoor/projects/desk/obj/release/net8.0/refint/desk.dll +/home/retoor/projects/desk/obj/release/net8.0/desk.pdb +/home/retoor/projects/desk/obj/release/net8.0/desk.genruntimeconfig.cache +/home/retoor/projects/desk/obj/release/net8.0/ref/desk.dll diff --git a/obj/release/net8.0/desk.dll b/obj/release/net8.0/desk.dll new file mode 100644 index 0000000..6fcf1a3 Binary files /dev/null and b/obj/release/net8.0/desk.dll differ diff --git a/obj/release/net8.0/desk.genruntimeconfig.cache b/obj/release/net8.0/desk.genruntimeconfig.cache new file mode 100644 index 0000000..41ca2bb --- /dev/null +++ b/obj/release/net8.0/desk.genruntimeconfig.cache @@ -0,0 +1 @@ +674dcf039e69781439178d85715b1c0946ca3a6f7e1db4479a1b9c9cf5a4a742 diff --git a/obj/release/net8.0/desk.pdb b/obj/release/net8.0/desk.pdb new file mode 100644 index 0000000..4b08088 Binary files /dev/null and b/obj/release/net8.0/desk.pdb differ diff --git a/obj/release/net8.0/ref/desk.dll b/obj/release/net8.0/ref/desk.dll new file mode 100644 index 0000000..33fd6ad Binary files /dev/null and b/obj/release/net8.0/ref/desk.dll differ diff --git a/obj/release/net8.0/refint/desk.dll b/obj/release/net8.0/refint/desk.dll new file mode 100644 index 0000000..33fd6ad Binary files /dev/null and b/obj/release/net8.0/refint/desk.dll differ