コード例 #1
0
        public override async Task <bool> RemoveAsync(T item)
        {
            var itemData        = ToSafeData(item);
            var requestMessage  = SetRemoveCodec.EncodeRequest(Name, itemData);
            var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CAF();

            return(SetRemoveCodec.DecodeResponse(responseMessage).Response);
        }
コード例 #2
0
        public override bool Remove(T item)
        {
            var request = SetRemoveCodec.EncodeRequest(GetName(), ToData(item));

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