Class ArtifactDataResolver
Namespace: Workspace.XBR.Xperiflow.Routines.Io
Assembly: Xperiflow.dll
Declaration
public class ArtifactDataResolver : IArtifactDataResolver
Implements: Workspace.XBR.Xperiflow.Routines.Io.IArtifactDataResolver
Methods
ReadDataAsObjectAsync<T>(Artifact, CancellationToken)
Reads the artifact data from the filesystem into a strongly typed object T.
Declaration
public 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. |
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object,System.Object)
System.Object.GetHashCode
System.Object.GetType
System.Object.MemberwiseClone
System.Object.ReferenceEquals(System.Object,System.Object)
System.Object.ToString