コード例 #1
0
        /// <summary>
        /// Reads single scene.
        /// </summary>
        /// <param name="uuid"></param>
        /// <returns></returns>
        public async Task <(SceneInfo Data, DataStatus Status)> DataReadSceneAsync(Guid uuid)
        {
            var(scene, status) = await ReadSceneAsync(uuid);

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

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