diff --git a/SecuritySystem/SecuritySystemView/Program.cs b/SecuritySystem/SecuritySystemView/Program.cs
index 7e1961b..1edc7ed 100644
--- a/SecuritySystem/SecuritySystemView/Program.cs
+++ b/SecuritySystem/SecuritySystemView/Program.cs
@@ -19,8 +19,6 @@ namespace SecuritySystemView
{
internal static class Program
{
- private static ServiceProvider? _serviceProvider;
- public static ServiceProvider? ServiceProvider => _serviceProvider;
///
/// The main entry point for the application.
///
@@ -101,6 +99,6 @@ namespace SecuritySystemView
DependencyManager.Instance.RegisterType();
DependencyManager.Instance.RegisterType();
}
- private static void MailCheck(object obj) => ServiceProvider?.GetService()?.MailCheck();
+ private static void MailCheck(object obj) => DependencyManager.Instance.Resolve()?.MailCheck();
}
}
\ No newline at end of file