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
stringWorkflow/activity namespace.
WorkflowId
stringWorkflow 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
stringWorkflow Type.
ActivityType
stringActivity Type.
ActivityTaskQueue
stringActivityTaskQueue.
IsLocal
boolWhether 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
ActivityInfoInfo available within an activity.
Properties
ActivityTaskQueue
ActivityTaskQueue.
public string ActivityTaskQueue { get; init; }
Property Value
ActivityType
Activity Type.
public string ActivityType { get; init; }
Property Value
IsLocal
Whether the activity is a local activity.
public bool IsLocal { get; init; }
Property Value
Namespace
Workflow/activity namespace.
public string Namespace { get; init; }
Property Value
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
WorkflowType
Workflow Type.
public string WorkflowType { get; init; }