romanett
7f037ef23e
Enforce Valid Certificate Store configuration ( #3023 )
...
* fix Null Reference Exceptions on nonconfigured certificate stores
* try to fix gds tests
* Use explicit null check
* Validate Certificate Store configuration on startup in SecurityConfiguration.Validate.
Remove Obsolete CertificateStore Properties.
* remove unecessary fields
* fix tests
* fix client config
* Validate Stores by opening them
* fix typo
* check stores instead of storepath
* fix ClientTest
* Add Tests for Validate Mehtod of SecurityConfiguration
* Update ApplicationConfiguration xsd to respect stricter validation
2025-03-28 16:07:48 +02:00
dependabot[bot]
55ded8a5c8
Bump Microsoft.Extensions.Configuration and Microsoft.NETFramework.ReferenceAssemblies ( #3039 )
...
Bumps [Microsoft.Extensions.Configuration](https://github.com/dotnet/runtime ) and [Microsoft.NETFramework.ReferenceAssemblies](https://github.com/Microsoft/dotnet ). These dependencies needed to be updated together.
Updates `Microsoft.Extensions.Configuration` from 9.0.2 to 9.0.3
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v9.0.2...v9.0.3 )
Updates `Microsoft.NETFramework.ReferenceAssemblies` from 1.0.3 to 1.0.3
- [Commits](https://github.com/Microsoft/dotnet/commits )
---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Configuration
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: Microsoft.NETFramework.ReferenceAssemblies
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-27 12:27:24 +02:00
dependabot[bot]
33b092efca
Bump Microsoft.Extensions.Logging and Microsoft.NETFramework.ReferenceAssemblies ( #3038 )
...
Bumps [Microsoft.Extensions.Logging](https://github.com/dotnet/runtime ) and [Microsoft.NETFramework.ReferenceAssemblies](https://github.com/Microsoft/dotnet ). These dependencies needed to be updated together.
Updates `Microsoft.Extensions.Logging` from 9.0.2 to 9.0.3
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v9.0.2...v9.0.3 )
Updates `Microsoft.NETFramework.ReferenceAssemblies` from 1.0.3 to 1.0.3
- [Commits](https://github.com/Microsoft/dotnet/commits )
---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Logging
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: Microsoft.NETFramework.ReferenceAssemblies
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-18 20:11:10 +02:00
romanett
ef9387b525
Enable Durable Subscriptions ( #2978 )
...
* Enable Durable Subscriptions (#9 )
* [Server] Durable Subscriptions (#2683 )
* Implement a system test for DurableSubscriptions (#2839 )
* Client Side
Co-authored-by: ALTERNATE-DEV\Archie <archie@dreamsandadventures.ca >
* make a static Method CalculateRevisedQueueSize
* Adress review feedback
* fix FilterRetainTests
* Add MonitoredItem Id to Queues
Use NodeIdDictionary where possible
2025-02-28 13:46:49 +02:00
dependabot[bot]
bba6d72529
Bump Microsoft.Extensions.Configuration and Microsoft.NETFramework.ReferenceAssemblies ( #3019 )
...
Bumps [Microsoft.Extensions.Configuration](https://github.com/dotnet/runtime ) and [Microsoft.NETFramework.ReferenceAssemblies](https://github.com/Microsoft/dotnet ). These dependencies needed to be updated together.
Updates `Microsoft.Extensions.Configuration` from 9.0.1 to 9.0.2
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v9.0.1...v9.0.2 )
Updates `Microsoft.NETFramework.ReferenceAssemblies` from 1.0.3 to 1.0.3
- [Commits](https://github.com/Microsoft/dotnet/commits )
---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Configuration
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: Microsoft.NETFramework.ReferenceAssemblies
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-27 10:51:52 +02:00
dependabot[bot]
d9be4f8379
Bump Microsoft.Extensions.Logging and Microsoft.NETFramework.ReferenceAssemblies ( #3015 )
...
Bumps [Microsoft.Extensions.Logging](https://github.com/dotnet/runtime ) and [Microsoft.NETFramework.ReferenceAssemblies](https://github.com/Microsoft/dotnet ). These dependencies needed to be updated together.
Updates `Microsoft.Extensions.Logging` from 8.0.1 to 9.0.2
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v8.0.1...v9.0.2 )
Updates `Microsoft.NETFramework.ReferenceAssemblies` from 1.0.3 to 1.0.3
- [Commits](https://github.com/Microsoft/dotnet/commits )
---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Logging
dependency-type: direct:production
update-type: version-update:semver-major
- dependency-name: Microsoft.NETFramework.ReferenceAssemblies
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-26 15:03:58 +02:00
dependabot[bot]
ca18c2d00d
Bump System.Diagnostics.DiagnosticSource and Microsoft.NETFramework.ReferenceAssemblies ( #3002 )
...
Bumps [System.Diagnostics.DiagnosticSource](https://github.com/dotnet/runtime ) and [Microsoft.NETFramework.ReferenceAssemblies](https://github.com/Microsoft/dotnet ). These dependencies needed to be updated together.
Updates `System.Diagnostics.DiagnosticSource` from 6.0.2 to 9.0.2
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v6.0.2...v9.0.2 )
Updates `Microsoft.NETFramework.ReferenceAssemblies` from 1.0.3 to 1.0.3
- [Commits](https://github.com/Microsoft/dotnet/commits )
---
updated-dependencies:
- dependency-name: System.Diagnostics.DiagnosticSource
dependency-type: direct:production
update-type: version-update:semver-major
- dependency-name: Microsoft.NETFramework.ReferenceAssemblies
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-18 10:40:12 +02:00
dependabot[bot]
a2f761e8a1
Bump Microsoft.Extensions.Configuration from 9.0.0 to 9.0.1 ( #2956 )
...
Bumps [Microsoft.Extensions.Configuration](https://github.com/dotnet/runtime ) from 9.0.0 to 9.0.1.
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v9.0.0...v9.0.1 )
---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Configuration
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-23 17:19:15 +02:00
dependabot[bot]
c87eca9186
Bump Serilog from 4.1.0 to 4.2.0 ( #2891 )
...
Bumps [Serilog](https://github.com/serilog/serilog ) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/serilog/serilog/releases )
- [Commits](https://github.com/serilog/serilog/compare/v4.1.0...v4.2.0 )
---
updated-dependencies:
- dependency-name: Serilog
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-11 08:48:48 +01:00
Martin Regen
5ed73fcd95
merge latest release
2024-12-07 17:30:58 +01:00
Martin Regen
71a6e69d62
Bump BouncyCastle.Cryptography from 2.4.0 to 2.5.0, Serilog and Codecov ( #2875 )
...
* bump bouncy castle to 2.50
* Bump codecov/codecov-action from 4 to 5 (#2847 )
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump Serilog and System.Diagnostics.DiagnosticSource (#2818 )
Bumps [Serilog](https://github.com/serilog/serilog ) and [System.Diagnostics.DiagnosticSource](https://github.com/dotnet/runtime ). These dependencies needed to be updated together.
Updates `Serilog` from 4.0.2 to 4.1.0
- [Release notes](https://github.com/serilog/serilog/releases )
- [Commits](https://github.com/serilog/serilog/compare/v4.0.2...v4.1.0 )
Updates `System.Diagnostics.DiagnosticSource` from 6.0.1 to 8.0.1
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v6.0.1...v8.0.1 )
---
updated-dependencies:
- dependency-name: Serilog
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: System.Diagnostics.DiagnosticSource
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-03 11:25:58 +01:00
Martin Regen
f76c457c72
Support .NET 9.0 build ( #2865 )
...
* support .NET 9.0 build
* provide a helper to use the X509CertificateLoader also on older .NET versions
2024-11-28 12:57:10 +01:00
dependabot[bot]
ce33d6387c
Bump Serilog and System.Diagnostics.DiagnosticSource ( #2818 )
...
Bumps [Serilog](https://github.com/serilog/serilog ) and [System.Diagnostics.DiagnosticSource](https://github.com/dotnet/runtime ). These dependencies needed to be updated together.
Updates `Serilog` from 4.0.2 to 4.1.0
- [Release notes](https://github.com/serilog/serilog/releases )
- [Commits](https://github.com/serilog/serilog/compare/v4.0.2...v4.1.0 )
Updates `System.Diagnostics.DiagnosticSource` from 6.0.1 to 8.0.1
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v6.0.1...v8.0.1 )
---
updated-dependencies:
- dependency-name: Serilog
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: System.Diagnostics.DiagnosticSource
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-30 13:35:41 +01:00
dependabot[bot]
f433fa414d
Bump Microsoft.Extensions.Logging, Microsoft.Extensions.Logging.Abstractions and System.Diagnostics.DiagnosticSource ( #2796 )
...
* Bump Microsoft.Extensions.Logging, Microsoft.Extensions.Logging.Abstractions and System.Diagnostics.DiagnosticSource
Bumps [Microsoft.Extensions.Logging](https://github.com/dotnet/runtime ), [Microsoft.Extensions.Logging.Abstractions](https://github.com/dotnet/runtime ) and [System.Diagnostics.DiagnosticSource](https://github.com/dotnet/runtime ). These dependencies needed to be updated together.
Updates `Microsoft.Extensions.Logging` from 6.0.0 to 8.0.1
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v6.0.0...v8.0.1 )
Updates `Microsoft.Extensions.Logging.Abstractions` from 3.1.32 to 8.0.2
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/commits/v8.0.2 )
Updates `System.Diagnostics.DiagnosticSource` from 6.0.1 to 8.0.1
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v6.0.1...v8.0.1 )
---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Logging
dependency-type: direct:production
update-type: version-update:semver-major
- dependency-name: Microsoft.Extensions.Logging.Abstractions
dependency-type: direct:production
update-type: version-update:semver-major
- dependency-name: System.Diagnostics.DiagnosticSource
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update version.json
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-17 19:12:03 +02:00
Suciu Mircea Adrian
f001eabcc8
Add support for ECC profiles ( #2398 )
...
- Port support for ECC NIST/Brainpool profiles from prototyping_ecc branch
- Implement CertProvider to load certs per connection / profile
- Backward compatibility of configuration for existing apps
- SecurityConfiguration specifies app cert types for each profile
- Autodetect the ECC support for brainpool/nist based on platform (mac OS 10 doesn't support brainpool)
- ECC supported on net48 / net5.0 / net 6.0 / netstandard2.1
- ECC supported on windows / linux / macOS (brainpool not < macOS11)
- Self signed certs for each profile are created on start similar to RSA
- RSA only profiles are supported on .NET standard 2.0
Co-authored-by: Martin Regen <mregen@microsoft.com >
2024-10-17 16:02:20 +02:00
dependabot[bot]
c16d1f2c5c
Bump Serilog and System.Diagnostics.DiagnosticSource ( #2780 )
...
Bumps [Serilog](https://github.com/serilog/serilog ) and [System.Diagnostics.DiagnosticSource](https://github.com/dotnet/runtime ). These dependencies needed to be updated together.
Updates `Serilog` from 4.0.1 to 4.0.2
- [Release notes](https://github.com/serilog/serilog/releases )
- [Commits](https://github.com/serilog/serilog/compare/v4.0.1...v4.0.2 )
Updates `System.Diagnostics.DiagnosticSource` from 6.0.1 to 8.0.1
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v6.0.1...v8.0.1 )
---
updated-dependencies:
- dependency-name: Serilog
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: System.Diagnostics.DiagnosticSource
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-01 10:26:28 +02:00
Martin Regen
8131a02984
Pubsub JSON updates preview ( #2768 )
...
Add support for Compact and Verbose JSON encodings.
Other bug fixes:
- Defaults for non reversible forces the namespace Uri in the NodeId encoding and all default values are encoded. This behavior is according to spec. Old behavior can be changed reestablished with properties on creation of the JSON encoders.
- Compact and Verbose are preview for the next spec release. Main difference is to always encode NodeIds and ExpandedNodeIds as string with NamespaceUri. Same for QualifiedName. Both are considered reversible encodings.
- JSON decoder accepts any of the new and existing JSOn encodings no matter if the NodeId are encoded as string or JSON object.
Co-authored-by: Randy Armstrong <randy.armstrong@opcfoundation.org >
2024-09-26 09:59:02 +02:00
Martin Regen
1c6253a729
AddRejected method for ICertificateStore ( #2720 )
...
- Add a light weight AddRejected certificate store method to `ICertificateStore` to ensure rejected cert history remains small and doesn't have a lot of overhead.
- Number of history certificates is configurable using a new `MaxRejectedCertificates` entry.
- Rejected certs are only saved to directory cert store, others do ignore the attempt
- Fix the caching of `CertificateValidator` and flag some `ÒpenStore` methods deprecated which do not support the caching. Fixes across the board to support the methodology. Basically `store.Close` keeps the cache, `store.Dispose` clears the cache, so recommendation is to use `var store = certStoreIdentifier.OpenStore(); try { ... }-- finally { store.Close }`
2024-09-03 15:23:32 +02:00
ThomasNehring
fd762bf9eb
Managed Browse and Browse Next for the UA client. ( #2673 )
...
Added a new method ManagedBrowse to the UA client, which takes care of calling browse next after calling browse, when necessary. It also handles the status codes BadNoContinuationPoint and BadInvalidContinuationPoint.
Added support for the new method in ISession, TraceableSession, Session and SessionAsync.
Use the new methods in the NodeCache and other API that use browse (FetchRefrences etc).
Added unit tests which verify correct behavior of the new methods.
2024-08-18 03:36:21 +02:00
dependabot[bot]
1f6708ad0c
Bump Serilog and System.Diagnostics.DiagnosticSource ( #2689 )
...
Bumps [Serilog](https://github.com/serilog/serilog ) and [System.Diagnostics.DiagnosticSource](https://github.com/dotnet/runtime ). These dependencies needed to be updated together.
Updates `Serilog` from 4.0.0 to 4.0.1
- [Release notes](https://github.com/serilog/serilog/releases )
- [Commits](https://github.com/serilog/serilog/compare/v4.0.0...v4.0.1 )
Updates `System.Diagnostics.DiagnosticSource` from 6.0.1 to 8.0.1
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v6.0.1...v8.0.1 )
---
updated-dependencies:
- dependency-name: Serilog
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: System.Diagnostics.DiagnosticSource
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-31 19:30:54 +03:00
dependabot[bot]
8cb76640bc
Bump Serilog.Sinks.File and System.Diagnostics.DiagnosticSource ( #2654 )
...
Bumps [Serilog.Sinks.File](https://github.com/serilog/serilog-sinks-file ) and [System.Diagnostics.DiagnosticSource](https://github.com/dotnet/runtime ). These dependencies needed to be updated together.
Updates `Serilog.Sinks.File` from 5.0.0 to 6.0.0
- [Release notes](https://github.com/serilog/serilog-sinks-file/releases )
- [Changelog](https://github.com/serilog/serilog-sinks-file/blob/dev/CHANGES.md )
- [Commits](https://github.com/serilog/serilog-sinks-file/compare/v5.0.0...v6.0.0 )
Updates `System.Diagnostics.DiagnosticSource` from 6.0.1 to 8.0.1
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v6.0.1...v8.0.1 )
---
updated-dependencies:
- dependency-name: Serilog.Sinks.File
dependency-type: direct:production
update-type: version-update:semver-major
- dependency-name: System.Diagnostics.DiagnosticSource
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-28 16:39:34 +02:00
dependabot[bot]
f2815bb592
Bump Serilog.Expressions and System.Diagnostics.DiagnosticSource ( #2648 )
...
Bumps [Serilog.Expressions](https://github.com/serilog/serilog-expressions ) and [System.Diagnostics.DiagnosticSource](https://github.com/dotnet/runtime ). These dependencies needed to be updated together.
Updates `Serilog.Expressions` from 4.0.0 to 5.0.0
- [Release notes](https://github.com/serilog/serilog-expressions/releases )
- [Commits](https://github.com/serilog/serilog-expressions/compare/v4.0.0...v5.0.0 )
Updates `System.Diagnostics.DiagnosticSource` from 6.0.1 to 8.0.1
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v6.0.1...v8.0.1 )
---
updated-dependencies:
- dependency-name: Serilog.Expressions
dependency-type: direct:production
update-type: version-update:semver-major
- dependency-name: System.Diagnostics.DiagnosticSource
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-19 09:21:05 +02:00
dependabot[bot]
fc07b04798
Bump Serilog.Sinks.Debug and System.Diagnostics.DiagnosticSource ( #2650 )
...
Bumps [Serilog.Sinks.Debug](https://github.com/serilog/serilog-sinks-debug ) and [System.Diagnostics.DiagnosticSource](https://github.com/dotnet/runtime ). These dependencies needed to be updated together.
Updates `Serilog.Sinks.Debug` from 2.0.0 to 3.0.0
- [Release notes](https://github.com/serilog/serilog-sinks-debug/releases )
- [Commits](https://github.com/serilog/serilog-sinks-debug/compare/v2.0.0...v3.0.0 )
Updates `System.Diagnostics.DiagnosticSource` from 6.0.1 to 8.0.1
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v6.0.1...v8.0.1 )
---
updated-dependencies:
- dependency-name: Serilog.Sinks.Debug
dependency-type: direct:production
update-type: version-update:semver-major
- dependency-name: System.Diagnostics.DiagnosticSource
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-19 09:19:51 +02:00
dependabot[bot]
10dcbfe1f0
Bump Serilog.Sinks.Console and System.Diagnostics.DiagnosticSource ( #2642 )
...
Bumps [Serilog.Sinks.Console](https://github.com/serilog/serilog-sinks-console ) and [System.Diagnostics.DiagnosticSource](https://github.com/dotnet/runtime ). These dependencies needed to be updated together.
Updates `Serilog.Sinks.Console` from 5.0.0 to 6.0.0
- [Release notes](https://github.com/serilog/serilog-sinks-console/releases )
- [Commits](https://github.com/serilog/serilog-sinks-console/compare/v5.0.0...v6.0.0 )
Updates `System.Diagnostics.DiagnosticSource` from 6.0.1 to 8.0.1
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v6.0.1...v8.0.1 )
---
updated-dependencies:
- dependency-name: Serilog.Sinks.Console
dependency-type: direct:production
update-type: version-update:semver-major
- dependency-name: System.Diagnostics.DiagnosticSource
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11 10:42:25 +02:00
dependabot[bot]
33319d2418
Bump Serilog and System.Diagnostics.DiagnosticSource ( #2633 )
...
Bumps [Serilog](https://github.com/serilog/serilog ) and [System.Diagnostics.DiagnosticSource](https://github.com/dotnet/runtime ). These dependencies needed to be updated together.
Updates `Serilog` from 3.1.1 to 4.0.0
- [Release notes](https://github.com/serilog/serilog/releases )
- [Commits](https://github.com/serilog/serilog/compare/v3.1.1...v4.0.0 )
Updates `System.Diagnostics.DiagnosticSource` from 6.0.1 to 8.0.1
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v6.0.1...v8.0.1 )
---
updated-dependencies:
- dependency-name: Serilog
dependency-type: direct:production
update-type: version-update:semver-major
- dependency-name: System.Diagnostics.DiagnosticSource
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-05 10:19:18 +02:00
romanett
8a1df6d3dc
[Client] Fix UserIdentity for CertificateIdentifer & add parameter for console reference client to specify UserCertificate ( #2624 )
...
- Fix the UserIdentity constructor to load the private key of a provided certificateIdenifier.
- make UserIdentity constructor throw a ServiceResultException when a Certificate with no private key is specified.
- extend console reference client with two new parameters:
-uc Thumbprint of a user certifiate located in the TrustedUserCertificatesStore
-ucp Password of the private key of the user certificate
- add documentation for console reference client
2024-06-05 07:10:07 +02:00
Martin Regen
ebf8f6265d
Fix reopen secure channel without activate ( #2577 )
...
Fix that if a socket is closed, new service calls are queued and a new channel is established without reconnect / activate.
Add some logic which ensures that a BeginConnect operation is only started if a valid service call is queued first.
The activate is prepared by the session reconnect handler which may take some time to respond. Until then, all other service fail immediately with BadNotConnected.
To detect socket failures earlier, the PublishRequest and KeepAlive send are also hooked up to the KeepAliveError to trigger a reconnect. To disable the keep alive timing calcualtion, an additional variable tracks the statuscode of the last error to set KeepAliveStopped to true.
2024-06-02 19:05:17 +02:00
romanett
a6f44c78b6
Fix disposal of console client sample( #2601 )
...
Throws an exception if the Connect is called on the disposed object.
2024-04-27 20:40:21 +02:00
Suciu Mircea Adrian
d1a9baa6c6
Added a limit to the Channels on the server side and removed "stale" channels ( #2540 )
...
* Added MaxChannelCount and detect and cleanup "stale" channels based on ChannelLifetime
* Add Environment.TickCount as time reference
* Set a socket backlog value to avoid socket open overflow
* Added a ChannelKeepAlive to signal when a session is still active
* Add options to console client to leak channels and run connect loop forever
Co-authored-by: Martin Regen <mregen@microsoft.com >
2024-04-22 13:28:19 +02:00
mtx500
cf7f2219a1
Fixed Typos. No functional changes. ( #2581 )
...
* Fixed typos across the board. No functional changes.
2024-04-11 08:21:16 +02:00
KircMax
f91644e022
reuse the identity policy in the reconnect that has been used in the connect ( #2526 )
...
* May cause an issue if a server specifies e.g. multiple policy id for UserName/Password with different security profiles
2024-02-23 10:52:28 +01:00
mtx500
d2e436d340
Fix typos in comments, strings and local variable names. No functional changes. ( #2507 )
...
Fixed a lot of typos in comments, strings and local variable names.
No change to misspelled function names and file names.
2024-02-10 07:49:05 +01:00
dependabot[bot]
f6ca14099a
Bump Microsoft.Extensions.Configuration.EnvironmentVariables and Microsoft.Extensions.Configuration ( #2461 )
...
Bumps [Microsoft.Extensions.Configuration.EnvironmentVariables](https://github.com/dotnet/runtime ) and [Microsoft.Extensions.Configuration](https://github.com/dotnet/runtime ). These dependencies needed to be updated together.
Updates `Microsoft.Extensions.Configuration.EnvironmentVariables` from 6.0.1 to 8.0.0
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v6.0.1...v8.0.0 )
Updates `Microsoft.Extensions.Configuration` from 6.0.1 to 8.0.0
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v6.0.1...v8.0.0 )
---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Configuration.EnvironmentVariables
dependency-type: direct:production
update-type: version-update:semver-major
- dependency-name: Microsoft.Extensions.Configuration
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-15 19:10:15 +01:00
Martin Regen
65803c4967
Implement async reconnect ( #2399 )
...
- Implement the reconnect and republish with async service calls.
bug fixes:
- subscription Ids should start from a random number
- the keep alive interval calculation is too short, adding +1 for the timeout
- on BadSessionIdInvalid recreate session immediately
- on a restarted server with new certificate, also reload endpoints when BadCertificateInvalid is returned
2023-11-30 21:02:51 +01:00
Martin Regen
9138bb90e0
Support for subclassing of client sessions, subscriptions and monitored items ( #2384 )
...
Currently, due to some internal cloning of sessions, subscriptions and monitored items it is not possible to use subclassed variants which are properly recreated after a session reconnect.
- Add a `ISessionInstantiator` interface to allow to subclass a `Session` and override virtual function.
- Add a `Subscription.CloneSubscription` and `MonitoredItem.CloneMonitoredItem` virtual method to recreate those with event handlers and client handles.
- A sample implementation with `TestableXXX` classes is provided to test the BadInvalidTimestamp fix by injecting modified timestamps in the session class.
- Remove duplicate `IDisposable` with `Session`. `IClientBase` is disposable already.
- adds `knownTypes` parameter to `Session.Load` and `Session.Save` to support save and restore of custom Subscriptions and Monitored items.
bug fixes:
- IOP: an empty DataTypeDictionary throws an exception when loaded by the complex type system, server are allowed to leave it empty to save memory.
- BadInvalidTimestamp should not be returned when the timestamp in the requestheader is out of sync. #2364
2023-11-28 21:17:56 +01:00
Martin Regen
973d342b29
Implement the close async codepath ( #2381 )
...
- CloseAsync still used the 'Close' synchronous function
- remove a duplicate definition of IDisposable on ISession
- reduce the log output when the server publish time is out of sync
2023-11-17 14:41:26 +01:00
dependabot[bot]
f73fbef790
Bump Serilog.Expressions from 3.4.1 to 4.0.0 ( #2379 )
...
Bumps [Serilog.Expressions](https://github.com/serilog/serilog-expressions ) from 3.4.1 to 4.0.0.
- [Release notes](https://github.com/serilog/serilog-expressions/releases )
- [Commits](https://github.com/serilog/serilog-expressions/compare/v3.4.1...v4.0.0 )
---
updated-dependencies:
- dependency-name: Serilog.Expressions
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-17 09:13:32 +02:00
dependabot[bot]
37252f31b2
Bump Serilog.Sinks.Console from 4.1.0 to 5.0.0 ( #2378 )
...
Bumps [Serilog.Sinks.Console](https://github.com/serilog/serilog-sinks-console ) from 4.1.0 to 5.0.0.
- [Release notes](https://github.com/serilog/serilog-sinks-console/releases )
- [Commits](https://github.com/serilog/serilog-sinks-console/compare/v4.1.0...v5.0.0 )
---
updated-dependencies:
- dependency-name: Serilog.Sinks.Console
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-14 11:57:20 +02:00
dependabot[bot]
59d724e777
Bump Serilog from 3.0.1 to 3.1.1 ( #2380 )
...
Bumps [Serilog](https://github.com/serilog/serilog ) from 3.0.1 to 3.1.1.
- [Release notes](https://github.com/serilog/serilog/releases )
- [Commits](https://github.com/serilog/serilog/compare/v3.0.1...v3.1.1 )
---
updated-dependencies:
- dependency-name: Serilog
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-13 17:09:47 +02:00
Martin Regen
4c0880c800
Fix codesmells. No functional changes and bug fixes. ( #2368 )
...
Fix many warnings to improve code quality or simplify the code.
2023-11-07 10:34:42 +01:00
Martin Regen
71ad9afd1c
Nested complex types which contain structure derived from an abstract type are not correctly encoded ( #2349 )
...
- bug: if the nested complex type is derived from an abstract type like a Union, the decoder uses the abstract type instead of the actual type to decode
- fix: the loop to determine the supertype of the type to be decoded stops too early and returns an invalid type reference, e.g. for Unions. Instead the loop will now continue until a valid BuiltInType or a Structure or Enumeration type is found.
2023-10-26 11:06:26 +02:00
Martin Regen
d47bc853da
Various async improvements and minor issues found in IOP testing ( #2346 )
...
- improve various log messages, comments etc.
- multiple internal improvements in naming convention handling of async functions
- add FetchSuperTypesAsync
- replace new UTFEncoding() with Encoding.UTF8 singleton
2023-10-20 21:29:03 +02:00
Martin Regen
82ed6c8ca8
Refactor IEncoder/IDecoder to derive from IDisposable ( #2254 )
...
- Currently the `IEncoder`/`IDecoder` interface is not disposable, which makes it difficult to use the interfaces with `using`. Only the implementations are derived from `IDisposable`
- Change: Moved the `IDisposable` interface from implementations to the IEncoder/IDecoder
- To fully support the use of the interfaces across the codebase new methods are added: `Close` and `CloseAndReturnAsText`
- Breaking change: In the `XmlEncoder` the `Close` method which returns an encoded string is renamed to `CloseAndReturnAsText`
- Refactor codebase to use `using` with IEncoder/IDecoder across the board. Use interfaces where possible.
- To support streaming better with `ArraySegmentStream`, derive this class from `MemoryStream` and implement `ToArray`
2023-08-11 11:56:47 +02:00
Martin Regen
0a51dd3d02
Complete ISessionFactory interface ( #2255 )
...
- A few use cases were still missing from the ISessionFactory interface to make the static `Session.Create` functions completely obsolete.
- Follow naming conventions (Async) and add CancellationToken where missing.
2023-08-10 16:41:36 +02:00
Martin Regen
49c85322bd
Fix build on merged commits
2023-06-27 17:07:51 +02:00
Martin Regen
ae00175fe8
Merge branch 'master' into master371_temp
2023-06-27 10:01:34 +02:00
dependabot[bot]
280db5309c
Bump Serilog from 2.12.0 to 3.0.1 ( #2205 )
...
Bumps [Serilog](https://github.com/serilog/serilog ) from 2.12.0 to 3.0.1.
- [Release notes](https://github.com/serilog/serilog/releases )
- [Changelog](https://github.com/serilog/serilog/blob/dev/CHANGES.md )
- [Commits](https://github.com/serilog/serilog/compare/v2.12.0...v3.0.1 )
---
updated-dependencies:
- dependency-name: Serilog
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-27 09:09:57 +02:00
Martin Regen
85c032133b
Fix session reconnect exponential backoff ( #2185 )
...
- With exponential backoff enabled, a KeepAlive calling `BeginReconnect` could retrigger the timer in a way that a reconnect would never occur.
- Throttle `ISession.BeginPublish` on `BadTooManyOperations` error.
- Add reverse connect option to console client to test reconnect with reverse connect manager.
- null events in session on dispose to suppress spurious events.
- mark `TransferSubscription` service calls obsolete to avoid accidential use by applications.
- for reverse connection testing of session reconnect handler, add options for no security and reverse connect endpoint to console client
2023-06-20 09:40:43 +02:00
Martin Regen
e89b06e57b
Add metadata to fast data and event callbacks notification. ( #2176 )
...
- if `DisableMonitoredItemCache` is set, the sequencenumber and publish time are unavailable. Add helpers to NotificationData to get the information in the fast data and event callbacks.
- new fast callback for keep alive messages
2023-06-14 09:47:21 +02:00
Martin Regen
043a56c3f2
Deprecate .NET framework 4.6.2 support, sync with samples repo ( #2165 )
...
- Deprecate support for Nuget package support of .NET Framework 4.6.2
- Bump sample applications to 4.8
- update some copyright headers / supporting files (editorconfig etc.)
- fix a few warnings
- fix an issue with `SessionReconnectHandler`, in certain combination of reconnect period and exponential backoff the .NET sample app never reconnected.
2023-05-31 18:53:56 +02:00