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