public async Task DoDisconnect() { var vpn = await GetVPNConnectionProfile(); if (vpn != null) { await manager.DisconnectProfileAsync(vpn); await manager.DeleteProfileAsync(profile); } }
public async Task Disconnect() { VpnManagementAgent mgr = new VpnManagementAgent(); mgr.DisconnectProfileAsync(activeProfile); }