Show / Hide Table of Contents

Class Configuration

Exposes configuration to plugins

Inheritance
Object
Configuration
Implements
IConfiguration
Namespace: SuperOffice.Configuration
Assembly: SoDataBase.dll
Syntax
public class Configuration : Object, IConfiguration

Constructors

Configuration(ConfigFileFacade)

Degfault constructor used by the ServiceProvider to create instance

Declaration
public Configuration(ConfigFileFacade configFileFacade)
Parameters
Type Name Description
ConfigFileFacade configFileFacade

Properties

DatabaseOwnerName

Company name of the database owner. "SuperOffice AS"

Declaration
public string DatabaseOwnerName { get; }
Property Value
Type Description
String

DatabaseSerialNumber

Serial Number "1230004569"

Declaration
public string DatabaseSerialNumber { get; }
Property Value
Type Description
String

DatabaseType

"central", "satellite", or "travel"

Declaration
public string DatabaseType { get; }
Property Value
Type Description
String

NetServerVersionFullName

Full name of this version of NetServer: "SuperOffice NetServer 7.1 Release (Build: 7.1.200.300.TEST})"

Declaration
public string NetServerVersionFullName { get; }
Property Value
Type Description
String

Methods

GetConfigBool(String)

True/False value from the configuration

Declaration
public bool GetConfigBool(string path)
Parameters
Type Name Description
String path

"SuperOffice/Database/Major

Returns
Type Description
Boolean

true or false from the web.config or superoffice.config file

GetConfigInt(String)

Number value from the configuration

Declaration
public int GetConfigInt(string path)
Parameters
Type Name Description
String path

"SuperOffice/Database/Major

Returns
Type Description
Int32

123 from the web.config or superoffice.config file

GetConfigString(String)

String value from the configuration

Declaration
public string GetConfigString(string path)
Parameters
Type Name Description
String path

"SuperOffice/Database/Major

Returns
Type Description
String

"123" from the web.config or superoffice.config file

HasLicense(String)

Does the system have the given license?

Declaration
public bool HasLicense(string licenseName)
Parameters
Type Name Description
String licenseName

License code name: "superoffice.server" or "superoffice.quote". CAL licenses are not useful to check here.

Returns
Type Description
Boolean

true if the system has the given license

Implements

IConfiguration

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top