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