cohtml.Net.IDataStorageHandler
Class that will handle data storage requests.
Inherits from SystemIDisposable
Public Functions
Name | |
---|---|
virtual void | Dispose() |
IDataStorageHandler() | |
virtual void | OnDataStorageRead(IDataStorageRequest request, IDataStorageResponse response) Called when data storage needs a key or value data. |
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. |
virtual void | OnDataStorageRemove(string id, string key) Called when data storage needs a data to be removed from the collection. |
virtual void | OnDataStorageClear(string id) Called when data storage needs all data for a given collection to be cleared. |
virtual uint | OnDataStorageCount(string id) Called when data storage needs the count of all data stored in a specific collection. |
delegate void | SwigDelegateIDataStorageHandler_0(global.System.IntPtr request, global.System.IntPtr response, global.System.IntPtr swigId) |
delegate bool | SwigDelegateIDataStorageHandler_1(string id, string key, string value, global.System.IntPtr swigId) |
delegate void | SwigDelegateIDataStorageHandler_2(string id, string key, global.System.IntPtr swigId) |
delegate void | SwigDelegateIDataStorageHandler_3(string id, global.System.IntPtr swigId) |
delegate uint | SwigDelegateIDataStorageHandler_4(string id, global.System.IntPtr swigId) |
Protected Attributes
Name | |
---|---|
bool | swigCMemOwn |
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;