API Reference
Class
StorageConfigParser
Parses storage configuration values supplied by hosts.
Inheritance
- Object
- StorageConfigParser
Methods
public static MatchPolicy ParseMatchPolicy(String value, MatchPolicy defaultValue = Config) #Returns:
MatchPolicyParses a match policy string. Defaults to Config when empty or invalid.
Parameters
- value System.String
- defaultValue TestimoX.Configuration.Storage.MatchPolicy = Config
public static StoragePolicy ParsePolicy(String value, StoragePolicy defaultValue = ReadWrite) #Returns:
StoragePolicyParses a storage policy string. Defaults to ReadWrite when empty or invalid.
Parameters
- value System.String
- defaultValue TestimoX.Configuration.Storage.StoragePolicy = ReadWrite
public static RawPolicy ParseRawPolicy(String value, RawPolicy defaultValue = Smart) #Returns:
RawPolicyParses a raw payload policy string. Defaults to Smart when empty or invalid.
Parameters
- value System.String
- defaultValue TestimoX.Configuration.Storage.RawPolicy = Smart
public static Nullable<TimeSpan> ParseTtl(String value) #Returns:
Nullable<TimeSpan>Parses a TTL string. Supports TimeSpan and integer day counts.
Parameters
- value System.String