LicenseSpring .Net SDK 7.32.1
Easily add Software Licensing to your application
Loading...
Searching...
No Matches
LicenseSpring.ConfigurationFactory Class Reference

LicenseSpring ConfigurationFactory class. More...

Inheritance diagram for LicenseSpring.ConfigurationFactory:
LicenseSpring.IConfigurationFactory

Public Member Functions

Configuration CreateConfiguration (string apiKey, string sharedKey, string productCode, string appName, string appVersion, ExtendedOptions extendedOptions=null)
 Helps create Configuration.
Parameters
apiKeyYour API key that you got from LicenseSpring platform
sharedKeyYour Shared key that you got from LicenseSpring platform
productCodeYour product code.
appNameYour application name.
appVersionYour application version.
extendedOptionsOptional instance of ExtendedOptions providing additional configuration capabilities.
Returns
Configuration object

 
ExtendedOptions CreateExtendedOptions (string licenseFilePath, string hardwareID, bool enableLogging=false, int networkTimeout=7, bool collectNetworkInfo=false, string serviceURL=null)
 Helps create ExtendedOptions.
Parameters
licenseFilePathDesired path for local license file
hardwareIDHardware identifier, leave it empty to use built-in hardware ID generation algo
enableLoggingEnables or disables license logging, it's developers only so make sure it's disabled in your release builds
networkTimeoutTimeout value for network operations
collectNetworkInfoWhether to collect info on hostnames, local IP and MAC addresses of end users
serviceURLCustom service URL
Returns
ExtendedOptions object

 
ExtendedOptions CreateExtendedOptionsDefault ()
 Helps create ExtendedOptions.
Returns
ExtendedOptions object with options set to default values

 
Configuration CreateOAuthConfiguration (OAuthCredentials OAuthCredentials, string productCode, string appName, string appVersion, ExtendedOptions extendedOptions=null)
 Creates a new Configuration object using OAuth authentication.
Parameters
OAuthCredentialsObject encapsulating OAuth id, secret and cryptography key.
productCodeYour product code.
appNameYour application name.
appVersionYour application version.
extendedOptionsOptional instance of ExtendedOptions providing additional configuration capabilities.
Returns
Configuration object.

 
ProxySettings CreateProxySettings (string user, string password, string proxyUri=null)
 Helps create ProxySettings.
Parameters
userProxy user name
passwordProxy user password
proxyUriProxy Uri
Returns
ProxySettings object

 

Detailed Description

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

Member Function Documentation

◆ CreateConfiguration()

Configuration LicenseSpring.ConfigurationFactory.CreateConfiguration ( string  apiKey,
string  sharedKey,
string  productCode,
string  appName,
string  appVersion,
ExtendedOptions  extendedOptions = null 
)

Helps create Configuration.

Parameters
apiKeyYour API key that you got from LicenseSpring platform
sharedKeyYour Shared key that you got from LicenseSpring platform
productCodeYour product code.
appNameYour application name.
appVersionYour application version.
extendedOptionsOptional instance of ExtendedOptions providing additional configuration capabilities.
Returns
Configuration object

Implements LicenseSpring.IConfigurationFactory.

◆ CreateExtendedOptions()

ExtendedOptions LicenseSpring.ConfigurationFactory.CreateExtendedOptions ( string  licenseFilePath,
string  hardwareID,
bool  enableLogging = false,
int  networkTimeout = 7,
bool  collectNetworkInfo = false,
string  serviceURL = null 
)

Helps create ExtendedOptions.

Parameters
licenseFilePathDesired path for local license file
hardwareIDHardware identifier, leave it empty to use built-in hardware ID generation algo
enableLoggingEnables or disables license logging, it's developers only so make sure it's disabled in your release builds
networkTimeoutTimeout value for network operations
collectNetworkInfoWhether to collect info on hostnames, local IP and MAC addresses of end users
serviceURLCustom service URL
Returns
ExtendedOptions object

Implements LicenseSpring.IConfigurationFactory.

◆ CreateExtendedOptionsDefault()

ExtendedOptions LicenseSpring.ConfigurationFactory.CreateExtendedOptionsDefault ( )

Helps create ExtendedOptions.

Returns
ExtendedOptions object with options set to default values

Implements LicenseSpring.IConfigurationFactory.

◆ CreateOAuthConfiguration()

Configuration LicenseSpring.ConfigurationFactory.CreateOAuthConfiguration ( OAuthCredentials  OAuthCredentials,
string  productCode,
string  appName,
string  appVersion,
ExtendedOptions  extendedOptions = null 
)

Creates a new Configuration object using OAuth authentication.

Parameters
OAuthCredentialsObject encapsulating OAuth id, secret and cryptography key.
productCodeYour product code.
appNameYour application name.
appVersionYour application version.
extendedOptionsOptional instance of ExtendedOptions providing additional configuration capabilities.
Returns
Configuration object.

Implements LicenseSpring.IConfigurationFactory.

◆ CreateProxySettings()

ProxySettings LicenseSpring.ConfigurationFactory.CreateProxySettings ( string  user,
string  password,
string  proxyUri = null 
)

Helps create ProxySettings.

Parameters
userProxy user name
passwordProxy user password
proxyUriProxy Uri
Returns
ProxySettings object

Implements LicenseSpring.IConfigurationFactory.


The documentation for this class was generated from the following file: