C# Class NiceHashMiner.Miners.MiningSession

Show file Open project: nicehash/NiceHashMiner Class Usage Examples

Private Properties

Property Type Description
CalcGroupedDevicesKey string
CheckIfProfitable bool
CheckIfShouldMine bool
GetMinerPairAlgorithmType AlgorithmType
InternetCheckTimer_Tick void
PreventSleepTimer_Tick void

Public Methods

Method Description
GetActiveMinersGroup ( ) : string
GetTotalRate ( ) : double
MinerStatsCheck ( NiceHashSMA>.Dictionary NiceHashData ) : void
MiningSession ( List devices, IMainFormRatesComunication mainFormRatesComunication, string miningLocation, string worker, string btcAdress ) : System
StopAllMiners ( ) : void
StopAllMinersNonProfitable ( ) : void
SwichMostProfitableGroupUpMethod ( NiceHashSMA>.Dictionary NiceHashData, bool log = true ) : void

Private Methods

Method Description
CalcGroupedDevicesKey ( SortedSet group ) : string
CheckIfProfitable ( double CurrentProfit, bool log = true ) : bool
CheckIfShouldMine ( double CurrentProfit, bool log = true ) : bool
GetMinerPairAlgorithmType ( List miningPairs ) : AlgorithmType
InternetCheckTimer_Tick ( object sender, EventArgs e ) : void
PreventSleepTimer_Tick ( object sender, System.Timers.ElapsedEventArgs e ) : void

Method Details

GetActiveMinersGroup() public method

public GetActiveMinersGroup ( ) : string
return string

GetTotalRate() public method

public GetTotalRate ( ) : double
return double

MinerStatsCheck() public method

public MinerStatsCheck ( NiceHashSMA>.Dictionary NiceHashData ) : void
NiceHashData NiceHashSMA>.Dictionary
return void

MiningSession() public method

public MiningSession ( List devices, IMainFormRatesComunication mainFormRatesComunication, string miningLocation, string worker, string btcAdress ) : System
devices List
mainFormRatesComunication IMainFormRatesComunication
miningLocation string
worker string
btcAdress string
return System

StopAllMiners() public method

public StopAllMiners ( ) : void
return void

StopAllMinersNonProfitable() public method

public StopAllMinersNonProfitable ( ) : void
return void

SwichMostProfitableGroupUpMethod() public method

public SwichMostProfitableGroupUpMethod ( NiceHashSMA>.Dictionary NiceHashData, bool log = true ) : void
NiceHashData NiceHashSMA>.Dictionary
log bool
return void