Skip to content

Commit

Permalink
Update arg name: defaultTtlInSeconds (#1530)
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-xia committed May 18, 2020
1 parent 5f46b7d commit ee7c0b6
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ public T WithDefaultTimeToLive(TimeSpan defaultTtlTimeSpan)
/// <see cref="ContainerProperties.DefaultTimeToLive"/> will be applied to all the items in the container as the default time-to-live policy.
/// The individual item could override the default time-to-live policy by setting its time to live.
/// </summary>
/// <param name="defaulTtlInSeconds">The default Time To Live.</param>
/// <param name="defaultTtlInSeconds">The default Time To Live.</param>
/// <returns>An instance of the current Fluent builder.</returns>
/// <seealso cref="ContainerProperties.DefaultTimeToLive"/>
public T WithDefaultTimeToLive(int defaulTtlInSeconds)
public T WithDefaultTimeToLive(int defaultTtlInSeconds)
{
if (defaulTtlInSeconds < -1)
if (defaultTtlInSeconds < -1)
{
throw new ArgumentOutOfRangeException(nameof(defaulTtlInSeconds));
throw new ArgumentOutOfRangeException(nameof(defaultTtlInSeconds));
}

this.defaultTimeToLive = defaulTtlInSeconds;
this.defaultTimeToLive = defaultTtlInSeconds;
return (T)this;
}

Expand Down

0 comments on commit ee7c0b6

Please sign in to comment.