예제 #1
0
 public async Task Update(LiveDataModel liveDataModel)
 {
     await _httpClient.PostJsonAsync(PathHelper.GetApiServerPath("livedata", "update"), liveDataModel);
 }
예제 #2
0
        public static void SendMessage(this IHubContext <MainHub> hub, string type, object obj)
        {
            var data = new LiveDataModel(type, obj);

            hub.Clients.All.SendAsync("update", data);
        }