/// <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))); }
/// <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))); }