Class CoreConfig
Assembly: Estrelica.Core.Config.Mock.dll
Syntax
public static class CoreConfig
Methods
Declaration
public static IEnumerable<string> GetConfigOverrideKeys(string appConfigFilename = null, string userSecretsId = null, bool includeDisabled = false)
Parameters
Returns
Invokes an instance of Estrelica Core by validating the current license and establishing a session with Archer
using configuration values set in a JSON config file (defaults to appSetttings.config in the current working directory)
with potential override values supplied in an optional user secrets file id. The settings file is itself optional if
a user secrets file id is provided (or specified in your .csproj file) and it resolves a file containing all necessary values.
See https://castlehillsoftware.github.io/Estrelica.Core.Demos/articles/manage_configuration.html
Declaration
public static Core Load(Action<Exception> warningCallback, string appConfigFilename = null, string userSecretsId = null, bool forceRefresh = false, string configOverrideKey = null, string licenseFileLocation = null, Func<string> loadLicense = null, Func<string, bool> saveLicense = null, string existingSessionToken = null, Action<CoreConfig.Settings> settingsPreview = null)
Parameters
Action<Exception>
warningCallback
|
string
appConfigFilename
|
string
userSecretsId
The id of your user secrets file. Defaults to "Estrelica.Core" if not explicitly set. May also
be specified by the inclusion of a UserSecretsIdAttribute in your project (generated by the compiler in you have
defined in your .csproj file).
|
bool
forceRefresh
If true, forces a license refresh regardless of license stale state.
|
string
configOverrideKey
|
string
licenseFileLocation
By default the Estrelica.Core.license file is stored in the current operating directory. Use this if you want to maintain it somewhere else.
|
Func<string>
loadLicense
|
Func<string, bool>
saveLicense
|
string
existingSessionToken
|
Action<CoreConfig.Settings>
settingsPreview
|
Returns
Declaration
public static CoreConfig.Settings LoadSettings(string appConfigFilename = null, string userSecretsId = null, string configOverrideKey = null, Action<Exception> warningCallback = null, string licenseFileLocation = null, bool disableExtensions = false)
Parameters
Returns