Class SDKBuilder
Class SDKBuilder. Used to build an instance of an ISDK.
Namespace: VpnSDK.Public
Assembly: VpnSDK.dll
Syntax
public class SDKBuilder : SDKBuilderBase<ISDK, SDKBuilder>
Methods
Create()
Creates an ISDK based off the parameters chained before the call.
Declaration
public override ISDK Create()
Returns
Type | Description |
---|---|
ISDK | An instance of ISDK. |
Overrides
VpnSDK.Public.SDKBuilderBase<VpnSDK.Public.Interfaces.ISDK, VpnSDK.Public.SDKBuilder>.Create()
Validate()
Validates the configuration before creating the SDK instance. The validation done depends on the type of client.
Declaration
public override void Validate()
Overrides
VpnSDK.Public.SDKBuilderBase<VpnSDK.Public.Interfaces.ISDK, VpnSDK.Public.SDKBuilder>.Validate()
Exceptions
Type | Condition |
---|---|
VpnSDKInvalidConfigurationException | Either the API Key, application name or authentication token were not set. |
VpnSDKEmptyAvailableVpnProtocolsException | No VPN protocols were configured. |