NiceHashMiner.Miners.Grouping.GroupMiner.Start C# (CSharp) Method

Start() public method

public Start ( string miningLocation, string btcAdress, string worker ) : void
miningLocation string
btcAdress string
worker string
return void
        public void Start(string miningLocation, string btcAdress, string worker)
        {
            if(Miner.IsRunning) {
                return;
            }
            // Wait before new start
            System.Threading.Thread.Sleep(ConfigManager.GeneralConfig.MinerRestartDelayMS);

            string name = Globals.NiceHashData[AlgorithmType].name;
            int port = Globals.NiceHashData[AlgorithmType].port;
            if (AlgorithmType == AlgorithmType.Equihash) {
                if (Miner.IsNHLocked) {
                    Miner.Start(miningLocation, btcAdress, worker);
                } else {
                    Miner.Start(
                    name
                    + "." + miningLocation
                    + ".nicehash.com:"
                    + port, btcAdress, worker);
                }
            } else {
                Miner.Start(
                "stratum+tcp://"
                + name
                + "." + miningLocation
                + ".nicehash.com:"
                + port, btcAdress, worker);
            }
        }