예제 #1
0
        /// <summary>
        /// Reads single cluster endpoint.
        /// </summary>
        /// <param name="uuid"></param>
        /// <returns></returns>
        public async Task <(ClusterEndpointInfo Data, DataStatus Status)> DataReadClusterEndpointAsync(Guid uuid)
        {
            var(endpoint, status) = await ReadClusterEndpointAsync(uuid, ClusterEndpointFlags.ALL);

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

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