OPCFoundation / UA-.NETStandard

OPC Unified Architecture .NET Standard
Other
1.94k stars 942 forks source link

Rebuild Sample Client Durable Subscription Implementation #2738

Open Archie-Miller opened 1 month ago

Archie-Miller commented 1 month ago

Proposed changes

Implement a helper method in Opc.Ua.Client.Subscription that calls the Server SetSubscriptionDurable method.

In the ConsoleReferenceClient, Implement a sample implementation that shows the functionality of SetSubscriptionDurable from the client's perspective of pausing a subscription, then creating a new session and subscription and after transfer, retrieve all values with loosing any.

Also in ConsoleReferenceClient, allow for the retrieval of event data, with and without Durable Subscriptions.

Related Issues

https://github.com/orgs/OPCFoundation/projects/1/views/18 Task 1 - Addfunctionto client SDK to support SetSubscriptionDurable

Types of changes

What types of changes does your code introduce? Put an x in the boxes that apply. You can also fill these out after creating the PR.

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 70.00000% with 12 lines in your changes missing coverage. Please review.

Project coverage is 54.65%. Comparing base (41363bd) to head (4a76a03).

Files with missing lines Patch % Lines
...braries/Opc.Ua.Client/Subscription/Subscription.cs 70.00% 12 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2738 +/- ## ========================================== - Coverage 55.16% 54.65% -0.51% ========================================== Files 349 349 Lines 65694 65720 +26 Branches 13440 13442 +2 ========================================== - Hits 36239 35919 -320 - Misses 25618 25903 +285 - Partials 3837 3898 +61 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.