Class CompositionRootAsset
- Namespace
- Switchboard
- Assembly
- Switchboard.DependencyInjection.dll
Represents a single, root asset file that can be loaded when the application starts, in order to enable dependency injection.
[CreateAssetMenu(fileName = "CompositionRoot", menuName = "Switchboard/Composition Root", order = 1080)]
public sealed class CompositionRootAsset : ScriptableObject
- Inheritance
-
ObjectScriptableObjectCompositionRootAsset
Fields
DependencyInjector
The DependencyInjector to initialize when the application starts.
[Space]
[Expandable(true)]
[Tooltip("The DependencyInjector to initialize when the application starts.")]
public DependencyInjector DependencyInjector
FileName
The only relevant file name for a CompositionRootAsset.
public const string FileName = "CompositionRoot"
LogNullInjectorError
If true, and the DependencyInjector is null, an error will be logged when the application starts.
[Tooltip("If true, and the DependencyInjector is null, an error will be logged when the application starts.")]
public bool LogNullInjectorError