C# Class BitMaker.Utils.Tests.TestMinerHost

Miner host implementation for testing purposes.
Inheritance: IMinerContext
Show file Open project: wasabii/BitMaker Class Usage Examples

Public Methods

Method Description
GetWork ( IMiner miner, string comment ) : BitMaker.Miner.Work
ReportHashes ( IMiner plugin, long count ) : void
SubmitWork ( IMiner miner, BitMaker.Miner.Work work, string comment ) : bool
TestMinerHost ( Func onWork ) : System

Initializes a new instance.

Method Details

GetWork() public method

public GetWork ( IMiner miner, string comment ) : BitMaker.Miner.Work
miner IMiner
comment string
return BitMaker.Miner.Work

ReportHashes() public method

public ReportHashes ( IMiner plugin, long count ) : void
plugin IMiner
count long
return void

SubmitWork() public method

public SubmitWork ( IMiner miner, BitMaker.Miner.Work work, string comment ) : bool
miner IMiner
work BitMaker.Miner.Work
comment string
return bool

TestMinerHost() public method

Initializes a new instance.
public TestMinerHost ( Func onWork ) : System
onWork Func
return System