Replies: 1 comment 1 reply
-
There seems to be a bug. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/max-ieremenko/ServiceModel.Grpc/tree/master/Examples/grpc-dotnet-Interceptor/ServerSelfHost
ServerLoggerInterceptor works good in ServerAspNetHost, but does not work in ServerHost project.
I just debug the code the link above, didn't change any code.
Anyone else can debug these code?
I guess that the configure has some bug:
_server.Services.AddServiceModel(
serviceProvider,
options =>
{
options.ConfigureServiceDefinition = definition =>
{
var interceptor = options.ServiceProvider!.GetRequiredService();
return definition.Intercept(interceptor);
};
});
Beta Was this translation helpful? Give feedback.
All reactions