public void Delete(CancelItems request) { var itemIds = request.ItemIds.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries); var task = _syncManager.CancelItems(request.TargetId, itemIds); Task.WaitAll(task); }