コード例 #1
0
 private void SubscribeToChangesForResults(AkkaSearchResults message)
 {
     foreach (var entity in message.Results)
     {
         long entityId = entity.GetId();
         _entityChangeNotificationActor.Tell(new SubscribeToEntityChanged(entityId));
     }
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 private void HandleSearchResult(AkkaSearchResults message)
 {
     //_eventAggregator = _container.Resolve<IEventAggregator>();
     _eventAggregator.GetEvent <SearchResultsEvent>().Publish(message);
     //throw new NotImplementedException();
 }