Example #1
0
                bool configCheckRemote(string key, string value, Configuration.Options options)
                {
                    string name = value.ToLower();

                    if (graphic_.supportCheck(name))
                    {
                        IDataCollector dataCollector = graphic_.CollectorManager.getDataCollector(name, options, options[0]);
                        if (dataCollector != null)
                        {
                            graphic_.DataCollector = dataCollector;
                            graphic_.DataCollector.MaxUpdateInterval = graphic_.MaxDCUpdateInterval;
                            graphic_.DataAccessor = dataCollector.getDataAccessor(graphic_.DataAccessorName);
                            return(true);
                        }
                    }
                    else
                    {
                        graphic_.log(Console.LogType.Error, $"Check type {value} isn't supported");
                    }

                    return(false);
                }