public ISet <K> KeySet()
        {
            var request = MapKeySetCodec.EncodeRequest(GetName());
            var result  = Invoke(request, m => MapKeySetCodec.DecodeResponse(m).list);

            return(ToSet <K>(result));
        }
Example #2
0
        public ISet <TKey> KeySet()
        {
            var request = MapKeySetCodec.EncodeRequest(GetName());
            var result  = Invoke(request, m => MapKeySetCodec.DecodeResponse(m).response);

            return(new ReadOnlyLazySet <TKey>(result, GetContext().GetSerializationService()));
        }
Example #3
0
        public ISet <TKey> KeySet()
        {
            var request = MapKeySetCodec.EncodeRequest(Name);
            var result  = Invoke(request, m => MapKeySetCodec.DecodeResponse(m).Response);

            return(new ReadOnlyLazySet <TKey>(result, Client.SerializationService));
        }
Example #4
0
        private async Task <IReadOnlyList <TKey> > GetKeysAsync(CancellationToken cancellationToken)
        {
            var requestMessage  = MapKeySetCodec.EncodeRequest(Name);
            var responseMessage = await Cluster.Messaging.SendAsync(requestMessage, cancellationToken).CAF();

            var response = MapKeySetCodec.DecodeResponse(responseMessage).Response;

            return(new ReadOnlyLazyList <TKey>(response, SerializationService));
        }