예제 #1
0
 public static void Init(SDConfig sdConfig, NatsRPCClientConfig rpcClientConfig, NatsRPCServerConfig rpcServerConfig, Server server)
 {
     Logger.Info("initializing pitaya module with nats");
     InitDefault(sdConfig, rpcClientConfig, rpcServerConfig, server);
     SetRPCCbs();
 }
예제 #2
0
 static extern bool SetRPCNatsInternal(NatsRPCClientConfig rpcClientConfig, NatsRPCServerConfig rpcServerConfig);
예제 #3
0
 public static void InitDefault(SDConfig sdConfig, NatsRPCClientConfig rpcClientConfig, NatsRPCServerConfig rpcServerConfig, Server server)
 {
     if (!InitServerInternal(server) || !SetSDEtcdInternal(sdConfig) || !SetRPCNatsInternal(rpcClientConfig, rpcServerConfig) || !StartInternal())
     {
         throw new Exception("failed to initialize pitaya go module");
     }
 }