public async Task DoDisconnect()
        {
            var vpn = await GetVPNConnectionProfile();

            if (vpn != null)
            {
                await manager.DisconnectProfileAsync(vpn);

                await manager.DeleteProfileAsync(profile);
            }
        }
Exemple #2
0
        public async Task Disconnect()
        {
            VpnManagementAgent mgr = new VpnManagementAgent();

            mgr.DisconnectProfileAsync(activeProfile);
        }