public bool Init() { masterService = new MasterService("tcp://localhost:8080/Master"); coordinatorService = new CoordinatorService(masterService); //timestampService = new TimestampService(); debugService = new DebugService(masterService); return true; }
public static bool Init() { try { masterService = new MasterService("tcp://localhost:8080/Master"); coordinatorService = new CoordinatorService(masterService); //timestampService = new TimestampService(); debugService = new DebugService(masterService); } catch (Exception e) { Console.WriteLine(e.Message); return false; } return true; }