public async Task <IHttpActionResult> SendHubInfoSession() { var t = new evgEvents.evgEvents(); var tr = new model_session() { sessionid = Guid.NewGuid().ToString(), dtUTC = DateTime.UtcNow }; await Task.Run(() => evgEvents.evgEvents.MainAsync(null).GetAwaiter().GetResult()); return(Ok(tr)); }
public IHttpActionResult SetInfoSession() { var t = new dataLake(); var tr = new model_session() { sessionid = Guid.NewGuid().ToString(), dtUTC = DateTime.UtcNow }; JsonSerializer serializer = new JsonSerializer(); var ret = JsonConvert.SerializeObject(tr); t.UploadSession(ret, tr.dtUTC); return(Ok(tr)); }
public static void SendEvent(model_session sess) { var ret = JsonConvert.SerializeObject(sess); MainAsync(new string[] { ret }).GetAwaiter().GetResult(); }