Giter Site home page Giter Site logo

Comments (2)

kklldog avatar kklldog commented on May 18, 2024

image

目前是值支持键值对这种形式吗? 比如我想在客户端里读出一个配置节点的对象,应该怎么操作呢?

目前只支持简单的k/v,或者利用ioption支持一层的简单对象嵌套。
比如你图上配置的有2个方法来处理
1.完完全全当键值对来处理,根据dbconn获取值然后自己反序列化成对象,我觉得这样挺好,简单暴力,一目了然。
2.你可以这样配置: group=dbcon key=friut value=123 然后定义一个class xxx{ public string friut {get;set;} } 然后可以使用ioption模式自动反序列化, 参考sample示例的使用方式。

from agileconfig.

Ran-snow avatar Ran-snow commented on May 18, 2024

了解了,因为我这现有的配置,有个配置项的值是个列表... 我了解下源代码先,

from agileconfig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.