public async Task Send(TopicEnum topic, string topicParameter, string message) { var e = new BroadcastEvent(topic.ToString(), topicParameter, message, "V1"); var content = new StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(e), Encoding.UTF8, "application/json"); var response = await client.PostAsync(url, content); }
public async Task Send(TopicEnum topic, string message, IMessageBroadcastParameter parameter) { throw new NotImplementedException(); }
public async Task Send(TopicEnum topic, string topicParameter, string message) { Console.WriteLine($"TOPIC {topic}/{topicParameter}: {message}"); }