Exemple #1
0
 public void TargetMsg(List <string> addressList, CodingIncidentMessage codingIncidentMsg)
 {
     foreach (string station in addressList)
     {
         //If is in connected console
         //else reply "failed" back to gateway
         //to prevent from search on an invalid key in the dictionary of connected console
         if (_ConnectedConsoleList.Contains(station))
         {
             IMessageServiceCallback tmpCallback = _ConnectedConsoleDict[station];
             tmpCallback.ConsoleDisplayMsg(codingIncidentMsg);
         }
         else
         {
             _GatewayCallbackList.ForEach(
                 delegate(IMessageServiceCallback gatewaycallback)
             {
                 gatewaycallback.NotifyConsoleNotConnected(station, codingIncidentMsg);
             });
         }
     }
 }