Advanced topics
Swap dependencies for tests and platforms, manage the provider list, and write your own providers.
Topics
| Topic | Description |
|---|---|
| Injection in depth | Understand how Selvage handles base and generic classes, exiting Play mode, script reloads, dependency cycles and precompiled DLLs, and monitor dependencies. |
| Technical Q&A | Understand how Selvage behaves with threads, weaving, IL2CPP, domain reload and performance. |
| Swap dependencies for tests and platforms | Swap a dependency in a test, at runtime, in the Editor, or on one platform. |
| Manage the provider list | Reorder providers, add providers from code, and reuse your setup in other projects. |
| Write a custom provider | Provide dependencies from a source of your own, such as a file or a server. |
| What sets Selvage apart | Understand how Selvage differs from dependency injection containers. |
| Design decisions | Understand the choices behind Selvage, and why it doesn't follow the model of .NET dependency injection containers. |
| Migrate from Zenject or VContainer | Find the Selvage equivalent of your bindings, and run both during a migration. |