public void Register() { CorrectorConfigurations.Register(_corrector); GeneralConfigurations.Register(_general); SamplingConfigurations.Register(_sampling); SliceConfigurations.Register(_slice); MiscellaneousConfigurations.Register(_miscellaneous); }
public static void Initialize(string deviceName, int channel, double samplingRateInMHz, long recordLengthInM, double range) { if (_singleton != null) { throw new Exception("SamplingConfigs already init "); } _singleton = new SamplingConfigurations(deviceName, channel, samplingRateInMHz, recordLengthInM, range); }
public static void Register(SamplingConfigurations samplingConfigurations) { if (_singleton == null) { _singleton = samplingConfigurations; } else { ConfigsHolder.CopyTo(samplingConfigurations, _singleton); } }