private async Task ConnectWindowsServiceClient() { var settingsViewModel = SimpleIoc.Default.GetInstance <SettingsViewModel>(); if (!await WindowsServiceClient.ConnectAsync(settingsViewModel.ShowConnectionFailedMessage)) { await SettingsService.InstallService(true); } }
public async Task Stop() { await WindowsServiceClient.DisconnectAsync(); }