Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        public static void SendEvent(model_session sess)
        {
            var ret = JsonConvert.SerializeObject(sess);

            MainAsync(new string[] { ret }).GetAwaiter().GetResult();
        }