grpc / grpc/grpc-dotnet

split method in ServerCallContext to service and method

Open
#2,477 1 comment 2 reactions 0 assignees View on GitHub
question
Dominant language
C#
Stars
4.5k
Forks
836
Avg merge
6d 3h
Merged PRs (30d)
7

Description

Now if you try access to method name from context you will see only full name and no way to get access separately to Name and ServiceceName fields, only through access private filed _method (part of JsonTranscodingServerCallContext)
https://github.com/dotnet/aspnetcore/blob/98c4546ddccfe2f62c4dc239fabd0c92848b255d/src/Grpc/JsonTranscoding/src/Microsoft.AspNetCore.Grpc.JsonTranscoding/Internal/JsonTranscodingServerCallContext.cs#L23

Is it possible to make _method public?

Screenshot 2024-07-03 at 10 54 47 AM

Contributor guide

Open the contributing guide

Research direction

Read src/Grpc/JsonTranscoding/src/Microsoft.AspNetCore.Grpc.JsonTranscoding/Internal/JsonTranscodingServerCallContext.cs at the referenced _method field, then inspect how ServerCallContext exposes method information. Done means callers can access the service and method names separately through a supported API rather than the private field.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend-api-design
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.