最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

asp.net core - "Could not find bind method for service" message when using code-first grpc for .net - Stack Ov

programmeradmin3浏览0评论

When using the code-first method with protobuf-net.Grpc.AspNetCore, I see the following messages:

[15:13:07 INF] [HTTP] Starting grpc server...
[15:13:07 DBG] Could not find bind method for App.Services.TestService.
[15:13:08 INF] RPC services being provided by App.Services.TestService: 3

I'm not sure if the "Could not find bind method" debug message indicates a problem or not. It occurs when the statement endpoints.MapGrpcService<TestService>(); is run.

The service methods all appear to work as intended when called. Should I be concerned about this message?

When using the code-first method with protobuf-net.Grpc.AspNetCore, I see the following messages:

[15:13:07 INF] [HTTP] Starting grpc server...
[15:13:07 DBG] Could not find bind method for App.Services.TestService.
[15:13:08 INF] RPC services being provided by App.Services.TestService: 3

I'm not sure if the "Could not find bind method" debug message indicates a problem or not. It occurs when the statement endpoints.MapGrpcService<TestService>(); is run.

The service methods all appear to work as intended when called. Should I be concerned about this message?

Share Improve this question asked Jan 20 at 5:07 sparkplugsparkplug 1,3662 gold badges16 silver badges35 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

In my opinion, this is related with how code first works , I guess the debug info firstly check if the bind method is generated or not.

In the code-first model, services are registered without the traditional BindService method that is typically generated in the proto-first approach.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论