MoneroMiner is an assembly/ library to run a monero miner in .Net. The assembly was written and tested in .Net 5.0.
IMiner miner = new Miner();
miner.RunMiner("stratum+tcp://xmr.pool.minergate.com:45560", "rsaUGDSAQIF_UWRTGWUAFSAdshz8fw7wgfh", "2");
miner.Exit();
See the method options below:
/// <summary>
/// The method to run the miner.
/// </summary>
/// <param name="poolAddress">The pool address, something like stratum+tcp://xmr.pool.minergate.com:45560.</param>
/// <param name="xmrAddress">The wallet address.</param>
/// <param name="threads">Number of threads.</param>
// ReSharper disable once UnusedMember.Global
void RunMiner(string poolAddress, string xmrAddress, string threads);
/// <summary>
/// Exits/ kills all miner processes.
/// </summary>
// ReSharper disable once UnusedMember.Global
void Exit();
This project is based on monerospelunker.
See the Changelog.