提交 25d43caa 编写于 作者: 若汝棋茗

更新demo

上级 5426dce5
......@@ -13,6 +13,7 @@ namespace WebApiServerApp
{
private static void Main(string[] args)
{
WebApiParserPlugin webApiParser=null;
HttpService service = new HttpService();
service.Setup(new TouchSocketConfig()
.UsePlugin()
......@@ -20,11 +21,13 @@ namespace WebApiServerApp
.ConfigureRpcStore(a =>
{
a.RegisterServer<Server>();//注册服务
})
.ConfigurePlugins(a=>
{
webApiParser= a.Add<WebApiParserPlugin>();
}))
.Start();
var webApiParser = service.AddPlugin<WebApiParserPlugin>();
Console.WriteLine("以下连接用于测试webApi");
Console.WriteLine($"使用:http://127.0.0.1:7789/Server/Sum?a=10&b=20");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册