private static void read() { foreach (object o in _messages.GetConsumingEnumerable(_cancellationSource.Token)) { var json = JsonSerialization.ToJson(o); https.SendMessage(json); } }
private static void read() { foreach (object o in _messages.GetConsumingEnumerable(_cancellationSource.Token)) { var json = JsonSerialization.ToJson(o); https.SendMessage(json); } }