/// <summary> /// send load task to load task actor /// </summary> /// <param name="message"></param> /// <remarks>in the future, this may be enhanced with a start /// location, so that it might not only have to be a full farm reload /// </remarks> public void Handle(LoadTask message) { IActorRef newTaskActor = ActorSystemReference.ActorSystem.ActorOf(LoadTaskActor.Props(eventAggregator, repository, message.Title, message.Id, message.StartLocation), message.Id.ToString()); taskActors.Add(message.Id, newTaskActor); }
/// <summary> /// send load task to load task actor /// </summary> /// <param name="message"></param> /// <remarks>in the future, this may be enhanced with a start /// location, so that it might not only have to be a full farm reload /// </remarks> public void Handle(LoadTask message) { Guid newId = Guid.NewGuid(); IActorRef newTaskActor = ActorSystemReference.ActorSystem.ActorOf(LoadTaskActor.Props(eventAggregator, message.Title, newId, message.StartLocation), newId.ToString()); taskActors.Add(newId, newTaskActor); }
/// <summary> /// send load task to load task actor /// </summary> /// <param name="message"></param> /// <remarks>in the future, this may be enhanced with a start /// location, so that it might not only have to be a full farm reload /// </remarks> public void Receive(LoadTask message) { IActorRef newTaskActor = Context.ActorOf(LoadTaskActor.Props( eventAggregator, repository, dataService, message.Id), message.Id.ToString()); taskActors.Add(message.Id, newTaskActor); var requestWithCurrentSettings = message.GetWithUpdatedSettings(elevatedPrivileges); // trigger feature toggle request newTaskActor.Tell(requestWithCurrentSettings); }