In extensions v1, how can I get the “Endpoint name” of the running thread? Is there a self.config[“”] entry available for it, or is it available programmatically in some form?
Hi @AntonioSousa,
I believe you should be able to find both the endpoint name and id via self.activation :
self.activation.endpoint_name
self.activation.entity_id
I would suggest to use the id as that should always be available.
Thanks for the quick reply! I’ll check them out.
Worked perfectly. Does self.activation have more entries, as there seems to be no documentation about it?
Hi @AntonioSousa,
Glad to hear it!
Printing it or calling get_activation_context() you get this below (at least from the oneagent_sim). I’ll see if I can find out any more information for you.
print(self.activation) : RemoteActivationContext(config_id=0x7b, endpoint=Test configuration, properties={'instance_cfg': 'simulator'}, enabled=True)
print(self.get_activation_context()) : RemoteActivationContext(config_id=0x7b, endpoint=Test configuration, properties={'instance_cfg': 'simulator'}, enabled=True)