public async Task <PublishedItemListResponseApiModel> GetFirstListOfPublishedNodesAsync( string endpointId, [FromBody][Required] PublishedItemListRequestApiModel request) { if (request == null) { throw new ArgumentNullException(nameof(request)); } var result = await _publisher.NodePublishListAsync( endpointId, request.ToServiceModel()); return(result.ToApiModel()); }
/// <summary> /// List published nodes /// </summary> /// <param name="request"></param> /// <returns></returns> public async Task <PublishedItemListResponseApiModel> PublishListAsync( PublishedItemListRequestApiModel request) { if (request == null) { throw new ArgumentNullException(nameof(request)); } var result = await _publisher.NodePublishListAsync( _twin.Endpoint, request.ToServiceModel()); return(new PublishedItemListResponseApiModel(result)); }