cohtml.Net.IDataStorageHandler

Class that will handle data storage requests.

Inherits from SystemIDisposable

Public Functions

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)

Protected Attributes

Name
boolswigCMemOwn

Public Functions Documentation

function Dispose

virtual void Dispose()

function IDataStorageHandler

IDataStorageHandler()

function OnDataStorageRead

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

function OnDataStorageWrite

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

function OnDataStorageRemove

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

function OnDataStorageClear

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

function OnDataStorageCount

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

delegate void SwigDelegateIDataStorageHandler_0(
    global.System.IntPtr request,
    global.System.IntPtr response,
    global.System.IntPtr swigId
)

function SwigDelegateIDataStorageHandler_1

delegate bool SwigDelegateIDataStorageHandler_1(
    string id,
    string key,
    string value,
    global.System.IntPtr swigId
)

function SwigDelegateIDataStorageHandler_2

delegate void SwigDelegateIDataStorageHandler_2(
    string id,
    string key,
    global.System.IntPtr swigId
)

function SwigDelegateIDataStorageHandler_3

delegate void SwigDelegateIDataStorageHandler_3(
    string id,
    global.System.IntPtr swigId
)

function SwigDelegateIDataStorageHandler_4

delegate uint SwigDelegateIDataStorageHandler_4(
    string id,
    global.System.IntPtr swigId
)

Protected Attributes Documentation

variable swigCMemOwn

bool swigCMemOwn;