mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
add csharp snippets
This commit is contained in:
19
snippets/csharp/StaticChannelBackup.cs
Normal file
19
snippets/csharp/StaticChannelBackup.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Breez.Sdk;
|
||||
|
||||
public class StaticChannelBackupSnippets
|
||||
{
|
||||
public void StaticChannelBackup(BlockingBreezServices sdk)
|
||||
{
|
||||
// ANCHOR: static-channel-backup
|
||||
try
|
||||
{
|
||||
var backupData = BreezSdkMethods.StaticBackup(
|
||||
new StaticBackupRequest("<working directory>"));
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// Handle error
|
||||
}
|
||||
// ANCHOR_END: static-channel-backup
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user