feat: hooking observability.
This commit is contained in:
@@ -34,10 +34,19 @@ public abstract partial class RootServiceSource : ServiceSource
|
||||
.SetServiceProviderFactory(new LumeServiceProviderFactory(), Configure)
|
||||
.Build();
|
||||
|
||||
// host startup
|
||||
Host.Startup();
|
||||
|
||||
// resolve nodes
|
||||
ResolveInjectedNodes(Host.ServiceProvider.GetRequiredService<IProvider>(), null);
|
||||
}
|
||||
|
||||
public override void _ExitTree()
|
||||
{
|
||||
// async shutdown
|
||||
Host.Shutdown();
|
||||
}
|
||||
|
||||
private void InnerConfigure(IServiceCollection serviceCollection)
|
||||
{
|
||||
serviceCollection.AddTransient<ISceneInstantiator, SceneInstantiator>();
|
||||
|
||||
Reference in New Issue
Block a user