I am building a form using "FormDialog" to which I am passing a "BuildFormDelegate" parameter (a static method). In this method, I need the context to acquire user data
(user data is stored as part of context written using an extension
public static async Task GetAccessToken(this IBotContext context, string resourceId)
) I call the form context as follows:
var calendarform = new FormDialog(new CalendarInput(), MakeCalendarForm, FormOptions.PromptInStart, result);
context.Call(calendarform, CalendarFormComplete);
I need to call the GetAccessToken method in the MakeCalendarForm (which does not take any argument). How can I achieve this?
