Esempio n. 1
0
        public async Task UpdateOrDefaultAsync(CoordinatorRoundConfig config, bool toFile)
        {
            Denomination = config.Denomination ?? Denomination;
            var configSerialized = JsonConvert.SerializeObject(config);

            JsonConvert.PopulateObject(configSerialized, this);

            if (toFile)
            {
                await ToFileAsync().ConfigureAwait(false);
            }
        }
        public void UpdateOrDefault(CoordinatorRoundConfig config, bool toFile)
        {
            Denomination = config.Denomination ?? Denomination;
            var configSerialized = JsonConvert.SerializeObject(config);

            JsonConvert.PopulateObject(configSerialized, this);

            if (toFile)
            {
                ToFile();
            }
        }