Commit Graph

26 Commits

Author SHA1 Message Date
Valters Melnalksnis 66cbcbea2f fix: Cache JsonSerializerOptions for NordigenHttpClient
This reduces execution time and memory allocation for GetRequiredService<INordigenClient>() by an order of magnitude
2022-06-24 16:28:44 +03:00
Valters Melnalksnis 25951fd00b fix: Simplify GetPaginated in NordigenHttpClient 2022-06-24 16:28:40 +03:00
Valters Melnalksnis 29949fa64f fix: Cache user agent header value
Currently the user agent header value was created for each TokenDelegatingHandler and NordigenHttpClient.
By creating the header value once, both the execution time and allocated memory for GetRequiredService<INordigenClient>() was reduced.

Original:
|     Mean |    Error |   StdDev |  Gen 0 |  Gen 1 | Allocated |
|--------- |---------:|---------:|-------:|-------:|----------:|
| 33.16 us | 0.102 us | 0.090 us | 5.3101 | 0.0916 |     44 KB |
After caching:
|     Mean |    Error |   StdDev |  Gen 0 |  Gen 1 | Allocated |
|--------- |---------:|---------:|-------:|-------:|----------:|
| 26.02 us | 0.091 us | 0.086 us | 4.8218 | 0.0000 |     39 KB |
2022-06-24 16:28:12 +03:00
Valters Melnalksnis 374394758f fix: Fix query for transactions within interval (#31) 2022-06-21 20:51:03 +03:00
Valters Melnalksnis d709e3b9ac feat: Enable assembly strong naming 2022-06-19 15:07:01 +03:00
Valters Melnalksnis e1cff0c31a fix: Remove redundant code for token serialization 2022-06-18 11:18:33 +03:00
Valters Melnalksnis d81498bfa8 fix(docs): Add missing documentation for transactions 2022-06-18 10:48:13 +03:00
Valters Melnalksnis c0131b73db fix: Rename DebtorAccount to TransactionAccount 2022-06-17 20:40:44 +03:00
Valters Melnalksnis 31b76395f0 feat: Add CreditorAccount to BookedTransaction 2022-06-17 20:39:28 +03:00
Valters Melnalksnis c9011a9c05 fix(deps): Remove unused reference from VMelnalksnis.NordigenDotNet.csproj 2022-06-17 17:20:21 +03:00
Valters Melnalksnis e451c5789b feat: Add default value for BaseAddress 2022-06-16 20:24:59 +03:00
Valters Melnalksnis d391cb7721 feat: Cache tokens between calls (#19) 2022-06-16 20:22:52 +03:00
Valters Melnalksnis da99d06272 fix: Replace TokenClient with TokenDelegatingHandler 2022-06-16 18:45:54 +03:00
Valters Melnalksnis b2cff73599 fix: Add integration tests to test.yml action 2022-06-16 18:06:00 +03:00
Valters Melnalksnis 851d8ea2b9 fix: Use IOptionsMonitor<T> instead of IOptionsSnapshot<T> to avoid lifetime issues 2022-06-15 22:37:59 +03:00
Valters Melnalksnis 57c2dce062 fix: Suppress trim warning for ServiceCollectionExtensions 2022-06-15 22:05:47 +03:00
Valters Melnalksnis 99ea02654e fix: Move all instances of throw new HttpRequestException to single method 2022-06-15 22:05:46 +03:00
Valters Melnalksnis 364b6044cf feat: Add TokenSerializationContext for TokenClient 2022-06-15 22:05:46 +03:00
Valters Melnalksnis b2b47e31f6 feat: Add IAgreementClient (#5) 2022-06-15 20:00:31 +03:00
Valters Melnalksnis 28da1baffe feat: Include README.md in NuGet package 2022-06-15 17:26:37 +03:00
Valters Melnalksnis 1ba2770b05 feat(build): Publish NuGet package 2022-06-14 21:14:29 +03:00
Valters Melnalksnis dc92dadab8 fix: Move DependencyInjection project to correct directory 2022-06-14 20:23:04 +03:00
Valters Melnalksnis 5a458e0c53 feat: Add endpoints 2022-06-14 20:13:08 +03:00
Valters Melnalksnis 9eb16c07e8 feat: Add NodaTime v3.1.0 2022-06-14 08:41:39 +03:00
Valters Melnalksnis 17df6d32f3 feat: Add project configurations 2022-06-14 08:25:51 +03:00
Valters Melnalksnis 45a7ea3407 feat: Add projects 2022-06-14 08:17:49 +03:00