Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decouple configuration #9

Open
joshoxe opened this issue May 23, 2021 · 0 comments · May be fixed by #8
Open

Decouple configuration #9

joshoxe opened this issue May 23, 2021 · 0 comments · May be fixed by #8

Comments

@joshoxe
Copy link
Collaborator

joshoxe commented May 23, 2021

This is a issue for the previous work that has taken place on Bitbucket/Jira

The configuration is tightly tied into the IRCd class and is an old XML standard - we can instead use appsettings.json and make use of IConfiguration to potentially inject the configuration in places it is needed, rather than passing around the IRCd object

@joshoxe joshoxe self-assigned this May 23, 2021
@joshoxe joshoxe linked a pull request May 23, 2021 that will close this issue
joshoxe added a commit that referenced this issue May 23, 2021
* LoggerElements are now initialised using IOptions
* Attributes now must be specified under a JSON section in the config

Task: #9
joshoxe added a commit that referenced this issue May 23, 2021
joshoxe added a commit that referenced this issue May 23, 2021
joshoxe added a commit that referenced this issue May 23, 2021
* Fixes a lot of the configuration not being deserialized correctly
* Removes a lot of code duplication from validation

Task: #9
joshoxe added a commit that referenced this issue May 23, 2021
joshoxe added a commit that referenced this issue May 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant