chore: remove all .history/DrApi_20241215* placeholder example source files
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user