static void Main(string[] args) { mApiServer = new BeetleX.FastHttpApi.HttpApiServer(); mApiServer.Debug(); mApiServer.Register(typeof(Program).Assembly); mApiServer.Open(); Console.Write(mApiServer.BaseServer); Console.Read(); }
static void Main(string[] args) { mApiServer = new BeetleX.FastHttpApi.HttpApiServer(); mApiServer.ServerConfig.LogLevel = BeetleX.EventArgs.LogType.Trace; mApiServer.ServerConfig.LogToConsole = true; mApiServer.Debug(); mApiServer.Register(typeof(Program).Assembly); mApiServer.Open(); Console.Write(mApiServer.BaseServer); Console.Read(); }
static void Main(string[] args) { mApiServer = new BeetleX.FastHttpApi.HttpApiServer(); mApiServer.Options.LogLevel = BeetleX.EventArgs.LogType.Debug; mApiServer.Options.LogToConsole = true; mApiServer.Debug(); mApiServer.Register(typeof(Program).Assembly); mApiServer.Open(); //mApiServer.WebSocketReceive = (o, e) => //{ // Console.WriteLine(e.Frame.Body); // var freame = e.CreateFrame($"{DateTime.Now}" + e.Frame.Body.ToString()); // e.Response(freame); //}; //mApiServer.WebSocketConnect = (o, e) => { // //e.Request.Header // //e.Request.Cookies // e.Cancel = true; //}; Console.Write(mApiServer.BaseServer); Console.Read(); }