Can DependencyProvider handle events?


#1

i'm afraid i don't understand your question. could you please try to
clarify what you would like to know?

d

···

On Sunday, 25 March 2018 07:47:27 UTC+1, qile...@gmail.com wrote:

class AppConfig(DependencyProvider):

@event_handler('config', 'update', handler_type=BROADCAST,
reliable_delivery=False)
def on_config_updated(self, payload):
load_config()


#2

You will need to make an entrypoint that will listen to an event, that
entrypoint will call on a dependency.

···

On Sunday, March 25, 2018 at 3:49:49 AM UTC-5, David Szotten wrote:

i'm afraid i don't understand your question. could you please try to
clarify what you would like to know?

d

On Sunday, 25 March 2018 07:47:27 UTC+1, qile...@gmail.com wrote:

class AppConfig(DependencyProvider):

@event_handler('config', 'update', handler_type=BROADCAST,
reliable_delivery=False)
def on_config_updated(self, payload):
load_config()