Exemplo n.º 1
0
        /// <summary>
        /// The StartInitialize
        /// </summary>
        /// <param name="mainFormRatesComunication">The <see cref="IMainFormRatesComunication"/></param>
        /// <param name="miningLocation">The <see cref="string"/></param>
        /// <param name="worker">The <see cref="string"/></param>
        /// <param name="btcAddress">The <see cref="string"/></param>
        /// <returns>The <see cref="bool"/></returns>
        public static bool StartInitialize(IMainFormRatesComunication mainFormRatesComunication,
                                           string miningLocation, string worker, string btcAddress)
        {
            CurMiningSession = new MiningSession(ComputeDeviceManager.Avaliable.AllAvaliableDevices,
                                                 mainFormRatesComunication, miningLocation, worker, btcAddress);

            return(CurMiningSession.IsMiningEnabled);
        }
Exemplo n.º 2
0
 /// <summary>
 /// The StopAllMiners
 /// </summary>
 public static void StopAllMiners()
 {
     if (CurMiningSession != null)
     {
         CurMiningSession.StopAllMiners();
     }
     CurMiningSession = null;
 }