static BundleContext cppmicroservices::GetBundleContext()

Returns the bundle context of the calling bundle.

This function allows easy access to the BundleContext instance from inside a C++ Micro Services bundle.

The BundleContext of the calling bundle. If the caller is not part of an active bundle, an invalid BundleContext is returned.