Interface IArtifactDataResolver
Namespace: Workspace.XBR.Xperiflow.Routines.Io
Assembly: Xperiflow.dll
Declaration
public interface IArtifactDataResolver
Methods
ReadDataAsObjectAsync<T>(Artifact, CancellationToken)
Reads the artifact data from the filesystem into a strongly typed object T.
Declaration
Task<T?> ReadDataAsObjectAsync<T>(Artifact artifact, CancellationToken cancellationToken = default)
Returns
Task<{T}>
The object read from storage, or null if something fails or the type provided to serialize to is not applicable.
Parameters
Type | Name | Description |
---|---|---|
Workspace.XBR.Xperiflow.Routines.Artifacts.Artifact | artifact | The artifact whose data is being read. |
System.Threading.CancellationToken | cancellationToken | Optional cancellation. |
Type Parameters
Name | Description |
---|---|
T | The type to read into (e.g. DataTable, string, JObject, etc.). Note that not all .NET datatypes are applicable. |