如何实现 IApplicationBuilder?

how to implement IApplicationBuilder?

我浏览了 中给出的文档: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware

我知道 IApplicationBuilder 让我们能够在管道中探索不同的功能。

是否可以在框架中看到IApplicationBuilder的实现?

如果是,我可以编写自己的 IApplicationBuilder 版本并覆盖管道吗?

You can see the implementation of IAppbuilder here

不确定为什么要实施 IAppbuilder.You 通常不必这样做,除非您想创建一个类似于 OWIN specification 的新服务器实施。

OWIN is a specification 对于 OWIN 实现,您可以查看这些项目中的任何一个

如果您想添加任何服务器功能实现,您可以使用 Server Feaure 来实现。