-
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the cs-tools wiki!
This toolkit contains several useful C# tools. Here are some highlights:
NOTE: A default configuration file will be saved to the environment specific user home path based on your given
namespace
with the following structure:
├── user/
│ ├── joshika39/
| | ├── YourProject/
│ │ | ├── config.json
│ │ | ├── Repositories/
│ | | | ├── somedb.json
| | ├── YourOtherProject/
│ │ | ├── config.json
│ │ | ├── Repositories/
│ | | | ├── somedb.json
└──────────────────────────
First you have to create a new ServiceCollection
and then create an instance from the CoreModule
class.
Then call the LoadModules
function of the CoreModule
class with the desired namespace.
NOTE: The namespace is the scope of your project which uses the
joshika39.Core
package
Finally you can use the implementations from the result of the collection.BuildServiceProvider()
which has a type of IServiceProvider
var collection = new ServiceCollection();
new CoreModule().LoadModules(collection, "reader-tests");
var provider = collection.BuildServiceProvider();
Follow up: Using the package
If you want to help to improve the wiki, make a Wiki Enhancement Issue
Getting started
Services
Extras