Skip to content

CoreConfig Class ​

Definition ​

Provides runtime-configurable settings shared across the JASE Suite, including cache sizing, regex timeouts, and directory paths.

  • Namespace: JASE
  • Assembly: JASE.dll

Properties ​

NameDescription
ContentRootPathGets the application's content root directory path.
DefaultCacheKeyTSDefault TimeSpan for Memory cache ejection (Default: 15 minutes).
DefaultEncodingGet the default Text encoding to be used
DefaultHashalgorithmGet the default hash provider to be used in hashing operations (Default: SHA256)
DefaultHmacGet the default HMAC hash provider to be used in HMAC hashing operations
IsoDatePrecisionStandard Precision used for seconds when when serializing a DateTime to ISO8601.
LockEntranceTimeoutTimeout when entering a lock specified in milliseconds (Default: 300).
LogFactoryLog factory for JASE Suite logging
LoggingEnabledIs logging for JASE.Suite enabled or disabled
MemoryCachePercentReturns the percentage of memory reserved for the central in-memory cache.
PreferCborEnumAsStringWhen true Enums will be serialized to a string value.
RegexTimeoutTimeout value for Regex Matches within JASE Core libraries.
ReservedMemoryCacheBytesReturns the number of bytes that should be reserved for MemoryCache.
UseUtcForLogRolloverWhen true, UtcNow.Date will be used for log file rollover
UuidNodeWhen , embeds a node identifier in V7 and SQL Server COMB values so that
UuidUseCsprngSets randomness source for UUID generation.
WebRootPathGets the application's web root directory path (e.g., 'wwwroot').

Methods ​

NameDescription
void SetContentRoot(string path)Sets the content root path of the application.
void SetDefaultCacheKeyTS(int minutes)Set the default TimeSpan for Memory cache ejection
void SetDefaultDefaultHmacProvider(HmacImplementation provider)Sets the default HMAC hash provider to be used in hashing operations when no explicit provider is specified.
void SetDefaultEncoding(Encoding encoding)Sets the default Text encoding to be used when no explicit encoding is specified.
void SetDefaultHashProvider(HashProvider provider)Sets the default hash provider to be used in hashing operations when no explicit provider is specified.
void SetLockEntranceTimeout(int value)Sets the lock entrance timeout in milliseconds. Must be non-negative. Delegates to JASE.ConcurrencyConfig.SetLockEntranceTimeout(System.Int32).
void SetLogFactory(ILoggerFactory factory)Set level for JASE.Siute logging
void SetLoggingEnabled(bool value)Set value for LoggingEnabled
bool SetMemoryCachePercent(uint percent)Sets the percentage of memory to use in the memory cache
void SetPreferCborEnumAsString(bool value)Set value for PreferCborEnumAsString. Delegates to JASE.Serializers.Cbor.SetPreferCborEnumAsString(System.Boolean).
void SetRegexTimeout(int value)Set the RegexTimeout value (Must be in a range of 0-60 else will be set to 60)
void SetSuppressDebugBreakpoints(bool value)Set the value for SuppressDebugBreakpoints
void SetUseUtcForLogRollover(bool value)Set the value for UseUtcForLogRollover
void SetUuidNode(bool value)Sets UuidNode (process-wide node embedding for V7/COMB and JASE.UuidFactory.GetPrimaryKey(System.Guid) uniqueness across at most 16 writers).
void SetUuidUseCsprng(bool value)Set the value for UuidUseCsprng
void SetWebRoot(string path)Sets the web root path of the application.