mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
Add list-lsps snippets
This commit is contained in:
@@ -17,6 +17,20 @@ public class ConnectingLspSnippets
|
||||
// ANCHOR_END: get-lsp-info
|
||||
}
|
||||
|
||||
public void ListLsps(BlockingBreezServices sdk)
|
||||
{
|
||||
// ANCHOR: list-lsps
|
||||
try
|
||||
{
|
||||
var availableLsps = sdk.ListLsps();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// Handle error
|
||||
}
|
||||
// ANCHOR_END: list-lsps
|
||||
}
|
||||
|
||||
public void ConnectLsp(BlockingBreezServices sdk, string? lspId)
|
||||
{
|
||||
// ANCHOR: connect-lsp
|
||||
|
||||
Reference in New Issue
Block a user