public SplashscreenLifetimeHost( ISplashscreenWindow splashscreen, IHostApplicationLifetime lifetime) { lifetime.ApplicationStarted.Register(() => { splashscreen.CloseWindow(); }); }
public CustomService( ISplashscreenWindow splashscreen, IHostApplicationLifetime lifetime) { _splashscreen = splashscreen; lifetime.ApplicationStarted.Register(() => { _splashscreen.IsBusy = false; }); }