dignite / appsettingsbyconvention Goto Github PK
View Code? Open in Web Editor NEWReads settings from the appSettings section of your configuration by convention.
License: MIT License
Reads settings from the appSettings section of your configuration by convention.
License: MIT License
Hello,
Really enjoying implementing this project so far. I was wondering, would it be a stretch to support interface inheritance?
My use case:
I've got my general application stack:
I'd like to put common configuration in an interface in my Business.Core project (shared with Business.A/B), but each Web.A/Business.A and Web.B/Business.B may add their own site-specific config.
Can I just have two separate configs with duplicated properties? Yes. Would it be cooler if I could have a Business.Core.IConfiguration for the common stuff and a Business.A.IConfiguration that extends Business.Core.IConfiguration to add that site-specific config? Hell yes. With dependency injection services like Autofac, I could then register your generated proxy to provide a common configuration service throughout the entire application stack, yet only expose the required subset of configuration at each layer.
I can start looking into a PR for this, if you agree. I'm thinking this would just be a slight change to InterfaceImplementationExtensions
. Thoughts?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.