Skip to main content

Class ArtifactInfo

A wrapper class around a stored Artifact and in-memory Artifact for convenience.

Namespace: Workspace.XBR.Xperiflow.Routines.Artifacts

Assembly: Xperiflow.dll

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

Declaration
public bool HasArtifactStored { get; }

HasInMemoryArtifact​

Whether or not the Artifact is in memory. If true, the Artifact can be retrieved from the

Declaration
public bool HasInMemoryArtifact { get; }

QualifiedKey​

The qualified key of the artifact. See Workspace.XBR.Xperiflow.Routines.Artifacts.ArtifactMetadata.QualifiedKey for more information.

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

Declaration
public Task<InMemoryJsonArtifact?> GetInMemoryJsonArtifactAsync(CancellationToken cancellationToken = default)
Returns​

Task< Workspace.XBR.Xperiflow.Routines.Artifacts.InMemoryJsonArtifact >

Parameters​
TypeName
System.Threading.CancellationTokencancellationToken

GetArtifactAsync(CancellationToken)​

Retrieves the artifact, lazily loading it if necessary in a thread-safe manner.

Declaration
public Task<Artifact?> GetArtifactAsync(CancellationToken cancellationToken = default)
Returns​

Task< Workspace.XBR.Xperiflow.Routines.Artifacts.Artifact >

Parameters​
TypeName
System.Threading.CancellationTokencancellationToken

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?