System.Tether.Manager.TTetheringCustomStorage

From RAD Studio API Documentation
Jump to: navigation, search

System.TObjectTTetheringCustomStorage

Delphi

TTetheringCustomStorage = class

C++

class PASCALIMPLEMENTATION DECLSPEC_DRTTI TTetheringCustomStorage : public System::TObject

Properties

Type Visibility Source Unit Parent
class public
System.Tether.Manager.pas
System.Tether.Manager.hpp
System.Tether.Manager System.Tether.Manager

Description

Base class for persisting the pairing data of a manager between sessions.

By default, managers store the information about which remote managers are paired to them in memory. As a result, your manager can reconnect to a previously-paired remote manager, but only during the same session. If you restart your application, your manager looses its pairing data and cannot reconnect to previously-paired remote managers automatically, without using a password again if a password is required.

You can implement a subclass of TTetheringCustomStorage and assign an instance to the AStorage parameter of the OnRequestStorage event of your manager to provide persistence to your manager. Your implementation can store this data in a persistent media, such as a local file.

To implement a subclass of TTetheringCustomStorage, you must implement the following members that are responsible for saving and loading the pairing information:

See Also