Example #1
0
        static void Main(string[] args)
        {
            var server = new WebApiServer("api");

            server.Start(8090);
            Console.ReadLine();
            server.Dispose();
        }
Example #2
0
 public void Start()
 {
     try
     {
         _webApi = new WebApiServer();
         _webApi.Start(Ip, Port);
         ConnectionEstablished(this, new EventArgs());
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
 }