你的位置: 码友网首页 / 资讯源列表 / Inject a service into a System.Text.Json converter

关于[Inject a service into a System.Text.Json converter]的摘要:

Most JSON converters are fairly simple, and typically self-contained. But once in a while, you need to do something a little more complex in a converter, and you end up needing to call a service. However, there’s no built-in dependency injection in System.Text.Json converters… How can you access the service you need?

原文地址: https://thomaslevesque.com/2020/08/31/inject-service-into-system-text-json-converter/

收录时间: 2020-09-02 浏览量: 1378 分类: .NET

| 0 收藏 | 0