How to get Ua Server closed or disconnected notification in Ua Client |OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
How to get Ua Server closed or disconnected notification in Ua Client
Avatar
Jayesh Thamke
Germany - Karlsruhe
Member
Members
Forum Posts: 6
Member Since:
09/01/2016
sp_UserOfflineSmall Offline
1
07/13/2017 - 03:57
sp_Permalink sp_Print

Hello,

I am implementing Ua Client using UA-.NETStandardLibrary @ GitHub sdk, 

I can connect the Ua Server using endpoint url and created a session. Furthermore I want to detect when Ua Server disconnects from client and/or closes the Ua Server (may be by user).

I am doing following:

 

Session session = await Session.Create(_AppConfiguration,
configuredEndpoint,
true,
true,
_AppConfiguration.ApplicationName,
15000,
new UserIdentity(new AnonymousIdentityToken()),
null);

session.SessionClosing += OnSessionClosingHandler;

 

private static void OnSessionClosingHandler(object sender, EventArgs e)
{ //have inserted breakpoint to debug the execution
    //some handling - not available for instance
}

I am manually closing the connected Ua Server and expecting that the SessionClosing event will be raised and it calls the OnSessionClosingHandler method.

However, I have observed the method is not executed.Cry  Is it a correct way that I have implemented above? Confused Please guide me. 

Thanks,

Jayesh

 

Mr. Jayesh Thamke

Student - Master of Science

Electrical Engineering and Information Technology - Automation

Hochschule Darmstadt, Darmstadt, Germany

Avatar
Guest
Guests
2
07/14/2017 - 01:35
sp_Permalink sp_Print
It seems that your issue relates to the UA Software you are using. If you use UA Software from the OPC Foundation public source repositories (e.g. https://github.com/OPCFoundati.....ardLibrary) please enter an issue into the issue list of this repository.

The moderators of this forum have good knowledge of the OPC UA standard but not necessarily of the implementations.

Avatar
Jayesh Thamke
Germany - Karlsruhe
Member
Members
Forum Posts: 6
Member Since:
09/01/2016
sp_UserOfflineSmall Offline
3
07/14/2017 - 01:48
sp_Permalink sp_Print

Thank you for replay Mr. Deiretsbacher, Laugh

Ok I will put this as issue at GitHub .NETStandard Library OPC Foundation repo.

I would like to know whether it is the right approach for detecting SessionClosing event?

Thank you, 

 

Mr. Jayesh Thamke

Student - Master of Science

Electrical Engineering and Information Technology - Automation

Hochschule Darmstadt, Darmstadt, Germany

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 22
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1353
Posts: 4589