BAOS .net SDK
18.2.0
|
BaosHeartbeat sends periodically a heartbeat. More...
#include <BaosHeartbeat.h>
Public Member Functions | |
BaosHeartbeat (Connector^connector) | |
Creates a BaosHearbeat class. More... | |
~BaosHeartbeat () | |
Destroys the BaosHeartbeat Destructor cleans up unmanaged and managed resources. More... | |
void | start () |
Starts the heartbeat service. More... | |
void | stop () |
Stops the hearbeat service. More... | |
Protected Member Functions | |
!BaosHeartbeat () | |
Finalizer (non-deterministic destructor) cleans up unmanaged resources. More... | |
BaosHeartbeat sends periodically a heartbeat.
DEPRECATED In a previous version did the StreamConnector no heartbeat. Now th StreamConnector implemented internally the heartbeat. So this class is no more needed. Its exists only for backward compatibility.
kdrive::baos::bindings::BaosHeartbeat::BaosHeartbeat | ( | Connector^ | connector | ) |
Creates a BaosHearbeat class.
It keeps a reference to the connector internally so it can periodically send a request to the server. Nothing will happen however until you call start
kdrive::baos::bindings::BaosHeartbeat::~BaosHeartbeat | ( | ) |
Destroys the BaosHeartbeat Destructor cleans up unmanaged and managed resources.
|
protected |
Finalizer (non-deterministic destructor) cleans up unmanaged resources.
void kdrive::baos::bindings::BaosHeartbeat::start | ( | ) |
Starts the heartbeat service.
This will periodically send a data request until stopped.
void kdrive::baos::bindings::BaosHeartbeat::stop | ( | ) |
Stops the hearbeat service.