Appearance
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
| Name | Description |
|---|---|
ContentRootPath | Gets the application's content root directory path. |
DefaultCacheKeyTS | Default TimeSpan for Memory cache ejection (Default: 15 minutes). |
DefaultEncoding | Get the default Text encoding to be used |
DefaultHashalgorithm | Get the default hash provider to be used in hashing operations (Default: SHA256) |
DefaultHmac | Get the default HMAC hash provider to be used in HMAC hashing operations |
IsoDatePrecision | Standard Precision used for seconds when when serializing a DateTime to ISO8601. |
LockEntranceTimeout | Timeout when entering a lock specified in milliseconds (Default: 300). |
LogFactory | Log factory for JASE Suite logging |
LoggingEnabled | Is logging for JASE.Suite enabled or disabled |
MemoryCachePercent | Returns the percentage of memory reserved for the central in-memory cache. |
PreferCborEnumAsString | When true Enums will be serialized to a string value. |
RegexTimeout | Timeout value for Regex Matches within JASE Core libraries. |
ReservedMemoryCacheBytes | Returns the number of bytes that should be reserved for MemoryCache. |
UseUtcForLogRollover | When true, UtcNow.Date will be used for log file rollover |
UuidNode | When , embeds a node identifier in V7 and SQL Server COMB values so that |
UuidUseCsprng | Sets randomness source for UUID generation. |
WebRootPath | Gets the application's web root directory path (e.g., 'wwwroot'). |
Methods
| Name | Description |
|---|---|
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. |