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

ConfigurationFactory interface. More...

Inheritance diagram for LicenseSpring.IConfigurationFactory:
LicenseSpring.ConfigurationFactory

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=10, 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.
 

Detailed Description

ConfigurationFactory interface.

Member Function Documentation

◆ CreateConfiguration()

Configuration LicenseSpring.IConfigurationFactory.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

Implemented in LicenseSpring.ConfigurationFactory.

◆ CreateExtendedOptions()

ExtendedOptions LicenseSpring.IConfigurationFactory.CreateExtendedOptions ( string  licenseFilePath,
string  hardwareID,
bool  enableLogging = false,
int  networkTimeout = 10,
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

Implemented in LicenseSpring.ConfigurationFactory.

◆ CreateExtendedOptionsDefault()

ExtendedOptions LicenseSpring.IConfigurationFactory.CreateExtendedOptionsDefault ( )

Helps create ExtendedOptions.

Returns
ExtendedOptions object with options set to default values

Implemented in LicenseSpring.ConfigurationFactory.

◆ CreateOAuthConfiguration()

Configuration LicenseSpring.IConfigurationFactory.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.

Implemented in LicenseSpring.ConfigurationFactory.

◆ CreateProxySettings()

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

Helps create ProxySettings.

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

Implemented in LicenseSpring.ConfigurationFactory.


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