1.3.2. ProximieContext
ProximieContext
is a fundamental
object used throughout the SDK. It provides supporting services for the SDK,
such as SSL configuration and user agent string for HTTP requests.
An application will typically create a ProximieContext at initialisation time, and provide it to other SDK objects as and when they are created.
Here, we use the class’s create()
factory function to make a shared pointer to a ProximieContext object.
By default, the context is created with SSL enabled and a default user agent string.
using ProximieContext = Proximie::PxCore::ProximieContext;
auto pxcontext = ProximieContext::create();
See the ProximieContext
class
documentation for more details.
Once the ProximieContext is created, it can be provided to various other SDK objects and functions.