Ejemplo n.º 1
0
 private protected Rig(Settings.Rig Config)
 {
     this.Config      = Config;
     Config.WachStop += () =>
                        Task.Run(() => WachingStop());
     Config.IPChanged += () =>
                         Task.Run(() => WachingReset());
 }
Ejemplo n.º 2
0
 public void RemoveLinks()
 {
     InformReceived = null;
     Rig            = null;
     Config         = null;
     HiveWach       = false;
     HiveWachdog    = false;
 }
Ejemplo n.º 3
0
        private void SetRig(Settings.Rig R)
        {
            RigName = R.Name; IP = R.IP;

            RMaxTemp = R.MaxTemp != null ? R.MaxTemp.Value : -1;
            RMinTemp = R.MinTemp != null ? R.MinTemp.Value : -1;

            MaxTempCurr = R.MaxTemp != null ? R.MaxTemp.Value : Settings.GenSets.TotalMaxTemp;
            MinTempCurr = R.MinTemp != null ? R.MinTemp.Value : Settings.GenSets.TotalMinTemp;
        }
Ejemplo n.º 4
0
        public static Rig GetRig(Settings.Rig Config)
        {
            if (Config == null)
            {
                return(null);
            }
            switch (Config.Type)
            {
            case "OMineGuard": return(new OMineGuard(Config));

            case "HiveOS": return(new HiveOS(Config));

            default: return(null);
            }
        }
Ejemplo n.º 5
0
 public OMineGuard(Settings.Rig Config) : base(Config)
 {
 }
Ejemplo n.º 6
0
 public HiveOSWacher(HiveOS Rig, Settings.Rig Config)
 {
     this.Rig    = Rig;
     this.Config = Config;
 }
Ejemplo n.º 7
0
 public HiveOS(Settings.Rig Config) : base(Config)
 {
 }