Fix initialization order (#15)

This commit is contained in:
2023-05-02 20:39:06 +02:00
committed by GitHub
parent 13d5a0f7f6
commit 409b6cdf16
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -87,13 +87,13 @@ namespace System.Windows.Extensions
private void LaunchWindow()
{
var window = this.ServiceProvider.GetRequiredService<T>();
this.ApplicationStarting();
foreach(var service in this.ServiceProvider.GetServices<IApplicationLifetimeService>())
{
service.OnStartup();
}
var window = this.ServiceProvider.GetRequiredService<T>();
window.Show();
}
private void RegisterInternals()
+1 -1
View File
@@ -6,7 +6,7 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>License.txt</PackageLicenseFile>
<Version>0.7.1</Version>
<Version>0.7.2</Version>
<LangVersion>latest</LangVersion>
<Description>Extension library for Windows Presentation Platform.