/// <summary> /// Reads single endpoint. /// </summary> /// <param name="uuid"></param> /// <returns></returns> public async Task <(EndpointInfo Data, DataStatus Status)> DataReadEndpointAsync(Guid uuid) { var(endpoint, status) = await ReadEndpointAsync(uuid, EndpointFlags.ALL); if (status.IsGood) { Data.UpdateEndpoints(endpoint); } else { _logger?.LogError($"Error code {status.Code} in reading endpoint: {status.Explanation}."); } Data.Status = status; return(endpoint, Data.Status); }