forked from p15670423/monkey
Island: Use interface instead of concrete in island_event_handlers
This commit is contained in:
parent
ba724db969
commit
7f29e0342d
|
@ -1,10 +1,10 @@
|
|||
from common import DIContainer
|
||||
from monkey_island.cc.event_queue import IslandEventTopic, PyPubSubIslandEventQueue
|
||||
from monkey_island.cc.event_queue import IIslandEventQueue, IslandEventTopic
|
||||
from monkey_island.cc.island_event_handlers import reset_agent_configuration
|
||||
|
||||
|
||||
def setup_island_event_handlers(container: DIContainer):
|
||||
event_queue = container.resolve(PyPubSubIslandEventQueue)
|
||||
event_queue = container.resolve(IIslandEventQueue)
|
||||
|
||||
event_queue.subscribe(
|
||||
IslandEventTopic.RESET_AGENT_CONFIGURATION, container.resolve(reset_agent_configuration)
|
||||
|
|
Loading…
Reference in New Issue