(self)
return self.local.client
Directly access the BusClient instance

        Useful in some edge-cases, such as mocking within the tests
Directly access the BusClient instance
Directly access the BusClient instance
def proxied_client(self):
        """Directly access the BusClient instance

        Useful in some edge-cases, such as mocking within the tests
        """
        if not self.enabled:
            return self.main_client

        if not hasattr(self.local, "client"):
            logger.debug(f"Creating new client for thread {threading.current_thread().name}")
            self.local.client = self._create_client()
        return self.local.client
def proxied_client ( self ) : if not self . enabled : return self . main_client if not hasattr ( self . local , "client" ) : logger . debug ( f"Creating new client for thread {threading.current_thread().name}" ) self . local . client = self . _create_client ( ) return self . local . client