public CommandMiner(string _nameCommand, Ferma _ferma, string _nameMiner) : base(_nameCommand, _ferma) { nameCommand = _nameCommand; ferma = _ferma; nameMiner = _nameMiner; }
public TcpClient(Ferma _ferma) { ferma = _ferma; port = ferma.port; IPaddrServer = ferma.IPaddrServer; TcpWork = new Task(ReciveCommand); TcpWork.Start(); //sendConnect = new Task(SendConnect); //checkConnect = new Task(CheckConnect); //sendConnect.Start(); //checkConnect.Start(); }
static void Main(string[] args) { Ferma ferma = new Ferma(Environment.MachineName, "setting_ferma.xml"); ferma.InitVideoCard(); ferma.getHardwareInformation.Start(); ferma.executeCommand.Start(); ferma.send.Start(); ferma.StartCurrentMiner(firstStart: true); while (true) { Thread.Sleep(100); } }
public ModbusTCP(Ferma _ferma, string IPaddress) { ferma = _ferma; this.IPaddress = IPaddress; isListen = false; }
public CommandTemp(string _name, Ferma _ferma) : base(_name, _ferma) { nameCommand = _name; ferma = _ferma; }
public Command(string _name, Ferma _ferma) { nameCommand = _name; ferma = _ferma; }