Dear,
I work with an unstable network. I checked the manual that these conditions should use the TuniConnection the parameters : LocalFailOver and DesconnectedMode .
At first it worked , but I need to show a Messaging on -off ' Trying to reconnect ' when the connection drops , and also a ' connection reestablished ' message when the connection back .
How can I do this?
Message Trying to reconnect with DesconnectedMode ?
Re: Message Trying to reconnect with DesconnectedMode ?
You can output the message about connection loss in the TUniConnection.OnConnectionLost event handler. Note, that the TUniConnection.OnConnectionLost event does not take plase when the connection to SQL Server will be lost. This message takes place when UniDAC refers to server, and the connection has been lost already. To use OnConnectionLost, set the TUniConnection.Options.LocalFailover property to True. See more details in the documentation: https://www.devart.com/unidac/docs/?dev ... ilover.htm
You can output the message about connection restore in the TUniConnection.AfterConnect event handler.
You can output the message about connection restore in the TUniConnection.AfterConnect event handler.