/// <exception cref="System.Exception"/> public Void Call() { latch.Await(); int threadIndex = highestModificationThreadId.AddAndGet(1); for (int i = 0; i < NumKeysPerThread; i++) { string testKey = TestConfigurationDeprecation.GetTestKeyName(threadIndex, i); string testNewKey = testKey + ".new"; Configuration.AddDeprecations(new Configuration.DeprecationDelta[] { new Configuration.DeprecationDelta (testKey, testNewKey) }); } return(null); }
/// <exception cref="System.Exception"/> public Void Call() { Configuration conf = new Configuration(); latch.Await(); int threadIndex = highestAccessThreadId.AddAndGet(1); for (int i = 0; i < NumKeysPerThread; i++) { string testNewKey = TestConfigurationDeprecation.GetTestKeyName(threadIndex, i) + ".new"; string value = "value." + threadIndex + "." + i; conf.Set(testNewKey, value); Assert.Equal(value, conf.Get(testNewKey)); } return(null); }