Skip to content

Commit 3361779

Browse files
committed
Moved initialization.
1 parent fe1c8ce commit 3361779

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AppVNext.Notifier.ConsoleUwp/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ class Program
2525
/// <param name="args">Arguments for the notification.</param>
2626
static void Main(string[] args)
2727
{
28+
//Initialize application type. TODO: Replace this with dependency injection.
29+
Globals.ApplicationType = ApplicationTypes.UwpConsole;
30+
2831
// Register AUMID, COM server, and activator
2932
DesktopNotificationManagerCompat.RegisterAumidAndComServer<NotifierActivator>("AppVNextNotifier");
3033
DesktopNotificationManagerCompat.RegisterActivator<NotifierActivator>();
@@ -36,9 +39,6 @@ static void Main(string[] args)
3639
}
3740
else
3841
{
39-
//Initialize application type. TODO: Replace this with dependency injection.
40-
Globals.ApplicationType = ApplicationTypes.UwpConsole;
41-
4242
var arguments = ArgumentManager.ProcessArguments(args);
4343

4444
if (arguments == null)

0 commit comments

Comments
 (0)