Getting below error Error CS1929 'ISetupActivity' does not contain a definition for 'GetInput' and the best extension method overload 'ExpressionExecutionContextExtensions.GetInput(ExpressionExecutionContext, InputDefinition)' requires a receiver of type 'Elsa.Expressions.Models.ExpressionExecutionContext' #5590
Replies: 1 comment
-
It seems like you are trying to use the To resolve this issue, you need to ensure that you are calling protected override async ValueTask<IActivityExecutionResult> OnExecuteAsync(ActivityExecutionContext context)
{
var flag = context.GetInput<bool>("Flag");
// Your logic here
} If you are trying to access the input during the setup phase of an activity, you should use the public class MyActivity : Activity
{
public Input<bool> Flag { get; set; }
protected override async ValueTask<IActivityExecutionResult> OnExecuteAsync(ActivityExecutionContext context)
{
var flag = await context.EvaluateAsync(Flag);
// Your logic here
}
} Please make sure you are using the correct method in the correct context. If you need further assistance, please provide more details about where and how you are trying to use This comment was generated by Glime. |
Beta Was this translation helpful? Give feedback.
-
Getting below error .If(context => context.GetInput("Flag")) Error CS1929 'ISetupActivity' does not contain a definition for 'GetInput' and the best extension method overload 'ExpressionExecutionContextExtensions.GetInput(ExpressionExecutionContext, InputDefinition)' requires a receiver of type 'Elsa.Expressions.Models.ExpressionExecutionContext'
Beta Was this translation helpful? Give feedback.
All reactions