Skip to main content

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
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.

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

Was this page helpful?