Skip to content
Snippets Groups Projects
Commit 90054145 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Extend DriveToCheck for a runtime-property holding the free space

Refers to #20
parent ea14f782
No related branches found
No related tags found
No related merge requests found
namespace ATxCommon.Serializables using System.Xml.Serialization;
namespace ATxCommon.Serializables
{ {
/// <summary> /// <summary>
/// Helper class for the nested SpaceMonitoring sections. /// Helper class for the nested SpaceMonitoring sections.
...@@ -14,5 +16,11 @@ ...@@ -14,5 +16,11 @@
/// Limit (in GB) of free space, lower values will trigger a notification. /// Limit (in GB) of free space, lower values will trigger a notification.
/// </summary> /// </summary>
public long SpaceThreshold { get; set; } public long SpaceThreshold { get; set; }
/// <summary>
/// Free space of a drive in bytes, set to -1 if unknown or check resulted in an error.
/// </summary>
[XmlIgnore]
public long FreeSpace { get; set; } = -1;
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment