![]() |
LicenseSpring .Net SDK 7.32.1
Easily add Software Licensing to your application
|
LicenseSpring ConfigurationFactory class. More...
Public Member Functions | |||||||||||||
Configuration | CreateConfiguration (string apiKey, string sharedKey, string productCode, string appName, string appVersion, ExtendedOptions extendedOptions=null) | ||||||||||||
Helps create Configuration.
| |||||||||||||
ExtendedOptions | CreateExtendedOptions (string licenseFilePath, string hardwareID, bool enableLogging=false, int networkTimeout=7, bool collectNetworkInfo=false, string serviceURL=null) | ||||||||||||
Helps create ExtendedOptions.
| |||||||||||||
ExtendedOptions | CreateExtendedOptionsDefault () | ||||||||||||
Helps create ExtendedOptions.
| |||||||||||||
Configuration | CreateOAuthConfiguration (OAuthCredentials OAuthCredentials, string productCode, string appName, string appVersion, ExtendedOptions extendedOptions=null) | ||||||||||||
Creates a new Configuration object using OAuth authentication.
| |||||||||||||
ProxySettings | CreateProxySettings (string user, string password, string proxyUri=null) | ||||||||||||
Helps create ProxySettings.
| |||||||||||||
LicenseSpring ConfigurationFactory class.
This class letting use the SDK from VBA side, actually from any COM client
In .Net app you can create LicenseSpring Configuration and ExtendedOptions directly or also use this class
Configuration LicenseSpring.ConfigurationFactory.CreateConfiguration | ( | string | apiKey, |
string | sharedKey, | ||
string | productCode, | ||
string | appName, | ||
string | appVersion, | ||
ExtendedOptions | extendedOptions = null |
||
) |
Helps create Configuration.
apiKey | Your API key that you got from LicenseSpring platform |
sharedKey | Your Shared key that you got from LicenseSpring platform |
productCode | Your product code. |
appName | Your application name. |
appVersion | Your application version. |
extendedOptions | Optional instance of ExtendedOptions providing additional configuration capabilities. |
Implements LicenseSpring.IConfigurationFactory.
ExtendedOptions LicenseSpring.ConfigurationFactory.CreateExtendedOptions | ( | string | licenseFilePath, |
string | hardwareID, | ||
bool | enableLogging = false , |
||
int | networkTimeout = 7 , |
||
bool | collectNetworkInfo = false , |
||
string | serviceURL = null |
||
) |
Helps create ExtendedOptions.
licenseFilePath | Desired path for local license file |
hardwareID | Hardware identifier, leave it empty to use built-in hardware ID generation algo |
enableLogging | Enables or disables license logging, it's developers only so make sure it's disabled in your release builds |
networkTimeout | Timeout value for network operations |
collectNetworkInfo | Whether to collect info on hostnames, local IP and MAC addresses of end users |
serviceURL | Custom service URL |
Implements LicenseSpring.IConfigurationFactory.
ExtendedOptions LicenseSpring.ConfigurationFactory.CreateExtendedOptionsDefault | ( | ) |
Helps create ExtendedOptions.
Implements LicenseSpring.IConfigurationFactory.
Configuration LicenseSpring.ConfigurationFactory.CreateOAuthConfiguration | ( | OAuthCredentials | OAuthCredentials, |
string | productCode, | ||
string | appName, | ||
string | appVersion, | ||
ExtendedOptions | extendedOptions = null |
||
) |
Creates a new Configuration object using OAuth authentication.
OAuthCredentials | Object encapsulating OAuth id, secret and cryptography key. |
productCode | Your product code. |
appName | Your application name. |
appVersion | Your application version. |
extendedOptions | Optional instance of ExtendedOptions providing additional configuration capabilities. |
Implements LicenseSpring.IConfigurationFactory.
ProxySettings LicenseSpring.ConfigurationFactory.CreateProxySettings | ( | string | user, |
string | password, | ||
string | proxyUri = null |
||
) |
Helps create ProxySettings.
user | Proxy user name |
password | Proxy user password |
proxyUri | Proxy Uri |
Implements LicenseSpring.IConfigurationFactory.