Skip to content

Commit

Permalink
Change JobSaga State Machine GetJobState event to ReadOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
phatboyg committed Aug 8, 2023
1 parent 5dffe56 commit 10c10ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/MassTransit/JobService/JobStateMachine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public JobStateMachine()
Event(() => GetJobState, x =>
{
x.CorrelateById(m => m.Message.JobId);
x.ReadOnly = true;
x.OnMissingInstance(i => i.ExecuteAsync(context => context.RespondAsync<JobState>(new
{
context.Message.JobId,
Expand Down

0 comments on commit 10c10ca

Please sign in to comment.