Ejemplo n.º 1
0
 /// <summary>
 /// Processes a message and dispatches any needed sub-tasks.
 /// </summary>
 /// <param name="workerRegistration">Registration for worker that sent the message.</param>
 /// <param name="rawCommand">Command string sent by worker.</param>
 public void ProcessMessage(WorkerRegistration workerRegistration, string rawCommand)
 {
     if (Regex.IsMatch(rawCommand, @"^HEARTBEAT$"))
     {
         updateHeartbeat(workerRegistration);
     }
     if (Regex.IsMatch(rawCommand, @"^VAR "))
     {
         dataStoreManager.ProcessCommand(rawCommand, workerRegistration);
     }
 }