Table of Contents

Class FileSystemModelStore

Namespace
DCR.Workflow
Assembly
DCR.Workflow.dll
public class FileSystemModelStore : IModelStore
Inheritance
FileSystemModelStore
Implements
Inherited Members
Extension Methods

Constructors

FileSystemModelStore(Runtime)

public FileSystemModelStore(Runtime runtime)

Parameters

runtime Runtime

Properties

Root

public string Root { get; set; }

Property Value

string

Methods

CreateAsync(Model)

public Task<int> CreateAsync(Model model)

Parameters

model Model

Returns

Task<int>

GetAllAsync()

public Task<List<ModelDescriptor>> GetAllAsync()

Returns

Task<List<ModelDescriptor>>

GetAsync(int)

public Task<Model> GetAsync(int id)

Parameters

id int

Returns

Task<Model>

TryWriteAsync(Model)

Attempt to write model to persistent storage

public Task<Model?> TryWriteAsync(Model model)

Parameters

model Model

The model to write

Returns

Task<Model>

Null if the write succeeded, or a new model if the "model" we try to write was updated in the database since we retrieved it.