예제 #1
0
        public SettingOutputDto Read(string root)
        {
            ISetting setting;

            switch (root)
            {
            case "System":
                setting = _keyValueStore.GetSetting <SystemSetting>();
                break;

            default:
                throw new OsharpException($"未知的设置根节点: {root}");
            }

            return(new SettingOutputDto(setting));
        }