Skip to content

Commit eb85bcf

Browse files
author
Eirini
committed
feat: add constructor overload for Client to simplify initialization with appIdentifier
1 parent dfe1453 commit eb85bcf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Tinify/Client.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ internal sealed class ErrorData
3232

3333
private readonly HttpClient _client;
3434

35+
public Client(string key, string appIdentifier)
36+
: this(key, appIdentifier, (string)null)
37+
{
38+
}
39+
3540
public Client(string key, string appIdentifier = null, string proxy = null)
3641
{
3742
var handler = new HttpClientHandler();

0 commit comments

Comments
 (0)