Class Configuration
Exposes configuration to plugins
Implements
Inherited Members
Namespace: SuperOffice.Configuration
Assembly: SoDataBase.dll
Syntax
public class Configuration : 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 |
---|---|
bool | 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 |
---|---|
int | 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 |
---|---|
bool | true if the system has the given license |