public void Publish(string topic, string key, byte[] data) { _snapshotCache.AddOrUpdate(topic, key, data); var message = NetMqMessageExtensions.CreateMessage(topic, data); _publishServer.Publish(message); }
public void Publish(string topic, string key, byte[] data) { _snapshotCache.AddOrUpdate(topic, key, data); _buffer.Add(new Tuple <string, byte[]>(topic, data)); }