Пример #1
0
 public static void Init(SDConfig sdConfig, GrpcRPCClientConfig rpcClientConfig, GrpcRPCServerConfig rpcServerConfig, Server server)
 {
     Logger.Info("initializing pitaya module with grpc");
     InitGrpc(sdConfig, rpcClientConfig, rpcServerConfig, server);
     SetRPCCbs();
 }
Пример #2
0
 static extern bool SetRPCGrpcInternal(GrpcRPCClientConfig rpcClientConfig, GrpcRPCServerConfig rpcServerConfig);
Пример #3
0
 public static void InitGrpc(SDConfig sdConfig, GrpcRPCClientConfig rpcClientConfig, GrpcRPCServerConfig rpcServerConfig, Server server)
 {
     if (!InitServerInternal(server) || !SetSDEtcdInternal(sdConfig) || !SetRPCGrpcInternal(rpcClientConfig, rpcServerConfig) || !StartInternal())
     {
         throw new Exception("failed to initialize pitaya go module");
     }
 }