GetGlobalPubSubConnection Method
- Last UpdatedApr 08, 2026
- 1 minute read
[Obsolete("Replace usages with --> GlobalPubSubConnectionAccessor.GlobalConnection <-- [DECEMBER 2018]")]
public static PubSubConnection GetGlobalPubSubConnection()
[Obsolete("Replace usages with --> GlobalPubSubConnectionAccessor.GlobalConnection <-- [DECEMBER 2018]")]
public:
static PubSubConnection^ GetGlobalPubSubConnection();
Return Value
This method has been deprecated. Please use GlobalPubSubConnectionAccessor.GlobalConnection.
A global PubSub connection is a static PubSubConnection object that is instantiated once and then used by multiple threads and objects in an application. Global connections are useful for sharing a connection across many objects without requiring the objects to pass an instantiated connection between them.
The global PubSub connection will automatically be initialized, but it will be the responsibility of the calling thread to connect it if the global connection is not connected. The
PubSubConnection PS = PubSubConnection.GetGlobalPubSubConnection();
PS.OpenConnection("192.168.10.10", 0, "myDomain");
Reference
PubSubConnection Class
PubSubConnection Members
PubSubConnection.OpenConnection