<PackageReference Include="Relativity.Server.Utility.SDK" Version="5000.0.0" />

kCura.Config.Config

public class Config
Provides access to configuration values of kCura.Config and kCura.EDDS.Web that are not stored in SQL. These are legacy values stored directly in the application's configuration file.
public static string ApplicationName { get; set; }

The name of the application to include in SQL connection strings.

public static IDictionary ConfigSettings { get; }

Gets a populated dictionary of configuration values from the kCura.Config section.

public static string ConnectionString { get; }

Gets a connection string with which to connect to a SQL instance. Returns the first connection string found, logically searching the following in order:

A pre-configured value (set with SetConnectionString), then kCura-9.3-connectionString environment variable, then the connectionString element of the kCura.Config section of the application's configuration file, then the encryptedConnectionString element of the kCura.Config section of the application's configuration file.

public static string EmailLinkURLOverride { get; }

Specifies the URL of the server if it's behind a load balancer or a firewall with HTTPS configured. The Viewer's "Email Link to Document" functionality uses this setting. Format: https://servername

public static int ValueRefreshThreshold { get; }

A value indicating the refresh frequency (in milliseconds) to be used for updating configuration dictionaries. Due to REL-530047 default change from 10000 to 30000.

public static string WorkstationID { get; set; }

The machine name to include in SQL connection strings.

public Config()

public static string EnsureAppNameInConnectionString(string connectionString)

Verifies the connection string contains an application name. If the provided string does not contain an application name, this adds ApplicationName to the connection string.

public static void SetConnectionString(string connectionString)

Sets the SQL connection string used to retrieve configuration values.