private void RestartStreamListenerMsgHandler(RestartStreamListenerMsg msg) { _logger.Info($"Restarting {Context.Self.Path.Name}"); _shouldSendProcessSportsMessage = true; IActorRef streamListenerActor = Context.Child(StreamListenerActor.GetName(msg.FixtureId)); streamListenerActor.Tell(new StopStreamingMsg()); }
public bool RestartListener(string fixtureId) { var restartStreamListenerMsg = new RestartStreamListenerMsg { FixtureId = fixtureId }; _supervisorActor.Tell(restartStreamListenerMsg); return(true); }
private void RestartStreamListenerMsgHandler(RestartStreamListenerMsg msg) { var streamListenerManagerActor = Context.System.ActorSelection(StreamListenerManagerActor.Path); streamListenerManagerActor.Tell(msg); }