public virtual bool Remove(T e) { ThrowExceptionIfNull(e); var value = ToData(e); var request = TransactionalListRemoveCodec.EncodeRequest(GetName(), GetTransactionId(), GetThreadId(), value); return(Invoke(request, m => TransactionalListRemoveCodec.DecodeResponse(m).response)); }
/// <inheritoc /> public async Task <bool> RemoveAsync(TItem item) { var itemData = ToData(item); var requestMessage = TransactionalListRemoveCodec.EncodeRequest(Name, TransactionId, ContextId, itemData); var responseMessage = await Cluster.Messaging.SendToMemberAsync(requestMessage, TransactionClientConnection).CAF(); return(TransactionalListRemoveCodec.DecodeResponse(responseMessage).Response); }