microsoft/Forge

Make RetryExhaustedOnAction and TimeoutOnAction strings accessible from Tree

Open

#26 geöffnet am 20. Aug. 2020

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (59 Forks)auto 404
enhancementgood first issue

Repository-Metriken

Stars
 (331 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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",

Contributor Guide