public override bool AddAll <TE>(ICollection <TE> c) { var values = ToDataList(c); var request = SetAddAllCodec.EncodeRequest(GetName(), values); return(Invoke(request, m => SetAddAllCodec.DecodeResponse(m).response)); }
public override async Task <bool> AddRangeAsync <TItem>(ICollection <TItem> items) { var itemsData = ToSafeData(items); var requestMessage = SetAddAllCodec.EncodeRequest(Name, itemsData); var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CAF(); return(SetAddAllCodec.DecodeResponse(responseMessage).Response); }