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

            return(ToSet <K>(result));
        }
Ejemplo n.º 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()));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }