Table of Contents

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

string

None

Default archiving policy which archive nothing.

public static ArchivingPolicy None { get; }

Property Value

ArchivingPolicy

Type

Archiving policy type

public ArchivingPolicyType Type { get; }

Property Value

ArchivingPolicyType

Methods

CreateFromDirectory(DirectoryInfo)

Create archiving policy from a DirectoryInfo

public static ArchivingPolicy CreateFromDirectory(DirectoryInfo directoryInfo)

Parameters

directoryInfo DirectoryInfo

Returns

ArchivingPolicy

CreateFromDirectory(string)

Create archiving policy from a directory path

public static ArchivingPolicy CreateFromDirectory(string path)

Parameters

path string

Returns

ArchivingPolicy

Equals(ArchivingPolicy)

protected bool Equals(ArchivingPolicy other)

Parameters

other ArchivingPolicy

Returns

bool

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.