RegisterPersistence Method (PubSubConnection)
- Last UpdatedApr 08, 2026
- 1 minute read
Registers this application as a persistence store.
A persistence store will automatically be subscribed to subscriptions of its topic and to engine health states, so it should be able to handle these message types. This version of the registration will use the blocking receive method for handling the subscription and health messages.
If this routine is called after any call to a callback subscription, then an exception will be raised. If this call is made and receive is not called, then the application will not receive any messages and will eventually be removed from the PubSub system.
PubSubConnection PS = new PubSubConnection();
PS.OpenConnection("192.168.10.10", 5051);
PS.RegisterPersistence("mySystem.MyTopic");
PubSubConnection PS = new PubSubConnection();
PS.OpenConnection("192.168.10.10", 5051);
PS.RegisterPersistence("mySystem.MyTopic");