Beispiel #1
0
 public static ILightningClient CreateClient(string connectionString, Network network)
 {
     if (!LightningConnectionString.TryParse(connectionString, false, out var conn, out string error))
     {
         throw new FormatException($"Invalid format ({error})");
     }
     return(LightningClientFactory.CreateClient(conn, network));
 }
Beispiel #2
0
 public ILightningClient Create(LightningConnectionString connectionString)
 {
     if (connectionString == null)
     {
         throw new ArgumentNullException(nameof(connectionString));
     }
     return(LightningClientFactory.CreateClient(connectionString, Network));
 }
Beispiel #3
0
 public ILightningClient Create(string connectionString)
 {
     return(LightningClientFactory.CreateClient(connectionString, Network));
 }