move a bunch of stuff into subfolders

This commit is contained in:
Vinzenz Schroeter 2024-04-07 11:19:14 +02:00
commit 151cad4cee

View file

@ -1,20 +0,0 @@
using System.Net.Sockets;
using Microsoft.Extensions.Options;
namespace TanksServer;
internal class ServicePointDisplay(IOptions<ServicePointDisplayConfiguration> options)
{
private readonly UdpClient _udpClient = new(options.Value.Hostname, options.Value.Port);
public ValueTask<int> Send(DisplayPixelBuffer buffer)
{
return _udpClient.SendAsync(buffer.Data);
}
}
internal class ServicePointDisplayConfiguration
{
public string Hostname { get; set; } = string.Empty;
public int Port { get; set; }
}