public EntityTypesActor() { FillEntityTypes(); Receive<GetEntityTypes>(message => { AkkaGetEntityTypesResponse response = new AkkaGetEntityTypesResponse(_entityTypes); Sender.Tell(response); }); }
private void HandleEntityTypesResponse(AkkaGetEntityTypesResponse message) { _entityTypes = message.EntityTypes; _eventAggregator.GetEvent<GetEntityTypesEvent>().Publish(message); }
private void SetEntityTypes(AkkaGetEntityTypesResponse message) { EntityTypes = message.EntityTypes; }