This repository has been archived on 2023-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
mfgames-nitride-cil/src/MfGames.Nitride.Temporal/Setup/NitrideTemporalModule.cs
D. Moonfire 07eb12414a
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
refactor(temporal)!: renamed Timekeeper to TimeService
2023-01-21 01:52:52 -06:00

21 lines
502 B
C#

using Autofac;
namespace MfGames.Nitride.Temporal.Setup;
public class NitrideTemporalModule : Module
{
/// <inheritdoc />
protected override void Load(ContainerBuilder builder)
{
builder.RegisterOperators(this);
builder.RegisterValidators(this);
builder.RegisterType<TimeService>()
.AsSelf()
.SingleInstance();
builder.RegisterGeneric(typeof(SetInstantFromComponent<>))
.As(typeof(SetInstantFromComponent<>));
}
}