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)); }
public ILightningClient Create(LightningConnectionString connectionString) { if (connectionString == null) { throw new ArgumentNullException(nameof(connectionString)); } return(LightningClientFactory.CreateClient(connectionString, Network)); }
public ILightningClient Create(string connectionString) { return(LightningClientFactory.CreateClient(connectionString, Network)); }