Example #1
0
        public EntityTypesActor()
        {
            FillEntityTypes();

            Receive<GetEntityTypes>(message =>
            {
                AkkaGetEntityTypesResponse response = new AkkaGetEntityTypesResponse(_entityTypes);
                Sender.Tell(response);
            });
        }
Example #2
0
 private void HandleEntityTypesResponse(AkkaGetEntityTypesResponse message)
 {
     _entityTypes = message.EntityTypes;
     _eventAggregator.GetEvent<GetEntityTypesEvent>().Publish(message);
 }
Example #3
0
 private void SetEntityTypes(AkkaGetEntityTypesResponse message)
 {
     EntityTypes = message.EntityTypes;
 }