':param IDeployer deployer: The deployer which the loop service can use
to interact with the system.
:return: An ``AgentLoopService`` which will use the given deployer to
discover changes to send to the control service and to deploy
configuration changes received from the control service.'

def get_loop_service(self, deployer):

    return AgentLoopService(reactor=self.reactor, deployer=deployer, host=self.control_service_host, port=self.control_service_port, context_factory=self.get_tls_context().context_factory, era=get_era())
