How to Implement Dependency Injection to WPF Application
Add the NuGet packages to the project Add Microsoft.Extensions.DependencyInjectionMicrosoft.Extensions.Hosting Add Microsoft.Extensions.Hosting Modify App.xaml.cs file
Discover more about Jun Kim
Add the NuGet packages to the project Add Microsoft.Extensions.DependencyInjectionMicrosoft.Extensions.Hosting Add Microsoft.Extensions.Hosting Modify App.xaml.cs file
This Requires System.Diagnostics name space.This might need to be converted from milliseconds to other unit. 2. By using TimeSpan