cohtml.Net.IDataStorageHandler
Class that will handle data storage requests.
Inherits from SystemIDisposable
Public Functions
Section titled “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
Section titled “Protected Attributes”| Name | |
|---|---|
| bool | swigCMemOwn |
Public Functions Documentation
Section titled “Public Functions Documentation”function Dispose
Section titled “function Dispose”virtual void Dispose()function IDataStorageHandler
Section titled “function IDataStorageHandler”IDataStorageHandler()function OnDataStorageRead
Section titled “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
Section titled “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
Section titled “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
Section titled “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
Section titled “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
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)Protected Attributes Documentation
Section titled “Protected Attributes Documentation”variable swigCMemOwn
Section titled “variable swigCMemOwn”bool swigCMemOwn;© 2026 Coherent Labs. All rights reserved.