Class GrpcMethodAttribute
Maps a controller method to the name gRPC callers dispatch on (dispatch-method). Optional:
without it the C# method name is the wire name, which means renaming the method breaks every client.
A gRPC facade publishes its contract outside the codebase, so pin the name here and refactor freely.
Mirrors , which does the same for SOAP operations.
[GrpcMethod("ListUsers")]
public Task<UserPage> List(int page) => ...;
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class GrpcMethodAttribute : Attribute