Self-Hosted
To just start XSockets in a Console Application is very easy. Install the nuget package into a console application and then add the code for starting the server. For configuration see the chapter 3.
This way of hosting is common during development.
Install-Package XSockets
using System;
using XSockets.Core.Common.Socket;
using XSockets.Core.Common.Utility.Serialization;
using XSockets.Plugin.Framework;
namespace MySample
{
class Program
{
static void Main(string[] args)
{
using (var container = Composable.GetExport<IXSocketServerContainer>())
{
container.Start();
Console.ReadLine();
}
}
}
}