Пример #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));
 }
Пример #2
0
 public ILightningClient Create(LightningConnectionString connectionString)
 {
     if (connectionString == null)
     {
         throw new ArgumentNullException(nameof(connectionString));
     }
     return(LightningClientFactory.CreateClient(connectionString, Network));
 }
Пример #3
0
 public ILightningClient Create(string connectionString)
 {
     return(LightningClientFactory.CreateClient(connectionString, Network));
 }