private void SubscribeToChangesForResults(AkkaSearchResults message) { foreach (var entity in message.Results) { long entityId = entity.GetId(); _entityChangeNotificationActor.Tell(new SubscribeToEntityChanged(entityId)); } }
private void HandleSearchResults(AkkaSearchResults results) { _regionManager.RegisterViewWithRegion("ChildRegion", typeof(RelatedEntitiesView)); IRegion region = _regionManager.Regions[RegionNames.ContentRegion]; var vm = _container.Resolve <IEntityGridViewModel>(); vm.SetItems(results.Results); vm.SetViewName(results.EntityType); region.Add(vm.View, null, true); //IRegion childRegion = regionManagerForChildren.Regions["ChildRegion"]; //childRegion.Add(vm.View); }
private void HandleSearchResult(AkkaSearchResults message) { //_eventAggregator = _container.Resolve<IEventAggregator>(); _eventAggregator.GetEvent <SearchResultsEvent>().Publish(message); //throw new NotImplementedException(); }