示例#1
0
 public static PulsarSystem GetInstance(PulsarClientConfigBuilder conf, Action logSetup = null, Config config = null)
 {
     if (_instance == null)
     {
         lock (Lock)
         {
             if (_instance == null)
             {
                 _instance = new PulsarSystem(conf, logSetup, config);
             }
         }
     }
     return(_instance);
 }
示例#2
0
 public static PulsarSystem GetInstance(ActorSystem actorSystem, PulsarClientConfigBuilder conf)
 {
     if (_instance == null)
     {
         lock (Lock)
         {
             if (_instance == null)
             {
                 _instance = new PulsarSystem(actorSystem, conf);
             }
         }
     }
     return(_instance);
 }