Beispiel #1
0
 public static GrpcBaseHelper Instance()
 {
     if (_helper == null)
     {
         _helper = NestedHepler.Instace;
     }
     return(_helper);
 }
Beispiel #2
0
 public static GrpcBaseHelper Instance(bool Debug)
 {
     if (_helper == null)
     {
         _helper = NestedHepler.Instace;
     }
     _helper.debug = Debug;
     return(_helper);
 }
Beispiel #3
0
 public static GrpcBaseHelper Instance(string host, int port)
 {
     if (_helper == null)
     {
         _helper = NestedHepler.Instace;
     }
     _helper.Host = host;
     _helper.Port = port;
     return(_helper);
 }
Beispiel #4
0
 public GossipServiceClient(GrpcBaseHelper h, string logRootPath, string logName)
 {
     this.gossipClient = new GossipTask.GossipTaskClient(h.NewChannel());
     this.helper       = h;
     this.logPath      = logRootPath;
     if (String.IsNullOrEmpty(logName))
     {
         this.logPathName = logRootPath + System.IO.Path.DirectorySeparatorChar + "gossip.log";
     }
     else
     {
         this.logPathName = logRootPath + System.IO.Path.DirectorySeparatorChar + logName;
     }
 }