Skip to content

Commit

Permalink
fix: added null, this is set by hangfire when running
Browse files Browse the repository at this point in the history
  • Loading branch information
pksorensen committed Oct 18, 2023
1 parent 4a77e92 commit 1fe2110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/WorkflowEngine.DemoApp/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IService
(executor) => executor.TriggerAsync(new TriggerContext {
Workflow = workflows.First(),
Trigger = new Trigger { ScheduledTime = DateTimeOffset.UtcNow, Key = workflows.First().Manifest.Triggers.First().Key,
Type =workflows.First().Manifest.Triggers.First().Value.Type }, RunId = Guid.NewGuid() }));
Type =workflows.First().Manifest.Triggers.First().Value.Type }, RunId = Guid.NewGuid() },null));

await c.Response.WriteAsync("Background JOb:" + a);

Expand Down Expand Up @@ -333,7 +333,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IService
Key = workflows.First(w => w.Id.ToString() == c.GetRouteValue("id") as string).Manifest.Triggers.FirstOrDefault().Key
},
Workflow = workflows.First(w=>w.Id.ToString() == c.GetRouteValue("id") as string)
}));
},null));

await c.Response.WriteAsync("Background JOb:" + a);

Expand Down

0 comments on commit 1fe2110

Please sign in to comment.