Example #1
0
 /// <summary>
 ///     The new value to convert to a string and set for this key's node.
 /// </summary>
 public static ICompareAndSwapByValueRequest WithNewValue <T>(this ICompareAndSwapByValueRequest This, T value, IKeyDataValueConverter valueConverter = null)
 {
     return(This.WithNewValue(Convert(This.EtcdClient.Config, value, valueConverter)));
 }
Example #2
0
 /// <summary>
 ///     An optional expiration for this key.
 /// </summary>
 public static ICompareAndSwapByValueRequest WithTimeToLive(this ICompareAndSwapByValueRequest This, TimeSpan?timeSpan)
 {
     return(This.ApplyTimeToLive(timeSpan, (x, y) => x.WithTimeToLive(y)));
 }