-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathContext.cs
More file actions
42 lines (41 loc) · 2.38 KB
/
Copy pathContext.cs
File metadata and controls
42 lines (41 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
namespace FieldVisitHotFolderService
{
public class Context
{
public string Server { get; set; }
public string Username { get; set; } = "admin";
public string Password { get; set; } = "admin";
public string HotFolderPath { get; set; }
public string FileMask { get; set; }
public string ProcessingFolder { get; set; } = "Processing";
public string UploadedFolder { get; set; } = "Uploaded";
public string PartialFolder { get; set; } = "PartialUploads";
public string ArchivedFolder { get; set; } = "Archived";
public string FailedFolder { get; set; } = "Failed";
public TimeSpan FileQuietDelay { get; set; } = TimeSpan.FromSeconds(5);
public TimeSpan FileScanInterval { get; set; } = TimeSpan.FromMinutes(1);
public int MaximumConnectionAttempts { get; set; } = 3;
public TimeSpan ConnectionRetryDelay { get; set; } = TimeSpan.FromMinutes(1);
public MergeMode MergeMode { get; set; } = MergeMode.Skip;
public bool OverlapIncludesWholeDay { get; set; }
public int MaximumConcurrentRequests { get; set; } = Environment.ProcessorCount;
public int? MaximumFileCount { get; set; }
public TimeSpan? MaximumFileWaitInterval { get; set; }
public int MaximumDuplicateRetry { get; set; } = 3;
public Dictionary<string, string> LocationAliases { get; } = new Dictionary<string, string>(StringComparer.CurrentCultureIgnoreCase);
public TimeSpan MaximumVisitDuration { get; set; } = TimeSpan.FromDays(1.25);
public bool Verbose { get; set; }
public bool DryRun { get; set; }
public Dictionary<string, Dictionary<string,string>> PluginSettings { get; } = new Dictionary<string, Dictionary<string, string>>(StringComparer.InvariantCultureIgnoreCase);
public Dictionary<string, int> PluginPriority { get; } = new Dictionary<string, int>(StringComparer.InvariantCultureIgnoreCase);
public string ExportFolder { get; set; }
public List<string> ExportLocations { get; } = new List<string>();
public DateTimeOffset? ExportBefore { get; set; }
public DateTimeOffset? ExportAfter { get; set; }
public bool ExportOverwrite { get; set; }
public TimeSpan? ExportUtcOverride { get; set; }
public string ImportZip { get; set; }
}
}