Hi, so I'm converting things across from cloudscript to azure functions and I've a question about the context model.
For functions called from the client I'm using the method in the github example project to create the function context, and then a server api instance:
// using HttpRequestMessage requestvar context = await FunctionContext<T>.Create(request); Settings.TrySetSecretKey(context.ApiSettings); var serverApi = new PlayFabServerInstanceAPI(context.ApiSettings, context.AuthenticationContext);
As far as I can see there's no equivalent Create for the scheduled Task Function Execution Context, so how do I go about creating a server api instance in this case?
// HttpRequest req ScheduledTaskFunctionExecutionContext<dynamic> context = JsonConvert.DeserializeObject<ScheduledTaskFunctionExecutionContext<dynamic>>(await req.ReadAsStringAsync());
What's the step I'm missing?