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