Show / Hide Table of Contents

Class DataStore.ContentAccessor

DataStore content accessor which allows to perform safe DataStore modifications by other classes.

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

Extension Methods

PropertyChanges.FirePropertyChanged(Object, String)
PropertyChanges.FirePropertyChanged(Object, String, Object, Object)
PropertyChanges.FirePropertyChanged(Object, MemberChangedBeforeAfterEventArgs)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾