-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Refactor server to use .NET Generic Host APIs #2314
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
base: master
Are you sure you want to change the base?
Conversation
|
Seems like another huge piece of work and it will be hard to test/integrate. |
e86339e to
32e17bf
Compare
Test Results239 tests 238 ✅ 7s ⏱️ Results for commit 71b7a48. ♻️ This comment has been updated with latest results. |
598fcfd to
467ebf3
Compare
a333b83 to
210277d
Compare
210277d to
3f27081
Compare
5348224 to
0ee1082
Compare
Now exception will be logged again under a log, if available
Added "(REDACTED)" tag to logged IPs if redacted.
Got accidentially removed during merge resolving
This is to avoid accidental paths if server is misconfigured.
This allows code to supply a logger, if interested in logs. Instead of always logging.
|
Will merge this PR in a week from now if no review comments are made. Resetting the count when all review comments are handled. |
NitroxConfigin custom MS configuration provider for validation, CMD args and DI supportNitrox.Model.Logger.Log(i.e. redaction andLogOnce).server.Development.jsonwhich allows developers to override any config property. It should be generated on build if it doesn't exist. And should work with instant launch too.Missing features
We should tell users to edit config file directly, and restart server. This is because
IOptions<T>from MSDI does not have persisting built-in.Reviewing
Everything flows from
Program.StartServerAsyncso I recommend giving it a good look before reviewing the rest.I tried to compartmentalize dependencies together into extension methods on
IServiceCollection. In other words, removing.AddPackets()should still compile and run the server. It just won't have any packet related services (like LiteNetLib) running.Issues to close
Preview