public void ListenForMessages() { while (isActive) { var envelope = GetIncomingMessages(); if (envelope != null) { try { ComService.HandleIncomingMessage(envelope); } catch (Exception e) { Log.Error($"Problem encountered while handling incoming message..."); Log.Error(e); } waitHandle.Set(); } } }
public void ListenForMessages() { while (isActive) { var envelope = GetIncomingMessages(); if (envelope != null) { try { ComService.HandleIncomingMessage(envelope); } catch (Exception e) { Log.Error($"Problem encountered while handling incoming message..."); Log.Error(e); } waitHandle.Set();//TODO: <- I don't think this is needed anymore?? -Dsphar 4/7/2019 } } }