Class StorageOptions
Local storage locations, configuration section Section.
Inheritance
StorageOptions
Assembly: Uniform.Matrix.Client.dll
public sealed record StorageOptions : IEquatable<StorageOptions>
Fields
|
Edit this page
View Source
Configuration section name.
Declaration
public const string Section = "Storage"
Field Value
Properties
|
Edit this page
View Source
Root directory; when unset, the application's data directory, e.g. ~/.local/share/uniform-chat-terminal.
Declaration
public string? DataDirectory { get; set; }
Property Value
|
Edit this page
View Source
Database file name inside each account directory.
Declaration
public string DatabaseFileName { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public string LogDirectoryName { get; set; }
Property Value
|
Edit this page
View Source
Session log files to keep; older ones are deleted at start.
Declaration
public int LogFilesKept { get; set; }
Property Value
|
Edit this page
View Source
Media cache directory name inside each account directory.
Declaration
public string MediaDirectoryName { get; set; }
Property Value
Methods
|
Edit this page
View Source
Return DataDirectory, or the data directory of applicationName when unset.
Declaration
public string ResolveDataDirectory(string applicationName)
Parameters
| Type |
Name |
Description |
| string |
applicationName |
|
Returns
|
Edit this page
View Source
Declaration
public string ResolveLogDirectory(string applicationName)
Parameters
| Type |
Name |
Description |
| string |
applicationName |
|
Returns
Implements