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); }
public override bool Remove(T item) { var request = SetRemoveCodec.EncodeRequest(GetName(), ToData(item)); return(Invoke(request, m => SetRemoveCodec.DecodeResponse(m).response)); }