Class CorePackageRegistry
A container to store all available IInitializablePackage in the project.
Inherited Members
Namespace: Unity.Services.Core.Internal
Assembly: Unity.Services.Core.Internal.dll
Syntax
public sealed class CorePackageRegistry
Properties
Instance
Get the unique package registry of this project.
Declaration
public static CorePackageRegistry Instance { get; }
Property Value
| Type | Description |
|---|---|
| CorePackageRegistry |
Methods
Register<TPackage>(TPackage)
Register a package initializer to be executed during services initialization.
Declaration
public CoreRegistration Register<TPackage>(TPackage package) where TPackage : IInitializablePackage
Parameters
| Type | Name | Description |
|---|---|---|
| TPackage | package | The package |
Returns
| Type | Description |
|---|---|
| CoreRegistration | Fluent interface on registration |
Type Parameters
| Name | Description |
|---|---|
| TPackage | Type of package |