Class ArchivingPolicy
- Namespace
- Fluxzy
- Assembly
- Fluxzy.Core.dll
Archiving policy
public class ArchivingPolicy
- Inheritance
-
ArchivingPolicy
- Inherited Members
Constructors
ArchivingPolicy()
Create a default archiving policy which archive nothing.
[JsonConstructor]
public ArchivingPolicy()
Properties
Directory
If ArchivingPolicyType is Directory, this property will be set to the directory path.
public string? Directory { get; }
Property Value
None
Default archiving policy which archive nothing.
public static ArchivingPolicy None { get; }
Property Value
Type
Archiving policy type
public ArchivingPolicyType Type { get; }
Property Value
Methods
CreateFromDirectory(DirectoryInfo)
Create archiving policy from a DirectoryInfo
public static ArchivingPolicy CreateFromDirectory(DirectoryInfo directoryInfo)
Parameters
directoryInfo
DirectoryInfo
Returns
CreateFromDirectory(string)
Create archiving policy from a directory path
public static ArchivingPolicy CreateFromDirectory(string path)
Parameters
path
string