示例#1
0
        private async Task ConnectWindowsServiceClient()
        {
            var settingsViewModel = SimpleIoc.Default.GetInstance <SettingsViewModel>();

            if (!await WindowsServiceClient.ConnectAsync(settingsViewModel.ShowConnectionFailedMessage))
            {
                await SettingsService.InstallService(true);
            }
        }
示例#2
0
 public async Task Stop()
 {
     await WindowsServiceClient.DisconnectAsync();
 }