Skip to main content

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
TypeNameDescription
Workspace.XBR.Xperiflow.Routines.Artifacts.ArtifactartifactThe artifact whose data is being read.
System.Threading.CancellationTokencancellationTokenOptional cancellation.
Type Parameters
NameDescription
TThe type to read into (e.g. DataTable, string, JObject, etc.). Note that not all .NET datatypes are applicable.

Was this page helpful?