-
-
Notifications
You must be signed in to change notification settings - Fork 175
使用入门
Henry edited this page Sep 10, 2019
·
2 revisions
[Controller]
public class Home
{
/// <summary>
/// Hello Word
/// </summary>
/// <param name="name">string: you name</param>
/// <returns>string</returns>
public object Hello(string name)
{
return new { Hello = "hello " + name, Time = DateTime.Now };
}
}
static void Main(string[] args)
{
mApiServer = new BeetleX.FastHttpApi.HttpApiServer();
mApiServer.Option.SetDebug();
mApiServer.Register(typeof(Program).Assembly);
mApiServer.Open();
Console.Write(mApiServer.BaseServer);
Console.Read();
}
可以通过输出的日志看到服务监听的端口情况