Пример #1
0
        public IList <string> Keys()
        {
            IList <string> list = new List <string>();

            VisitSubject(RawKeySubject(">"), DeliverPolicy.LastPerSubject, true, false, m => {
                KeyValueOperation op = KeyValueUtil.GetOperation(m.Header, KeyValueOperation.Put);
                if (op.Equals(KeyValueOperation.Put))
                {
                    list.Add(new BucketAndKey(m).Key);
                }
            });
            return(list);
        }
Пример #2
0
 public static KeyValueOperation GetOperation(MsgHeader h, KeyValueOperation dflt)
 {
     return(KeyValueOperation.GetOrDefault(GetOperationHeader(h), dflt));
 }