@new


Description:

public static SessionClient @new ()

Creates the application's SM client instance.

This is best used with get_option_group above (and using the returned OptionGroup with parse), as the command line parsing will figure out many of the SM client's required property values for you.

If you have already created an SessionClient instance using any of the "new" functions, this will return a new reference to the same instance.

Returns:

A new SessionClient instance, or the singleton with its reference count incremented.