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