Class Opc.Ua.Client.Session has a constructor:
public Session(ITransportChannel channel, Session template, bool copyEventHandlers)
This copy-constructor doesn't copy value of property ReturnDiagnostics of template into new instance.
As result Session.CloneSession() and Session.Recreate() also lose ReturnDiagnostics from the source session instance.
I suppose that next line should be added into the Session constructor:
ReturnDiagnostics = template.ReturnDiagnostics;
Expected Behavior
Value of ReturnDiagnostics from source instance should be copied into new instance of Session during call of copy-constructor.
Type of issue
Current Behavior
Class Opc.Ua.Client.Session has a constructor:
public Session(ITransportChannel channel, Session template, bool copyEventHandlers)
This copy-constructor doesn't copy value of propertyReturnDiagnostics
oftemplate
into new instance. As resultSession.CloneSession()
andSession.Recreate()
also loseReturnDiagnostics
from the source session instance.I suppose that next line should be added into the Session constructor:
ReturnDiagnostics = template.ReturnDiagnostics;
Expected Behavior
Value of ReturnDiagnostics from source instance should be copied into new instance of Session during call of copy-constructor.
Steps To Reproduce
No response
Environment
Anything else?
No response