Class DataStore.ContentAccessor
Inheritance
System.Object
DataStore.ContentAccessor
Namespace: Eco.Core.Serialization
Assembly: Eco.Core.dll
Syntax
public sealed class ContentAccessor : ValueType
Methods
DeleteEntry(String)
Deletes entry with given name in DataStore.
Declaration
public void DeleteEntry(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
ExecuteAsync(DataStore.ExclusiveAccess, DataStoreContentAccessorDelegate)
Declaration
public static ValueTask ExecuteAsync(DataStore.ExclusiveAccess exclusiveAccess, DataStoreContentAccessorDelegate action)
Parameters
| Type | Name | Description |
|---|---|---|
| DataStore.ExclusiveAccess | exclusiveAccess | |
| DataStoreContentAccessorDelegate | action |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.ValueTask |
Flush()
Declaration
public void Flush()
UpdateEntry(String, WriteDelegate)
Updates entry with name with content written by writeDelegate. Aware that writeDelegate may be called multiple times!
Declaration
public void UpdateEntry(string name, WriteDelegate writeDelegate)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | |
| Ionic.Zip.WriteDelegate | writeDelegate |