Recreated project with project template

This commit is contained in:
2024-12-05 15:35:23 +01:00
parent 7659403dc8
commit 3392407890
76 changed files with 2020 additions and 2922 deletions

View File

@@ -0,0 +1,22 @@
using MoonCore.Attributes;
namespace MoonlightServers.ApiServer.Services;
[Singleton]
public class ExampleService
{
private readonly Random Random;
private readonly ILogger<ExampleService> Logger;
public ExampleService(ILogger<ExampleService> logger)
{
Logger = logger;
Random = new();
}
public async Task<int> GetValue()
{
Logger.LogInformation("Generating value");
return Random.Next(0, 10324);
}
}