public override async Task Invoke() { m_infoClient = new InfoClient(currentSetting.apiUrl); //await Task.Run(() => { }); var ret = await m_infoClient.LoadInfo(); Debug.Log("InfoClient Ret : " + ret.status.ToString()); m_infoResp = ret; }
async Task <InfoData.Response> ClientJob(LambdaInfoArg data, ILambdaContext ctx) { InfoData.Response ret = null; var infoClient = new InfoClient(""); if (data.mode == "load") { ret = await infoClient.LoadInfo(); } else { ret = await Task.Run(() => { return(new InfoData.Response() { status = InfoError.E_INVALID_ARGS.ToString() }); }); } return(ret); }