/// <summary> /// Starts the token load, sets up the wallet name text, and starts the IdleTimeoutManager. /// </summary> private void OnEnable() { tokenContractManager.StartTokenLoad(OpenMenu); assetImage.GetComponent <Button>().onClick.AddListener(AssetImageClicked); assetImageButtonComponent = assetImage.GetComponent <ImageButton>(); UpdateWalletName(); if (userWalletManager.ActiveWalletType == UserWalletManager.WalletType.Hope) { SetUpWalletType(hopeLogo); idleTimeoutManager = new IdleTimeoutManager(uiManager, popupManager); } else if (userWalletManager.ActiveWalletType == UserWalletManager.WalletType.Ledger) { SetUpWalletType(ledgerLogo); } else { SetUpWalletType(trezorLogo); } UpdateAssetUI(); AccountChanged(userWalletManager.AccountNumber); ReloadNetWorth(); }
private IdleTimeoutHandler(TimeSpan idleTimeout) { _timeoutManager = new IdleTimeoutManager(idleTimeout); ; _timeoutManager.OnTimeOut += (s, e) => { Console.WriteLine("Timed out as there were no messages to the bridge for {0} seconds", (int)e.TotalSeconds); Environment.Exit(-1); }; }
private IdleTimeoutHandler(TimeSpan idleTimeout) { _timeoutManager = new IdleTimeoutManager(idleTimeout); ; _timeoutManager.OnTimeOut += (s, e) => { Trace.WriteLine(String.Format("Timed out as there were no messages to the bridge for {0} seconds", (int)e.TotalSeconds), this.GetType().Name); Environment.Exit(-1); }; }
private IdleTimeoutHandler(TimeSpan idleTimeout) { _timeoutManager = new IdleTimeoutManager(idleTimeout);; _timeoutManager.OnTimeOut += (s, e) => { Trace.WriteLine(String.Format("{0:T} - Timed out as there were no messages to the bridge for {1} seconds", DateTime.Now, (int)e.TotalSeconds), this.GetType().Name); Environment.Exit(-1); }; }
public OperationScope(IdleTimeoutManager manager) { _manager = manager; }