示例#1
0
        private async Task <bool> IsEmptyAsync(CancellationToken cancellationToken)
        {
            var requestMessage  = MapIsEmptyCodec.EncodeRequest(Name);
            var responseMessage = await Cluster.Messaging.SendAsync(requestMessage, cancellationToken).CAF();

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

            return(response);
        }
        public bool IsEmpty()
        {
            var request = MapIsEmptyCodec.EncodeRequest(GetName());

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