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
directoryInfoDirectoryInfo
Returns
CreateFromDirectory(string)
Create archiving policy from a directory path
public static ArchivingPolicy CreateFromDirectory(string path)
Parameters
pathstring
Returns
Equals(ArchivingPolicy)
protected bool Equals(ArchivingPolicy other)
Parameters
otherArchivingPolicy
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.