public virtual ICollection <TValue> Get(TKey key) { var keyData = ToData(key); var request = MultiMapGetCodec.EncodeRequest(GetName(), keyData, ThreadUtil.GetThreadId()); var list = Invoke(request, keyData, m => MultiMapGetCodec.DecodeResponse(m).response); return(ToList <TValue>(list)); }
public virtual ICollection <TValue> Get(TKey key) { var keyData = ToData(key); var request = MultiMapGetCodec.EncodeRequest(GetName(), keyData, ThreadUtil.GetThreadId()); var list = Invoke(request, keyData, m => MultiMapGetCodec.DecodeResponse(m).response); return(new ReadOnlyLazyList <TValue, IData>(list, GetContext().GetSerializationService())); }