48 Commits

Author SHA1 Message Date
swcs 3996d693be add new props 2022-12-18 23:02:08 +01:00
swcs 3b542c1230 things 2022-12-16 19:47:16 +01:00
swcs 8f74c553e5 Update BookedTransaction.cs 2022-12-06 15:55:18 +01:00
swcs 637fd70cb2 remove NodaTime dependency and refactor to System.DateTimeOffset 2022-12-06 15:17:44 +01:00
swcs 430967e2c3 unseal tokenCache 2022-12-06 11:42:45 +01:00
Valters Melnalksnis 05b0767759 fix: Reenable ReSharper annotations, fix warnings 2022-11-26 12:32:21 +02:00
Valters Melnalksnis 8b5361900a build: Migrate to Directory.Packages.props 2022-11-10 18:03:19 +02:00
Valters Melnalksnis 43764cc3f3 feat: Add .NET Standard 2.0 target 2022-11-09 22:03:58 +02:00
dependabot[bot] c527456a06 build(deps): Bump Microsoft.Extensions.Options.DataAnnotations
Bumps [Microsoft.Extensions.Options.DataAnnotations](https://github.com/dotnet/runtime) from 6.0.0 to 7.0.0.
- [Release notes](https://github.com/dotnet/runtime/releases)
- [Commits](https://github.com/dotnet/runtime/commits)

---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Options.DataAnnotations
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-09 19:28:42 +00:00
dependabot[bot] e734efbe19 build(deps): Bump Microsoft.Extensions.Options.ConfigurationExtensions
Bumps [Microsoft.Extensions.Options.ConfigurationExtensions](https://github.com/dotnet/runtime) from 6.0.0 to 7.0.0.
- [Release notes](https://github.com/dotnet/runtime/releases)
- [Commits](https://github.com/dotnet/runtime/commits)

---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Options.ConfigurationExtensions
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-09 19:27:22 +00:00
Valters Melnalksnis 50ce301845 fix: Fix JsonNumberHandling for quoted numbers 2022-11-09 21:26:36 +02:00
dependabot[bot] 6289dd8330 build(deps): Bump Microsoft.Extensions.Http from 6.0.0 to 7.0.0
Bumps [Microsoft.Extensions.Http](https://github.com/dotnet/runtime) from 6.0.0 to 7.0.0.
- [Release notes](https://github.com/dotnet/runtime/releases)
- [Commits](https://github.com/dotnet/runtime/commits)

---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Http
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-09 19:13:36 +00:00
dependabot[bot] 81f4668521 build(deps): Bump Microsoft.Extensions.Configuration.Abstractions
Bumps [Microsoft.Extensions.Configuration.Abstractions](https://github.com/dotnet/runtime) from 6.0.0 to 7.0.0.
- [Release notes](https://github.com/dotnet/runtime/releases)
- [Commits](https://github.com/dotnet/runtime/commits)

---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Configuration.Abstractions
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 21:20:29 +00:00
dependabot[bot] 3c903b3e34 build(deps): Bump Microsoft.Extensions.DependencyInjection.Abstractions
Bumps [Microsoft.Extensions.DependencyInjection.Abstractions](https://github.com/dotnet/runtime) from 6.0.0 to 7.0.0.
- [Release notes](https://github.com/dotnet/runtime/releases)
- [Commits](https://github.com/dotnet/runtime/commits)

---
updated-dependencies:
- dependency-name: Microsoft.Extensions.DependencyInjection.Abstractions
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 21:12:25 +00:00
dependabot[bot] 9cfd7ecc3a build(deps): Bump NodaTime from 3.1.4 to 3.1.5
Bumps [NodaTime](https://github.com/nodatime/nodatime) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/nodatime/nodatime/releases)
- [Changelog](https://github.com/nodatime/nodatime/blob/main/NodaTime%20Release.snk)
- [Commits](https://github.com/nodatime/nodatime/compare/3.1.4...3.1.5)

---
updated-dependencies:
- dependency-name: NodaTime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-31 15:48:16 +00:00
dependabot[bot] e3a85e7cd3 build(deps): Bump NodaTime from 3.1.3 to 3.1.4
Bumps [NodaTime](https://github.com/nodatime/nodatime) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/nodatime/nodatime/releases)
- [Changelog](https://github.com/nodatime/nodatime/blob/main/NodaTime%20Release.snk)
- [Commits](https://github.com/nodatime/nodatime/compare/3.1.3...3.1.4)

---
updated-dependencies:
- dependency-name: NodaTime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-12 04:34:56 +00:00
dependabot[bot] 029ec959ec build(deps): Bump NodaTime from 3.1.2 to 3.1.3
Bumps [NodaTime](https://github.com/nodatime/nodatime) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/nodatime/nodatime/releases)
- [Changelog](https://github.com/nodatime/nodatime/blob/main/NodaTime%20Release.snk)
- [Commits](https://github.com/nodatime/nodatime/compare/3.1.2...3.1.3)

---
updated-dependencies:
- dependency-name: NodaTime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-26 04:45:28 +00:00
Valters Melnalksnis 38aabb9386 feat: Remove configuration method that also adds NodaTime 2022-08-29 22:37:43 +03:00
Valters Melnalksnis d0f10d3379 fix: Move serialization related code to folder 2022-08-29 22:16:06 +03:00
Valters Melnalksnis 455bebb7b4 feat: Use JsonSerializationContext for all types, enable trimming (#14) 2022-08-29 22:12:30 +03:00
dependabot[bot] ae3c41d23f build(deps): Bump NodaTime from 3.1.1 to 3.1.2
Bumps [NodaTime](https://github.com/nodatime/nodatime) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/nodatime/nodatime/releases)
- [Changelog](https://github.com/nodatime/nodatime/blob/main/NodaTime%20Release.snk)
- [Commits](https://github.com/nodatime/nodatime/compare/3.1.1...3.1.2)

---
updated-dependencies:
- dependency-name: NodaTime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-17 04:39:36 +00:00
dependabot[bot] 40aa33cb70 build(deps): Bump NodaTime from 3.1.0 to 3.1.1
Bumps [NodaTime](https://github.com/nodatime/nodatime) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/nodatime/nodatime/releases)
- [Changelog](https://github.com/nodatime/nodatime/blob/main/NodaTime%20Release.snk)
- [Commits](https://github.com/nodatime/nodatime/compare/3.1.0...3.1.1)

---
updated-dependencies:
- dependency-name: NodaTime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 04:47:32 +00:00
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