示例#1
0
        public EntityTypesActor()
        {
            FillEntityTypes();

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