Interface IMicroVPNService

IMicroVPNService is the dependency service interface that provides an interface for the mobile application management (MAM) SDK for micro VPN tunneling. The IMicroVPNService class must have a platform-specific implementation to invoke native platform functionality from shared code.

Namespace: Com.Citrix.Mvpn.Api

Assembly: MvpnSdkFormsLibrary.dll

Syntax:

public class AndroidMvpnClientHandler : AndroidClientHandler
<!--NeedCopy-->

Methods

CreateHttpClient()

This method creates a HttpClient object that is enabled for micro VPN tunneling.

Declaration:

HttpClient CreateHttpClient()
<!--NeedCopy-->

Returns:

Type Description
System.Net.Http.HttpClient Returns HttpClient object enabled for micro VPN tunneling.

Init()

This method is used to initialize a micro VPN tunnel.

Declaration:

void Init()
<!--NeedCopy-->

IsNetworkTunnelRunning()

This method returns the status of the tunnel. If the tunnel is running, then it returns TRUE. Otherwise, it returns FALSE.

Declaration:

bool IsNetworkTunnelRunning()
<!--NeedCopy-->

Returns:

Type Description
System.Boolean Returns boolean status of the tunnel as true or false.

StartTunnel(IStartTunnelCallback)

This method must be called to start a micro VPN tunnel. This is an asynchronous method call that returns the results through a callback provided as an input parameter.

Declaration:

void StartTunnel(IStartTunnelCallback callback)
<!--NeedCopy-->

Parameters:

Type Name Description
IStartTunnelCallback callback StartTunnel() method is an asynchronous call. Once the tunnel has started successfully, results are returned through this callback.

StopTunnel()

This method can be called to stop micro VPN tunnel.

Declaration:

void StopTunnel()
<!--NeedCopy-->
Interface IMicroVPNService