|
1
1
在这种情况下,gRPC记录器构造函数签名只是从ASP中提取DI。NET Core,所以这里没有什么是特定于gRPC的。这里的根本问题很简单:“如何在ASP.NET Core中使用autofac?”-在这种情况下: https://autofaccn.readthedocs.io/en/latest/integration/aspnetcore.html ? (注意不同版本之间的指南有所不同;如果您使用的是最新版本,请向下滚动到“3.0+”- https://autofaccn.readthedocs.io/en/latest/integration/aspnetcore.html#asp-net-core-3-0-and-generic-hosting ) |