コード例 #1
0
        public override async Task <bool> IsEmptyAsync()
        {
            var requestMessage  = SetIsEmptyCodec.EncodeRequest(Name);
            var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CfAwait();

            return(SetIsEmptyCodec.DecodeResponse(responseMessage).Response);
        }
コード例 #2
0
        public override bool IsEmpty()
        {
            var request = SetIsEmptyCodec.EncodeRequest(GetName());

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