'WorkFlowDefination not Found in Elsa 2.4 Version

I am new in Elsa .net library.

I have define one Activity in which i have to define input paramater for the activity

like below way as document saw in version 1 :

 public WorkflowExpression<string> UserId {
            get => GetState<WorkflowExpression<string>>();
            set => SetState(value);
        }

but it give me error that The type or namespace could not found

as i don't know can somebody help me with this.

I read the whole documentation nothing will define this.

Any Help will be appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source