- Removed generic exception from LuaCsSetup.cs services retrival, replaced with exception propagation.

- Fixed `PerScopeLifetime` and `Transient` lifetimes for container services.
This commit is contained in:
MapleWheels
2025-12-30 12:00:14 -05:00
committed by Maplewheels
parent 71c2e54afd
commit 569e14f50f
3 changed files with 46 additions and 32 deletions
@@ -62,6 +62,13 @@ public interface IServicesProvider
/// <returns></returns>
bool TryGetService<TSvcInterface>(out TSvcInterface service) where TSvcInterface : class, IService;
/// <summary>
/// Tries to get a service for the given interface, throws an exception upon failure.
/// </summary>
/// <typeparam name="TSvcInterface"></typeparam>
/// <returns></returns>
TSvcInterface GetService<TSvcInterface>() where TSvcInterface : class, IService;
/// <summary>
/// Tries to get a service for the given name and interface, returns success/failure.
/// </summary>