hadashiA / VContainer

The extra fast, minimum code size, GC-free DI (Dependency Injection) library running on Unity Game Engine.
https://vcontainer.hadashikick.jp
MIT License
1.88k stars 163 forks source link

Add non-generic Register(Type, Type, Lifetime) #614

Closed hadashiA closed 7 months ago

hadashiA commented 7 months ago

Frankly speaking, two arguments are more modern than .As() method chain..

e.g)

builder.RegisteInstance(LoggerFactory.Create(logging => logging.AddConsole()));
buidler.Register(typeof(ILogger), typeof(Logger), Lifetiem.Singleton);
vercel[bot] commented 7 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
vcontainer ✅ Ready (Inspect) Visit Preview Jan 13, 2024 9:15am