public void Write(Stream buffer) { var message = RawMessage.ReadFromWithHeader(buffer); var textMessage = message.AsTextMessage(); Writes.Add(textMessage); Until.Happened(); }
private void Init(RedisClientSection section) { if (!string.IsNullOrEmpty(section.Cached)) { mCached = new KCached.CacheManager(section.Cached); } foreach (HostItem item in section.Writes) { Writes.Add(new RedisHost(item.Host, item.Connections)); } foreach (HostItem item in section.Reads) { Reads.Add(new RedisHost(item.Host, item.Connections)); } DB = section.DB; }
public override void WriteLine(string message) => Writes.Add(message);
public int Write(byte[] data, int len) { Writes.Add((byte[])data.Clone()); return(len); }