From c8d1afa60b4f392e887d1d9517b24322348962f6 Mon Sep 17 00:00:00 2001 From: Julia Seward Date: Wed, 4 Oct 2023 17:11:33 -0400 Subject: [PATCH] chore: docs --- .../Models/Engine/ConnectOptions.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/WalletConnectSharp.Sign/Models/Engine/ConnectOptions.cs b/WalletConnectSharp.Sign/Models/Engine/ConnectOptions.cs index c6806f6..dcf6d48 100644 --- a/WalletConnectSharp.Sign/Models/Engine/ConnectOptions.cs +++ b/WalletConnectSharp.Sign/Models/Engine/ConnectOptions.cs @@ -165,12 +165,22 @@ public ConnectOptions WithOptions(ProtocolOptions options) return this; } + /// + /// Set the expiry duration for the session + /// + /// The amount of seconds that should pass before the session expires + /// This object, acts a builder function public ConnectOptions WithExpiry(long seconds) { Expiry = seconds; return this; } + /// + /// Set the expiry duration for the session + /// + /// The amount of time that should pass before the session expires + /// This object, acts a builder function public ConnectOptions WithExpiry(TimeSpan expiry) { Expiry = (long)expiry.TotalSeconds;