示例#1
0
        /// <summary>
        /// Reads single virtual endpoint.
        /// </summary>
        /// <param name="uuid"></param>
        /// <returns></returns>
        public async Task <(VirtualEndpointInfo Data, DataStatus Status)> DataReadVirtualEndpointAsync(Guid uuid)
        {
            var(endpoint, status) = await ReadVirtualEndpointAsync(uuid, VirtualEndpointFlags.ALL);

            if (status.IsGood)
            {
                Data.UpdateVirtualEndpoints(endpoint);
            }
            else
            {
                _logger?.LogError($"Error code {status.Code} in reading virtual endpoint: {status.Explanation}.");
            }

            Data.Status = status;
            return(endpoint, Data.Status);
        }