Пример #1
0
        void configurePreshutdown()
        {
            Version versionWinVistaSp1 = new Version(6, 0, 6001);

            if (Environment.OSVersion.Platform == PlatformID.Win32NT && Environment.OSVersion.Version >= versionWinVistaSp1)
            {
                _preShutdownEnabler = new ServiceBasePreshutdownEnabler(this);
                _preShutdownEnabler.EnablePreshutdownAccepted();
            }
        }
Пример #2
0
 void configurePreshutdown() {
     Version versionWinVistaSp1 = new Version(6, 0, 6001);
     if (Environment.OSVersion.Platform == PlatformID.Win32NT && Environment.OSVersion.Version >= versionWinVistaSp1) {
         _preShutdownEnabler = new ServiceBasePreshutdownEnabler(this);
         _preShutdownEnabler.EnablePreshutdownAccepted();
     }
 }