Skip to content
Joshua Hegedus edited this page Nov 5, 2023 · 5 revisions

Welcome to the cs-tools wiki!

Overview

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
└──────────────────────────

How to start

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

Example

var collection = new ServiceCollection();  
new CoreModule().LoadModules(collection, "reader-tests"); 

var provider = collection.BuildServiceProvider();

Next steps

Follow up: Using the package

References