diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..e0b3ac6 --- /dev/null +++ b/Program.cs @@ -0,0 +1,7 @@ +using imbelinvd; + +var builder = Host.CreateApplicationBuilder(args); +builder.Services.AddHostedService(); + +var host = builder.Build(); +host.Run(); diff --git a/Worker.cs b/Worker.cs new file mode 100644 index 0000000..a30a68e --- /dev/null +++ b/Worker.cs @@ -0,0 +1,16 @@ +namespace imbelinvd; + +public class Worker(ILogger logger) : BackgroundService +{ + protected override async Task ExecuteAsync(CancellationToken stoppingToken) + { + while (!stoppingToken.IsCancellationRequested) + { + if (logger.IsEnabled(LogLevel.Information)) + { + logger.LogInformation("Worker running at: {time}", DateTimeOffset.Now); + } + await Task.Delay(1000, stoppingToken); + } + } +} diff --git a/appsettings.Development.json b/appsettings.Development.json new file mode 100644 index 0000000..b2dcdb6 --- /dev/null +++ b/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.Hosting.Lifetime": "Information" + } + } +} diff --git a/appsettings.json b/appsettings.json new file mode 100644 index 0000000..b2dcdb6 --- /dev/null +++ b/appsettings.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.Hosting.Lifetime": "Information" + } + } +} diff --git a/assets/fonts/Cantarell-Bold.ttf b/assets/fonts/Cantarell-Bold.ttf new file mode 100644 index 0000000..bc2002e Binary files /dev/null and b/assets/fonts/Cantarell-Bold.ttf differ diff --git a/assets/fonts/Cantarell-BoldItalic.ttf b/assets/fonts/Cantarell-BoldItalic.ttf new file mode 100644 index 0000000..a0a1552 Binary files /dev/null and b/assets/fonts/Cantarell-BoldItalic.ttf differ diff --git a/assets/fonts/Cantarell-Italic.ttf b/assets/fonts/Cantarell-Italic.ttf new file mode 100644 index 0000000..37dc402 Binary files /dev/null and b/assets/fonts/Cantarell-Italic.ttf differ diff --git a/assets/fonts/Cantarell-Regular.ttf b/assets/fonts/Cantarell-Regular.ttf new file mode 100644 index 0000000..8a63054 Binary files /dev/null and b/assets/fonts/Cantarell-Regular.ttf differ diff --git a/imbelinvd.csproj b/imbelinvd.csproj new file mode 100644 index 0000000..ec0aaaf --- /dev/null +++ b/imbelinvd.csproj @@ -0,0 +1,15 @@ + + + + net10.0 + enable + enable + dotnet-imbelinvd-c4c24c29-eb17-4e25-b0b2-a57032f07845 + + + + + + + +