forked from p15670423/monkey
Island: Wrap island event handler setup in separate function
This commit is contained in:
parent
7f29e0342d
commit
745027bf93
|
@ -6,6 +6,12 @@ from monkey_island.cc.island_event_handlers import reset_agent_configuration
|
|||
def setup_island_event_handlers(container: DIContainer):
|
||||
event_queue = container.resolve(IIslandEventQueue)
|
||||
|
||||
_handle_reset_agent_configuration_events(event_queue, container)
|
||||
|
||||
|
||||
def _handle_reset_agent_configuration_events(
|
||||
event_queue: IIslandEventQueue, container: DIContainer
|
||||
):
|
||||
event_queue.subscribe(
|
||||
IslandEventTopic.RESET_AGENT_CONFIGURATION, container.resolve(reset_agent_configuration)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue