Class ArtifactInfo
A wrapper class around a stored Artifact and in-memory Artifact for convenience.
Namespace: Workspace.XBR.Xperiflow.Routines.Artifacts
Assembly: Xperiflow.dll
public class ArtifactInfo
Properties
HasArtifactStored
Whether or not the Artifact was stored in the datastore. If false, the Artifact may be inaccessible unless it was returned via the in-memory execution.
public bool HasArtifactStored { get; }
HasInMemoryArtifact
Whether or not the Artifact is in memory. If true, the Artifact can be retrieved from the
public bool HasInMemoryArtifact { get; }
QualifiedKey
The qualified key of the artifact. See Workspace.XBR.Xperiflow.Routines.Artifacts.ArtifactMetadata.QualifiedKey for more information.
public string QualifiedKey { get; }
Methods
GetInMemoryJsonArtifactAsync(CancellationToken)
Retrieve an in-memory artifact (if it exists). If it does not exist, a null object will be returned.
public Task<InMemoryJsonArtifact?> GetInMemoryJsonArtifactAsync(CancellationToken cancellationToken = default)
Returns
Task
< Workspace.XBR.Xperiflow.Routines.Artifacts.InMemoryJsonArtifact >
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | cancellationToken |
GetArtifactAsync(CancellationToken)
Retrieves the artifact, lazily loading it if necessary in a thread-safe manner.
public Task<Artifact?> GetArtifactAsync(CancellationToken cancellationToken = default)
Returns
Task
< Workspace.XBR.Xperiflow.Routines.Artifacts.Artifact >
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | cancellationToken |
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