Skip to content
SiteEmail

cohtml.Net.IDataStorageHandler

Class that will handle data storage requests.

Inherits from SystemIDisposable

Name
virtual voidDispose()
IDataStorageHandler()
virtual voidOnDataStorageRead(IDataStorageRequest request, IDataStorageResponse response)
Called when data storage needs a key or value data.
virtual boolOnDataStorageWrite(string id, string key, string value)
Called when data storage needs a data to be stored for a specific ID and key If data collection for that ID doesn’t exist it should be created.
virtual voidOnDataStorageRemove(string id, string key)
Called when data storage needs a data to be removed from the collection.
virtual voidOnDataStorageClear(string id)
Called when data storage needs all data for a given collection to be cleared.
virtual uintOnDataStorageCount(string id)
Called when data storage needs the count of all data stored in a specific collection.
delegate voidSwigDelegateIDataStorageHandler_0(global.System.IntPtr request, global.System.IntPtr response, global.System.IntPtr swigId)
delegate boolSwigDelegateIDataStorageHandler_1(string id, string key, string value, global.System.IntPtr swigId)
delegate voidSwigDelegateIDataStorageHandler_2(string id, string key, global.System.IntPtr swigId)
delegate voidSwigDelegateIDataStorageHandler_3(string id, global.System.IntPtr swigId)
delegate uintSwigDelegateIDataStorageHandler_4(string id, global.System.IntPtr swigId)
Name
boolswigCMemOwn
virtual void Dispose()
IDataStorageHandler()
virtual void OnDataStorageRead(
IDataStorageRequest request,
IDataStorageResponse response
)

Called when data storage needs a key or value data.

Parameters:

  • request object describing the data requested
  • response object where to pass the data read
virtual bool OnDataStorageWrite(
string id,
string key,
string value
)

Called when data storage needs a data to be stored for a specific ID and key If data collection for that ID doesn’t exist it should be created.

Parameters:

  • id of the data collection
  • key for storing the value
  • value that needs to be stored
virtual void OnDataStorageRemove(
string id,
string key
)

Called when data storage needs a data to be removed from the collection.

Parameters:

  • id of the data collection
  • key that needs to be removed
virtual void OnDataStorageClear(
string id
)

Called when data storage needs all data for a given collection to be cleared.

Parameters:

  • id of the data collection
virtual uint OnDataStorageCount(
string id
)

Called when data storage needs the count of all data stored in a specific collection.

Parameters:

  • id of the data collection

function SwigDelegateIDataStorageHandler_0

Section titled “function SwigDelegateIDataStorageHandler_0”
delegate void SwigDelegateIDataStorageHandler_0(
global.System.IntPtr request,
global.System.IntPtr response,
global.System.IntPtr swigId
)

function SwigDelegateIDataStorageHandler_1

Section titled “function SwigDelegateIDataStorageHandler_1”
delegate bool SwigDelegateIDataStorageHandler_1(
string id,
string key,
string value,
global.System.IntPtr swigId
)

function SwigDelegateIDataStorageHandler_2

Section titled “function SwigDelegateIDataStorageHandler_2”
delegate void SwigDelegateIDataStorageHandler_2(
string id,
string key,
global.System.IntPtr swigId
)

function SwigDelegateIDataStorageHandler_3

Section titled “function SwigDelegateIDataStorageHandler_3”
delegate void SwigDelegateIDataStorageHandler_3(
string id,
global.System.IntPtr swigId
)

function SwigDelegateIDataStorageHandler_4

Section titled “function SwigDelegateIDataStorageHandler_4”
delegate uint SwigDelegateIDataStorageHandler_4(
string id,
global.System.IntPtr swigId
)
bool swigCMemOwn;