Ejemplo n.º 1
0
        public override async Task <int> GetSizeAsync()
        {
            var requestMessage  = SetSizeCodec.EncodeRequest(Name);
            var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CfAwait();

            return(SetSizeCodec.DecodeResponse(responseMessage).Response);
        }
        public override int Size()
        {
            var request = SetSizeCodec.EncodeRequest(GetName());

            return(Invoke(request, m => SetSizeCodec.DecodeResponse(m).response));
        }