Skip to content

Commit

Permalink
update workflow name
Browse files Browse the repository at this point in the history
  • Loading branch information
lorensr committed Mar 28, 2024
1 parent d96d94d commit 33c379e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Timer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async Task RunWorkerAsync()
client,
new TemporalWorkerOptions(taskQueue: "timer-sample").
AddActivity(MyActivities.Charge).
AddWorkflow<MyWorkflow>());
AddWorkflow<Subscription>());
try
{
await worker.ExecuteAsync(tokenSource.Token);
Expand All @@ -46,7 +46,7 @@ async Task ExecuteWorkflowAsync()
{
Console.WriteLine("Executing workflow");
await client.ExecuteWorkflowAsync(
(MyWorkflow wf) => wf.RunAsync("user-id-123"),
(Subscription wf) => wf.RunAsync("user-id-123"),
new(id: "timer-workflow-id", taskQueue: "timer-sample"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace TemporalioSamples.Timer;
using Temporalio.Workflows;

[Workflow]
public class MyWorkflow
public class Subscription
{
[WorkflowRun]
public async Task RunAsync(string userId)
Expand Down
File renamed without changes.

0 comments on commit 33c379e

Please sign in to comment.