Пример #1
0
 static AutoStartImpl()
 {
     if (PlatformUtils.IsWindows)
     {
         Instance = new Windows.AutoStartHelper();
     }
     else if (PlatformUtils.IsLinux)
     {
         Instance = new Linux.AutoStartHelper();
     }
     else
     {
         throw new PlatformNotSupportedException();
     }
 }
Пример #2
0
 static AutoStartImpl()
 {
     if (PlatformUtils.IsWindows)
     {
         Instance = new Windows.AutoStartHelper();
     }
     else if (PlatformUtils.IsLinux)
     {
         Instance = new Linux.AutoStartHelper();
     }
     else
     {
         Log.Warning("AutoStartHelper.Dummy: Platform not supported");
         Instance = new Dummy.AutoStartHelper();
     }
 }