public static void GetGrpcMethods(string serviceName, Type serviceType, IGrpcMarshallerFactory marshallerFactory) { foreach (GrpcMethodHandlerInfo handler in GrpcReflection.EnumerateServiceMethods(serviceName, serviceType, marshallerFactory)) { Handers.AddOrUpdate(handler.GetHashString(), handler); InnerLogger.Log(LoggerLevel.Debug, handler.GetHashString()); } }
public GrpcMethodHandlerInfo(string serviceName, MethodType methodType, Type requestType, Type responseType, MethodInfo handler, IGrpcMarshallerFactory marshallerFactory) { m_MethodType = methodType; m_RequestType = requestType; m_ResponseType = responseType; m_Handler = handler; m_ServiceName = serviceName; m_Method = GrpcReflection.CreateMethod(serviceName, this, marshallerFactory); // var srvMethod = new GrpcServiceMethod(method, requestType, responseType); }