// <inheritdoc /> // need to have it because HCollection but feels weird // maybe we need to have something above HCollection? public override async Task <bool> AddAll <TItem>(ICollection <TItem> items) { var itemsData = ToSafeData(items); var requestMessage = QueueAddAllCodec.EncodeRequest(Name, itemsData); var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CfAwait(); return(QueueAddAllCodec.DecodeResponse(responseMessage).Response); }
public bool AddAll <TE>(ICollection <TE> c) { var request = QueueAddAllCodec.EncodeRequest(GetName(), ToDataList(c)); return(Invoke(request, m => QueueAddAllCodec.DecodeResponse(m).response)); }