Exemplo n.º 1
0
 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());
     }
 }
Exemplo n.º 2
0
 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);
 }