Beispiel #1
0
 private void Report(object state)
 {
     try
     {
         proxy.ReportAlive(nodeName, this.counter.GetLivingCount(), 0).GetAwaiter().GetResult();
     }
     catch (Exception)
     {
         // Do nothing if actor service is down.
     }
 }
Beispiel #2
0
 public ActionResult Delete([FromQuery] string id, [FromQuery] int ignoreOtherUpdatesForMins)
 {
     // the DELETE is for a node to signal failover and must set the count to 0 for specified mins and ignore actual updates from node.
     proxy.ReportAlive(id, 0, ignoreOtherUpdatesForMins).GetAwaiter().GetResult();
     return(Ok());
 }