using Grpc.Core; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Text; namespace TEAMModelOS.SDK.Module.GrpcServer.Model { public class ProtoInfo { /// /// grpc服务方法信息 用于生成proto文件 /// public static List Methods { get; internal set; } = new List(); } /// /// 注册到grpc的服务方法信息 /// public class ProtoMethodInfo { public string ServiceName { get; set; } public string MethodName { get; set; } public string RequestName { get; set; } public string ResponseName { get; set; } public string FullName { get { return "/" + ServiceName + "/" + MethodName; } } public MethodType MethodType { get; set; } public static ConcurrentDictionary Protos = new ConcurrentDictionary(); } }