Skip to content

Commit 93adb1d

Browse files
committed
fb
1 parent e796a41 commit 93adb1d

File tree

3 files changed

+3
-29
lines changed

3 files changed

+3
-29
lines changed

samples/ScheduleWebApp/Orchestrations/CacheClearingOrchestrator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public override async Task<string> RunAsync(TaskOrchestrationContext context, st
1515
{
1616
logger.LogInformation("Starting CacheClearingOrchestration for schedule ID: {ScheduleId}", scheduleId);
1717

18-
CallActivityOptions options = new CallActivityOptions(tags: new Dictionary<string, string>
18+
TaskOptions options = new TaskOptions(tags: new Dictionary<string, string>
1919
{
2020
{ "scheduleId", scheduleId }
2121
});

src/Abstractions/TaskOptions.cs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -135,29 +135,3 @@ public record StartOrchestrationOptions(string? InstanceId = null, DateTimeOffse
135135
/// </summary>
136136
public TaskVersion? Version { get; init; }
137137
}
138-
139-
/// <summary>
140-
/// Options for calling activities from an orchestrator.
141-
/// </summary>
142-
public record CallActivityOptions : TaskOptions
143-
{
144-
/// <summary>
145-
/// Initializes a new instance of the <see cref="CallActivityOptions"/> class.
146-
/// </summary>
147-
/// <param name="retry">The task retry options.</param>
148-
/// <param name="tags">The tags to associate with the activity.</param>
149-
public CallActivityOptions(TaskRetryOptions? retry = null, IDictionary<string, string>? tags = null)
150-
: base(retry, tags)
151-
{
152-
}
153-
154-
/// <summary>
155-
/// Initializes a new instance of the <see cref="CallActivityOptions"/> class.
156-
/// </summary>
157-
/// <param name="options">The task options to wrap.</param>
158-
/// <param name="tags">The tags to associate with the activity.</param>
159-
public CallActivityOptions(TaskOptions options, IDictionary<string, string>? tags = null)
160-
: base(options.Retry, tags ?? options.Tags)
161-
{
162-
}
163-
}

src/Worker/Core/Shims/TaskOrchestrationContextWrapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ public override async Task<T> CallActivityAsync<T>(
138138

139139
try
140140
{
141-
IDictionary<string, string>? tags = new Dictionary<string, string>();
142-
if (options is CallActivityOptions callActivityOptions)
141+
IDictionary<string, string> tags = new Dictionary<string, string>();
142+
if (options is TaskOptions callActivityOptions)
143143
{
144144
if (callActivityOptions.Tags is not null)
145145
{

0 commit comments

Comments
 (0)