OPCFoundation / UA-.NETStandard

OPC Unified Architecture .NET Standard
Other
1.97k stars 950 forks source link

How can I make the client not send KeepAlive Notifications #2858

Closed KircMax closed 5 hours ago

KircMax commented 8 hours ago

Type of issue

Current Behavior

Currently the KeepAliveTimer and all the controlling methods are private -> image therefore I cannot just stop the KeepAliveTimer for my client. Why would I want to do that? E.g. I want to check the Performance of something inside my server (using this client) - e.g. of my Subscriptions, then I do not want any ReadRequest to interfere with the Subscription Stuff running in my server. (Same goes for any other Performance Test I want to run).

Expected Behavior

KeepAlive (Timer) can somehow be stopped

Steps To Reproduce

No response

Environment

- OS:
- Environment:
- Runtime:
- Nuget Version:
- Component:
- Server:
- Client:

Anything else?

What do you think of:

  1. Making the StopKeepAliveTimer() protected ?
KircMax commented 8 hours ago

probably I can just set the KeepAliveInterval to int.MaxValue and not think about it further aswell...