1.定义一个接口
2.实现该接口
3.注入服务
4.使用
5.使用扩展方法注册服务
Powered by: 博客园 Copyright © 2024 李sir Powered by .NET 8.0 on Kubernetes