diff --git a/README.md b/README.md index a468deae..79d19a99 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ builder.Services.AddSingleton(_ => new TxClientSettings AccountId = "12345678", ServiceKey = "abcdefghijklmnopqrstuvwxyz", DataCenter = DataCenter.US -}; +}); builder.Services.AddHttpClient(); ``` After injecting your TxClient, you will be able to get it from the service provider: @@ -106,4 +106,4 @@ Additionally, there are `TxUsableResumeException` and `TxUsableJobException` whi [docfx-txclient]: https://textkernel.github.io/tx-dotnet/sdk/Textkernel.Tx.ITxClient.html [http-client]: https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpclient [http-client-guidelines]: https://learn.microsoft.com/en-us/dotnet/fundamentals/networking/http/httpclient-guidelines -[http-extensions]: https://www.nuget.org/packages/Microsoft.Extensions.Http \ No newline at end of file +[http-extensions]: https://www.nuget.org/packages/Microsoft.Extensions.Http