code: def register(self, correlation_id, connection):
          
          result = self._register_in_discovery(correlation_id, connection)
          
          if result:
              self._connections.append(connection)
docs: Registers the given connection in all referenced discovery services.
          This method can be used for dynamic service discovery.
  
          :param correlation_id: (optional) transaction id to trace execution through call chain.
  
          :param connection: a connection to register.