cyanfish / grpc-dotnet-namedpipes

Named pipe transport for gRPC in C#/.NET
Apache License 2.0
183 stars 47 forks source link

System.NotSupportedException when reading ServerCallContext.Peer #37

Closed LAB02-Admin closed 11 months ago

LAB02-Admin commented 2 years ago

I'm trying to get the ServerCallContext.Peer value of an incoming RPC request, but it throws an System.NotSupportedException.

Is there another way to get the info of the connecting peer? The connection itself works fine.

I'm using .NET 6

cyanfish commented 11 months ago

This should be fixed in 2.1.0. Specifically it will return a string in the form "net.pipe://localhost/pid/12345" (where 12345 is the process id).