J'installe ma connexion Remoting comme ceci:Comment vérifier si une connexion à distance est ouverte sur le serveur?
port = new Random().Next(REMOTING_PORT_MIN, REMOTING_PORT_MAX);
TcpChannel chan = new TcpChannel(port);
ChannelServices.RegisterChannel(chan, false);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(NotificationService), "CallOnMe.rem", WellKnownObjectMode.Singleton);
notService = new NotificationService();
notService.NotificationMessageEvent += new NotificationService.NotificationMessageEventHandler(notService_NotificationMessageEvent);
RemotingServices.Marshal(notService, "CallOnMe.rem");
Mais tout aussi souvent la connexion est perdue et a besoin d'être tp rétabli, comment puis-je vérifier pour voir si la connexion est toujours ouverte?