Why Exolix? Exolix is a C# framework that allows you to develop API applications without needing too many external dependencies. Exolix keeps its consistancy to eliminate breaking changes!
This example will show how to create a server with exolix!
using Exolix.Terminal;
class MainFile
{
public static void Main(string[] args)
{
logger.info("Hello, Exolix!");
// configure Exolix API host server settings
ApiHost server = new ApiHost(new ApiHostSettings {
Port = 4040
});
server.OnReady(() =>
{
Logger.Success("Server is ready");
// Check for incomming connection to the server
server.OnOpen((con) =>
{
// code for when a connection is made (;
});
});
//run the server
server.Run();
}
}