Skip to content

Commit

Permalink
chore: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gigajuwels committed Oct 4, 2023
1 parent 492c4db commit c8d1afa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions WalletConnectSharp.Sign/Models/Engine/ConnectOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,22 @@ public ConnectOptions WithOptions(ProtocolOptions options)
return this;
}

/// <summary>
/// Set the expiry duration for the session
/// </summary>
/// <param name="seconds">The amount of seconds that should pass before the session expires</param>
/// <returns>This object, acts a builder function</returns>
public ConnectOptions WithExpiry(long seconds)
{
Expiry = seconds;
return this;
}

/// <summary>
/// Set the expiry duration for the session
/// </summary>
/// <param name="expiry">The amount of time that should pass before the session expires</param>
/// <returns>This object, acts a builder function</returns>
public ConnectOptions WithExpiry(TimeSpan expiry)
{
Expiry = (long)expiry.TotalSeconds;
Expand Down

0 comments on commit c8d1afa

Please sign in to comment.