private static async void StartSession(IRemoteRenderingService service) { await ApplySettings(service); await service.StopAll(); var machine = await service.Create(); if (machine != null) { await machine.Session.Connection.Connect(); } }
private static async void StopSession(IRemoteRenderingService service) { await service.StopAll(); }