{"action":"created","issue":{"url":"https://api.github.com/repos/convertersystems/opc-ua-client/issues/55","repository_url":"https://api.github.com/repos/convertersystems/opc-ua-client","labels_url":"https://api.github.com/repos/convertersystems/opc-ua-client/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/convertersystems/opc-ua-client/issues/55/comments","events_url":"https://api.github.com/repos/convertersystems/opc-ua-client/issues/55/events","html_url":"https://github.com/convertersystems/opc-ua-client/issues/55","id":276536412,"number":55,"title":"opcua session was closed by client","user":{"login":"balamcsd","id":29729028,"avatar_url":"https://avatars0.githubusercontent.com/u/29729028?v=4","gravatar_id":"","url":"https://api.github.com/users/balamcsd","html_url":"https://github.com/balamcsd","followers_url":"https://api.github.com/users/balamcsd/followers","following_url":"https://api.github.com/users/balamcsd/following{/other_user}","gists_url":"https://api.github.com/users/balamcsd/gists{/gist_id}","starred_url":"https://api.github.com/users/balamcsd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balamcsd/subscriptions","organizations_url":"https://api.github.com/users/balamcsd/orgs","repos_url":"https://api.github.com/users/balamcsd/repos","events_url":"https://api.github.com/users/balamcsd/events{/privacy}","received_events_url":"https://api.github.com/users/balamcsd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-11-24T07:39:14Z","updated_at":"2018-02-10T17:41:01Z","closed_at":null,"author_association":"NONE","body":"I have written the attached OpcUaConnector class for opc ua connection related activities.\r\n\r\nBut it is not handling session. For example :\r\n\r\n1) in opc ua configuration disabled the endpoint \r\n2) in kepserver configuration did runtime > reinitializing\r\n\r\nThe windows service is throwing : \r\nSource : system.Reactive.Core \r\nInnerException : The session was closed by client\r\n\r\nand stopping the windows service, as this error goes unhandled. \r\n\r\nCan some one suggest how to handle session in opc-ua?\r\n[OpcUaConnector.txt](https://github.com/convertersystems/opc-ua-client/files/1500882/OpcUaConnector.txt)\r\n"},"comment":{"url":"https://api.github.com/repos/convertersystems/opc-ua-client/issues/comments/364674925","html_url":"https://github.com/convertersystems/opc-ua-client/issues/55#issuecomment-364674925","issue_url":"https://api.github.com/repos/convertersystems/opc-ua-client/issues/55","id":364674925,"user":{"login":"awcullen","id":11900570,"avatar_url":"https://avatars2.githubusercontent.com/u/11900570?v=4","gravatar_id":"","url":"https://api.github.com/users/awcullen","html_url":"https://github.com/awcullen","followers_url":"https://api.github.com/users/awcullen/followers","following_url":"https://api.github.com/users/awcullen/following{/other_user}","gists_url":"https://api.github.com/users/awcullen/gists{/gist_id}","starred_url":"https://api.github.com/users/awcullen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awcullen/subscriptions","organizations_url":"https://api.github.com/users/awcullen/orgs","repos_url":"https://api.github.com/users/awcullen/repos","events_url":"https://api.github.com/users/awcullen/events{/privacy}","received_events_url":"https://api.github.com/users/awcullen/received_events","type":"User","site_admin":false},"created_at":"2018-02-10T17:41:01Z","updated_at":"2018-02-10T17:41:01Z","author_association":"CONTRIBUTOR","body":"Sorry for the delay.  A solution may be to provide an exception handler in the call to subscribe.\r\n\r\n```\r\nvar token = channel.Where(pr => pr.SubscriptionId == id).Subscribe(\r\n    pr =>\r\n    {\r\n        // loop thru all the data change notifications\r\n        var dcns = pr.NotificationMessage.NotificationData.OfType<DataChangeNotification>();\r\n        foreach (var dcn in dcns)\r\n        {\r\n            foreach (var min in dcn.MonitoredItems)\r\n            {\r\n                Console.WriteLine($\"sub: {pr.SubscriptionId}; handle: {min.ClientHandle}; value: {min.Value}\");\r\n                count++;\r\n            }\r\n        }\r\n\r\n    },\r\n    ex =>\r\n    {\r\n        Console.WriteLine($\"IObserver handled exception '{ex.GetType()}'. {ex.Message}\");\r\n    }\r\n);\r\n\r\n```"}}
{"actor":{"display_login":"awcullen"}}