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, 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 WorkflowId, string WorkflowType, string ActivityType, string ActivityTaskQueue, bool IsLocal)

Parameters

Namespace string

Workflow/activity namespace.

WorkflowId string

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

ActivityType string

Activity Type.

ActivityTaskQueue string

ActivityTaskQueue.

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

ActivityTaskQueue

ActivityTaskQueue.

public string ActivityTaskQueue { get; init; }

Property Value

string

ActivityType

Activity Type.

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

public string WorkflowType { get; init; }

Property Value

string