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
NamespacestringWorkflow/activity namespace.
ActivityIdstringActivity ID. Only set for standalone activities.
WorkflowIdstringWorkflow 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.
WorkflowTypestringWorkflow type. Only set for workflow activities.
ActivityTypestringActivity type.
ActivityTaskQueuestringActivity task queue.
IsLocalboolWhether 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
infoActivityInfoInfo available within an activity.
Properties
ActivityId
Activity ID. Only set for standalone activities.
public string? ActivityId { get; init; }
Property Value
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
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
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. 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
WorkflowType
Workflow type. Only set for workflow activities.
public string? WorkflowType { get; init; }