tesses.webserver/Tesses.WebServer.Console/Program.cs

15 lines
447 B
C#
Raw Normal View History

2022-04-02 18:59:12 +00:00
namespace Tesses.WebServer.ConsoleApp
{
class MainClass
{
public static void Main(string[] args)
{
var ip=System.Net.IPAddress.Any;
StaticServer server = new StaticServer("/home/ddlovato/Videos/");
HttpServerListener s = new HttpServerListener(new System.Net.IPEndPoint(ip, 24240),server);
s.ListenAsync(System.Threading.CancellationToken.None).Wait();
}
}
}