Eikon .NET SDK - What is the expected behavior when closing Eikon?
When using Eikon .NET SDK in a custom application, what is the expected behavior when the user closes Eikon application?
I can see that when I call DataServicesFactory.Create and Eikon is not already running, connectionCallback event returns the following IConnectionInformation states: StartingInitialization, then LaunchingEikon, then it may or may not return RequestingConnection, and finally after Eikon launches it returns Connected. So far so good. Now if I check IRealTimeService, ServiceInformation.State is Up.
If I close Eikon, I don't see connectionCallback event raised. However I do see ServiceInformationChanged event raised on IRealTimeService, which returns ServiceInformation.State as Closing.
If I restart Eikon from the shortcut, I don't see any events.
If instead of starting Eikon from the shortcut I call DataServicesFactory.Create, I see Eikon application launching and connectionCallback event returns IConnectionInformation states: StartingInitialization, then LaunchingEikon, and then after Eikon launches it returns RequestingConnection. This appears to be a terminal state. IRealTimeService.ServiceInformation.State is still Closing, data subscriptions cannot be created and I don't see any way of recovering from this state.
Is this behavior intentional? When a user shuts down Eikon, is it supposed to create a terminal state for a custom application using Eikon .NET SDK? Or is there a way to recover from this state?