microsoft/Forge

Make RetryExhaustedOnAction and TimeoutOnAction strings accessible from Tree

Open

#26 ouverte le 20 août 2020

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)C# (59 forks)auto 404
enhancementgood first issue

Métriques du dépôt

Stars
 (331 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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

Guide contributeur