The Wayback Machine - https://web.archive.org/web/20200915161735/https://github.com/microsoft/Forge/issues/26
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make RetryExhaustedOnAction and TimeoutOnAction strings accessible from Tree #26

Open
TravisOnGit opened this issue Aug 20, 2020 · 0 comments

Comments

@TravisOnGit
Copy link
Member

@TravisOnGit TravisOnGit commented Aug 20, 2020

Instead of hard-coding "RetryExhaustedOnAction" and "TimeoutOnAction", let's add public const strings or enums so they are more accessible. They should be accessible through the tree/schema so users can easily check the ActionResponse.Status.

Possible solution is to add a new class to the parameters of the Roslyn script.

"ShouldSelect": "C#|(await Session.GetLastActionResponseAsync()).Status == FooEnums.TimeoutOnAction",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.