Barebone.Routing:用 C# 为 .NET Mono 编写的 Owin Router

时间:2024-07-06 15:49:24
【文件属性】:

文件名称:Barebone.Routing:用 C# 为 .NET Mono 编写的 Owin Router

文件大小:248KB

文件格式:ZIP

更新时间:2024-07-06 15:49:24

C#

Barebone.Router - 用于 .NET/Mono 的 OWIN 路由器 using OwinEnv = IDictionary < string>; public class SimpleExample { public Task ProcessRequest ( OwinEnv env ){ var router = new Router (); var route = new Route ( " GET " , " /products/{id}-{name}.html " , InfoAppFunc ); router . AddRoute ( route ); var result = router . Resolve ( env ); if ( result . Success ) { var id = result .


【文件预览】:
Barebone.Routing-master
----build.sh(89B)
----LICENSE.txt(1KB)
----src()
--------Barebone.Router.Tests()
--------Barebone.Router.Fluent.Tests()
--------Barebone.Router()
--------Barebone.Router.Fluent()
--------.gitignore(16B)
--------Barebone.Router.sln(2KB)
----lib()
--------xunit.1.9.1()
----tools()
--------xunit()
----test.sh(293B)
----README.md(5KB)
----.gitignore(64B)

网友评论