Skip to content

Adding a new parameterless constructor to ExecutionRewoundEvent - #1383

Open
sophiatev wants to merge 1 commit into
mainfrom
stevosyan/execution-rewound-ctor-fix
Open

Adding a new parameterless constructor to ExecutionRewoundEvent#1383
sophiatev wants to merge 1 commit into
mainfrom
stevosyan/execution-rewound-ctor-fix

Conversation

@sophiatev

Copy link
Copy Markdown
Contributor

Added a new private parameterless constructor for the ExecutionRewoundEvent to enable JSON deserialization, otherwise it cannot choose between the two constructors with parameters

Copilot AI lite review requested due to automatic review settings August 5, 2026 21:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a private parameterless constructor to ExecutionRewoundEvent to unblock JSON deserialization scenarios where constructor selection is ambiguous (aligning with existing patterns in other history event types).

Changes:

  • Added a private parameterless constructor (: base(-1)) to ExecutionRewoundEvent to support JSON deserialization.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +42 to +46
// Private ctor for JSON deserialization (required by some storage providers and out-of-proc executors)
ExecutionRewoundEvent()
: base(-1)
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants