Table of Contents

Class ISerializationContext.Activity

Namespace
Temporalio.Converters
Assembly
Temporalio.dll

Serialization context for activities. See WithSerializationContext(ISerializationContext) for information on when this is made available to converters and codecs.

public sealed record ISerializationContext.Activity : ISerializationContext.IHasWorkflow, ISerializationContext, IEquatable<ISerializationContext.Activity>
Inheritance
ISerializationContext.Activity
Implements
Inherited Members

Remarks

WARNING: This constructor may have required properties added and is not guaranteed to remain compatible from one version to the next.

Constructors

Activity(string, string?, string?, string?, string?, string?, bool)

Serialization context for activities. See WithSerializationContext(ISerializationContext) for information on when this is made available to converters and codecs.

public Activity(string Namespace, string? ActivityId, string? WorkflowId, string? WorkflowType, string? ActivityType, string? ActivityTaskQueue, bool IsLocal)

Parameters

Namespace string

Workflow/activity namespace.

ActivityId string

Activity ID. Only set for standalone activities.

WorkflowId string

Workflow ID. Only set for workflow activities. Note, when creating/describing schedules, this may be the workflow ID prefix as configured, not the final workflow ID when the workflow is created by the schedule.

WorkflowType string

Workflow type. Only set for workflow activities.

ActivityType string

Activity type.

ActivityTaskQueue string

Activity task queue.

IsLocal bool

Whether the activity is a local activity.

Remarks

WARNING: This constructor may have required properties added and is not guaranteed to remain compatible from one version to the next.

Activity(ActivityInfo)

Initializes a new instance of the ISerializationContext.Activity class using info.

public Activity(ActivityInfo info)

Parameters

info ActivityInfo

Info available within an activity.

Properties

ActivityId

Activity ID. Only set for standalone activities.

public string? ActivityId { get; init; }

Property Value

string

ActivityTaskQueue

Activity task queue.

[Obsolete("This value may not be set in some situations and should not be relied on.")]
public string? ActivityTaskQueue { get; init; }

Property Value

string

ActivityType

Activity type.

[Obsolete("This value may not be set in some situations and should not be relied on.")]
public string? ActivityType { get; init; }

Property Value

string

IsLocal

Whether the activity is a local activity.

public bool IsLocal { get; init; }

Property Value

bool

Namespace

Workflow/activity namespace.

public string Namespace { get; init; }

Property Value

string

WorkflowId

Workflow ID. Only set for workflow activities. Note, when creating/describing schedules, this may be the workflow ID prefix as configured, not the final workflow ID when the workflow is created by the schedule.

public string? WorkflowId { get; init; }

Property Value

string

WorkflowType

Workflow type. Only set for workflow activities.

public string? WorkflowType { get; init; }

Property Value

string